entity

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the entity type in the database.
	Label = "entity"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldDateCreated holds the string denoting the datecreated field in the database.
	FieldDateCreated = "date_created"
	// FieldFirstname holds the string denoting the firstname field in the database.
	FieldFirstname = "firstname"
	// FieldLastname holds the string denoting the lastname field in the database.
	FieldLastname = "lastname"
	// FieldFullname holds the string denoting the fullname field in the database.
	FieldFullname = "fullname"
	// FieldDateOfBirth holds the string denoting the dateofbirth field in the database.
	FieldDateOfBirth = "date_of_birth"
	// FieldActive holds the string denoting the active field in the database.
	FieldActive = "active"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldLastLoginDate holds the string denoting the lastlogindate field in the database.
	FieldLastLoginDate = "last_login_date"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// EdgeTaxSpecifications holds the string denoting the taxspecifications edge name in mutations.
	EdgeTaxSpecifications = "taxSpecifications"
	// EdgeAddresses holds the string denoting the addresses edge name in mutations.
	EdgeAddresses = "addresses"
	// EdgePreferences holds the string denoting the preferences edge name in mutations.
	EdgePreferences = "preferences"
	// EdgeContactPoints holds the string denoting the contactpoints edge name in mutations.
	EdgeContactPoints = "contactPoints"
	// EdgeOwnsAccount holds the string denoting the owns_account edge name in mutations.
	EdgeOwnsAccount = "owns_account"
	// Table holds the table name of the entity in the database.
	Table = "entities"
	// TaxSpecificationsTable is the table the holds the taxSpecifications relation/edge.
	TaxSpecificationsTable = "entity_tax_informations"
	// TaxSpecificationsInverseTable is the table name for the EntityTaxInformation entity.
	// It exists in this package in order to avoid circular dependency with the "entitytaxinformation" package.
	TaxSpecificationsInverseTable = "entity_tax_informations"
	// TaxSpecificationsColumn is the table column denoting the taxSpecifications relation/edge.
	TaxSpecificationsColumn = "entity_tax_specifications"
	// AddressesTable is the table the holds the addresses relation/edge.
	AddressesTable = "entity_addresses"
	// AddressesInverseTable is the table name for the EntityAddress entity.
	// It exists in this package in order to avoid circular dependency with the "entityaddress" package.
	AddressesInverseTable = "entity_addresses"
	// AddressesColumn is the table column denoting the addresses relation/edge.
	AddressesColumn = "entity_addresses"
	// PreferencesTable is the table the holds the preferences relation/edge.
	PreferencesTable = "preferences"
	// PreferencesInverseTable is the table name for the Preference entity.
	// It exists in this package in order to avoid circular dependency with the "preference" package.
	PreferencesInverseTable = "preferences"
	// PreferencesColumn is the table column denoting the preferences relation/edge.
	PreferencesColumn = "entity_preferences"
	// ContactPointsTable is the table the holds the contactPoints relation/edge.
	ContactPointsTable = "entity_contact_points"
	// ContactPointsInverseTable is the table name for the EntityContactPoint entity.
	// It exists in this package in order to avoid circular dependency with the "entitycontactpoint" package.
	ContactPointsInverseTable = "entity_contact_points"
	// ContactPointsColumn is the table column denoting the contactPoints relation/edge.
	ContactPointsColumn = "entity_contact_points"
	// OwnsAccountTable is the table the holds the owns_account relation/edge. The primary key declared below.
	OwnsAccountTable = "account_owners"
	// OwnsAccountInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	OwnsAccountInverseTable = "accounts"
)

Variables

View Source
var (
	// DefaultActive holds the default value on creation for the "active" field.
	DefaultActive bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for entity fields.

View Source
var (
	// OwnsAccountPrimaryKey and OwnsAccountColumn2 are the table columns denoting the
	// primary key for the owns_account relation (M2M).
	OwnsAccountPrimaryKey = []string{"account_id", "entity_id"}
)

Functions

func Active

func Active(v bool) predicate.Entity

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

func ActiveEQ(v bool) predicate.Entity

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.Entity

ActiveNEQ applies the NEQ predicate on the "active" field.

func And

func And(predicates ...predicate.Entity) predicate.Entity

And groups predicates with the AND operator between them.

func DateCreated

func DateCreated(v time.Time) predicate.Entity

DateCreated applies equality check predicate on the "dateCreated" field. It's identical to DateCreatedEQ.

func DateCreatedEQ

func DateCreatedEQ(v time.Time) predicate.Entity

DateCreatedEQ applies the EQ predicate on the "dateCreated" field.

func DateCreatedGT

func DateCreatedGT(v time.Time) predicate.Entity

DateCreatedGT applies the GT predicate on the "dateCreated" field.

func DateCreatedGTE

func DateCreatedGTE(v time.Time) predicate.Entity

DateCreatedGTE applies the GTE predicate on the "dateCreated" field.

func DateCreatedIn

func DateCreatedIn(vs ...time.Time) predicate.Entity

DateCreatedIn applies the In predicate on the "dateCreated" field.

func DateCreatedLT

func DateCreatedLT(v time.Time) predicate.Entity

DateCreatedLT applies the LT predicate on the "dateCreated" field.

func DateCreatedLTE

func DateCreatedLTE(v time.Time) predicate.Entity

DateCreatedLTE applies the LTE predicate on the "dateCreated" field.

func DateCreatedNEQ

func DateCreatedNEQ(v time.Time) predicate.Entity

DateCreatedNEQ applies the NEQ predicate on the "dateCreated" field.

func DateCreatedNotIn

func DateCreatedNotIn(vs ...time.Time) predicate.Entity

DateCreatedNotIn applies the NotIn predicate on the "dateCreated" field.

func DateOfBirth

func DateOfBirth(v time.Time) predicate.Entity

DateOfBirth applies equality check predicate on the "dateOfBirth" field. It's identical to DateOfBirthEQ.

func DateOfBirthEQ

func DateOfBirthEQ(v time.Time) predicate.Entity

DateOfBirthEQ applies the EQ predicate on the "dateOfBirth" field.

func DateOfBirthGT

func DateOfBirthGT(v time.Time) predicate.Entity

DateOfBirthGT applies the GT predicate on the "dateOfBirth" field.

func DateOfBirthGTE

func DateOfBirthGTE(v time.Time) predicate.Entity

DateOfBirthGTE applies the GTE predicate on the "dateOfBirth" field.

func DateOfBirthIn

func DateOfBirthIn(vs ...time.Time) predicate.Entity

DateOfBirthIn applies the In predicate on the "dateOfBirth" field.

func DateOfBirthLT

func DateOfBirthLT(v time.Time) predicate.Entity

DateOfBirthLT applies the LT predicate on the "dateOfBirth" field.

func DateOfBirthLTE

func DateOfBirthLTE(v time.Time) predicate.Entity

DateOfBirthLTE applies the LTE predicate on the "dateOfBirth" field.

func DateOfBirthNEQ

func DateOfBirthNEQ(v time.Time) predicate.Entity

DateOfBirthNEQ applies the NEQ predicate on the "dateOfBirth" field.

func DateOfBirthNotIn

func DateOfBirthNotIn(vs ...time.Time) predicate.Entity

DateOfBirthNotIn applies the NotIn predicate on the "dateOfBirth" field.

func Firstname

func Firstname(v string) predicate.Entity

Firstname applies equality check predicate on the "firstname" field. It's identical to FirstnameEQ.

func FirstnameContains

func FirstnameContains(v string) predicate.Entity

FirstnameContains applies the Contains predicate on the "firstname" field.

func FirstnameContainsFold

func FirstnameContainsFold(v string) predicate.Entity

FirstnameContainsFold applies the ContainsFold predicate on the "firstname" field.

func FirstnameEQ

func FirstnameEQ(v string) predicate.Entity

FirstnameEQ applies the EQ predicate on the "firstname" field.

func FirstnameEqualFold

func FirstnameEqualFold(v string) predicate.Entity

FirstnameEqualFold applies the EqualFold predicate on the "firstname" field.

func FirstnameGT

func FirstnameGT(v string) predicate.Entity

FirstnameGT applies the GT predicate on the "firstname" field.

func FirstnameGTE

func FirstnameGTE(v string) predicate.Entity

FirstnameGTE applies the GTE predicate on the "firstname" field.

func FirstnameHasPrefix

func FirstnameHasPrefix(v string) predicate.Entity

FirstnameHasPrefix applies the HasPrefix predicate on the "firstname" field.

func FirstnameHasSuffix

func FirstnameHasSuffix(v string) predicate.Entity

FirstnameHasSuffix applies the HasSuffix predicate on the "firstname" field.

func FirstnameIn

func FirstnameIn(vs ...string) predicate.Entity

FirstnameIn applies the In predicate on the "firstname" field.

func FirstnameIsNil

func FirstnameIsNil() predicate.Entity

FirstnameIsNil applies the IsNil predicate on the "firstname" field.

func FirstnameLT

func FirstnameLT(v string) predicate.Entity

FirstnameLT applies the LT predicate on the "firstname" field.

func FirstnameLTE

func FirstnameLTE(v string) predicate.Entity

FirstnameLTE applies the LTE predicate on the "firstname" field.

func FirstnameNEQ

func FirstnameNEQ(v string) predicate.Entity

FirstnameNEQ applies the NEQ predicate on the "firstname" field.

func FirstnameNotIn

func FirstnameNotIn(vs ...string) predicate.Entity

FirstnameNotIn applies the NotIn predicate on the "firstname" field.

func FirstnameNotNil

func FirstnameNotNil() predicate.Entity

FirstnameNotNil applies the NotNil predicate on the "firstname" field.

func Fullname

func Fullname(v string) predicate.Entity

Fullname applies equality check predicate on the "fullname" field. It's identical to FullnameEQ.

func FullnameContains

func FullnameContains(v string) predicate.Entity

FullnameContains applies the Contains predicate on the "fullname" field.

func FullnameContainsFold

func FullnameContainsFold(v string) predicate.Entity

FullnameContainsFold applies the ContainsFold predicate on the "fullname" field.

func FullnameEQ

func FullnameEQ(v string) predicate.Entity

FullnameEQ applies the EQ predicate on the "fullname" field.

func FullnameEqualFold

func FullnameEqualFold(v string) predicate.Entity

FullnameEqualFold applies the EqualFold predicate on the "fullname" field.

func FullnameGT

func FullnameGT(v string) predicate.Entity

FullnameGT applies the GT predicate on the "fullname" field.

func FullnameGTE

func FullnameGTE(v string) predicate.Entity

FullnameGTE applies the GTE predicate on the "fullname" field.

func FullnameHasPrefix

func FullnameHasPrefix(v string) predicate.Entity

FullnameHasPrefix applies the HasPrefix predicate on the "fullname" field.

func FullnameHasSuffix

func FullnameHasSuffix(v string) predicate.Entity

FullnameHasSuffix applies the HasSuffix predicate on the "fullname" field.

func FullnameIn

func FullnameIn(vs ...string) predicate.Entity

FullnameIn applies the In predicate on the "fullname" field.

func FullnameIsNil

func FullnameIsNil() predicate.Entity

FullnameIsNil applies the IsNil predicate on the "fullname" field.

func FullnameLT

func FullnameLT(v string) predicate.Entity

FullnameLT applies the LT predicate on the "fullname" field.

func FullnameLTE

func FullnameLTE(v string) predicate.Entity

FullnameLTE applies the LTE predicate on the "fullname" field.

func FullnameNEQ

func FullnameNEQ(v string) predicate.Entity

FullnameNEQ applies the NEQ predicate on the "fullname" field.

func FullnameNotIn

func FullnameNotIn(vs ...string) predicate.Entity

FullnameNotIn applies the NotIn predicate on the "fullname" field.

func FullnameNotNil

func FullnameNotNil() predicate.Entity

FullnameNotNil applies the NotNil predicate on the "fullname" field.

func HasAddresses

func HasAddresses() predicate.Entity

HasAddresses applies the HasEdge predicate on the "addresses" edge.

func HasAddressesWith

func HasAddressesWith(preds ...predicate.EntityAddress) predicate.Entity

HasAddressesWith applies the HasEdge predicate on the "addresses" edge with a given conditions (other predicates).

func HasContactPoints

func HasContactPoints() predicate.Entity

HasContactPoints applies the HasEdge predicate on the "contactPoints" edge.

func HasContactPointsWith

func HasContactPointsWith(preds ...predicate.EntityContactPoint) predicate.Entity

HasContactPointsWith applies the HasEdge predicate on the "contactPoints" edge with a given conditions (other predicates).

func HasOwnsAccount

func HasOwnsAccount() predicate.Entity

HasOwnsAccount applies the HasEdge predicate on the "owns_account" edge.

func HasOwnsAccountWith

func HasOwnsAccountWith(preds ...predicate.Account) predicate.Entity

HasOwnsAccountWith applies the HasEdge predicate on the "owns_account" edge with a given conditions (other predicates).

func HasPreferences

func HasPreferences() predicate.Entity

HasPreferences applies the HasEdge predicate on the "preferences" edge.

func HasPreferencesWith

func HasPreferencesWith(preds ...predicate.Preference) predicate.Entity

HasPreferencesWith applies the HasEdge predicate on the "preferences" edge with a given conditions (other predicates).

func HasTaxSpecifications

func HasTaxSpecifications() predicate.Entity

HasTaxSpecifications applies the HasEdge predicate on the "taxSpecifications" edge.

func HasTaxSpecificationsWith

func HasTaxSpecificationsWith(preds ...predicate.EntityTaxInformation) predicate.Entity

HasTaxSpecificationsWith applies the HasEdge predicate on the "taxSpecifications" edge with a given conditions (other predicates).

func ID

func ID(id uuid.UUID) predicate.Entity

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Entity

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Entity

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Entity

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Entity

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Entity

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Entity

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Entity

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Entity

IDNotIn applies the NotIn predicate on the ID field.

func LastLoginDate

func LastLoginDate(v time.Time) predicate.Entity

LastLoginDate applies equality check predicate on the "lastLoginDate" field. It's identical to LastLoginDateEQ.

func LastLoginDateEQ

func LastLoginDateEQ(v time.Time) predicate.Entity

LastLoginDateEQ applies the EQ predicate on the "lastLoginDate" field.

func LastLoginDateGT

func LastLoginDateGT(v time.Time) predicate.Entity

LastLoginDateGT applies the GT predicate on the "lastLoginDate" field.

func LastLoginDateGTE

func LastLoginDateGTE(v time.Time) predicate.Entity

LastLoginDateGTE applies the GTE predicate on the "lastLoginDate" field.

func LastLoginDateIn

func LastLoginDateIn(vs ...time.Time) predicate.Entity

LastLoginDateIn applies the In predicate on the "lastLoginDate" field.

func LastLoginDateLT

func LastLoginDateLT(v time.Time) predicate.Entity

LastLoginDateLT applies the LT predicate on the "lastLoginDate" field.

func LastLoginDateLTE

func LastLoginDateLTE(v time.Time) predicate.Entity

LastLoginDateLTE applies the LTE predicate on the "lastLoginDate" field.

func LastLoginDateNEQ

func LastLoginDateNEQ(v time.Time) predicate.Entity

LastLoginDateNEQ applies the NEQ predicate on the "lastLoginDate" field.

func LastLoginDateNotIn

func LastLoginDateNotIn(vs ...time.Time) predicate.Entity

LastLoginDateNotIn applies the NotIn predicate on the "lastLoginDate" field.

func Lastname

func Lastname(v string) predicate.Entity

Lastname applies equality check predicate on the "lastname" field. It's identical to LastnameEQ.

func LastnameContains

func LastnameContains(v string) predicate.Entity

LastnameContains applies the Contains predicate on the "lastname" field.

func LastnameContainsFold

func LastnameContainsFold(v string) predicate.Entity

LastnameContainsFold applies the ContainsFold predicate on the "lastname" field.

func LastnameEQ

func LastnameEQ(v string) predicate.Entity

LastnameEQ applies the EQ predicate on the "lastname" field.

func LastnameEqualFold

func LastnameEqualFold(v string) predicate.Entity

LastnameEqualFold applies the EqualFold predicate on the "lastname" field.

func LastnameGT

func LastnameGT(v string) predicate.Entity

LastnameGT applies the GT predicate on the "lastname" field.

func LastnameGTE

func LastnameGTE(v string) predicate.Entity

LastnameGTE applies the GTE predicate on the "lastname" field.

func LastnameHasPrefix

func LastnameHasPrefix(v string) predicate.Entity

LastnameHasPrefix applies the HasPrefix predicate on the "lastname" field.

func LastnameHasSuffix

func LastnameHasSuffix(v string) predicate.Entity

LastnameHasSuffix applies the HasSuffix predicate on the "lastname" field.

func LastnameIn

func LastnameIn(vs ...string) predicate.Entity

LastnameIn applies the In predicate on the "lastname" field.

func LastnameIsNil

func LastnameIsNil() predicate.Entity

LastnameIsNil applies the IsNil predicate on the "lastname" field.

func LastnameLT

func LastnameLT(v string) predicate.Entity

LastnameLT applies the LT predicate on the "lastname" field.

func LastnameLTE

func LastnameLTE(v string) predicate.Entity

LastnameLTE applies the LTE predicate on the "lastname" field.

func LastnameNEQ

func LastnameNEQ(v string) predicate.Entity

LastnameNEQ applies the NEQ predicate on the "lastname" field.

func LastnameNotIn

func LastnameNotIn(vs ...string) predicate.Entity

LastnameNotIn applies the NotIn predicate on the "lastname" field.

func LastnameNotNil

func LastnameNotNil() predicate.Entity

LastnameNotNil applies the NotNil predicate on the "lastname" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Entity) predicate.Entity

Or groups predicates with the OR operator between them.

func Token

func Token(v string) predicate.Entity

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.Entity

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.Entity

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

func TokenEQ(v string) predicate.Entity

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.Entity

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

func TokenGT(v string) predicate.Entity

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

func TokenGTE(v string) predicate.Entity

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.Entity

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.Entity

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.Entity

TokenIn applies the In predicate on the "token" field.

func TokenLT

func TokenLT(v string) predicate.Entity

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

func TokenLTE(v string) predicate.Entity

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

func TokenNEQ(v string) predicate.Entity

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.Entity

TokenNotIn applies the NotIn predicate on the "token" field.

func TypeEQ

func TypeEQ(v Type) predicate.Entity

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Entity

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Entity

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Entity

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func URL

func URL(v string) predicate.Entity

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Entity

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Entity

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Entity

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Entity

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Entity

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Entity

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Entity

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Entity

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Entity

URLIn applies the In predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Entity

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Entity

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Entity

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Entity

URLNotIn applies the NotIn predicate on the "url" field.

func Username

func Username(v string) predicate.Entity

Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.

func UsernameContains

func UsernameContains(v string) predicate.Entity

UsernameContains applies the Contains predicate on the "username" field.

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.Entity

UsernameContainsFold applies the ContainsFold predicate on the "username" field.

func UsernameEQ

func UsernameEQ(v string) predicate.Entity

UsernameEQ applies the EQ predicate on the "username" field.

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.Entity

UsernameEqualFold applies the EqualFold predicate on the "username" field.

func UsernameGT

func UsernameGT(v string) predicate.Entity

UsernameGT applies the GT predicate on the "username" field.

func UsernameGTE

func UsernameGTE(v string) predicate.Entity

UsernameGTE applies the GTE predicate on the "username" field.

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.Entity

UsernameHasPrefix applies the HasPrefix predicate on the "username" field.

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.Entity

UsernameHasSuffix applies the HasSuffix predicate on the "username" field.

func UsernameIn

func UsernameIn(vs ...string) predicate.Entity

UsernameIn applies the In predicate on the "username" field.

func UsernameLT

func UsernameLT(v string) predicate.Entity

UsernameLT applies the LT predicate on the "username" field.

func UsernameLTE

func UsernameLTE(v string) predicate.Entity

UsernameLTE applies the LTE predicate on the "username" field.

func UsernameNEQ

func UsernameNEQ(v string) predicate.Entity

UsernameNEQ applies the NEQ predicate on the "username" field.

func UsernameNotIn

func UsernameNotIn(vs ...string) predicate.Entity

UsernameNotIn applies the NotIn predicate on the "username" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypePERSON   Type = "PERSON"
	TypeBUSINESS Type = "BUSINESS"
	TypeSYSTEM   Type = "SYSTEM"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL