user

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the user type in the database.
	Label = "user"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSn holds the string denoting the sn field in the database.
	FieldSn = "sn"
	// FieldNickname holds the string denoting the nickname field in the database.
	FieldNickname = "nickname"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldGender holds the string denoting the gender field in the database.
	FieldGender = "gender"
	// FieldPhone holds the string denoting the phone field in the database.
	FieldPhone = "phone"
	// FieldAvatarURL holds the string denoting the avatar_url field in the database.
	FieldAvatarURL = "avatar_url"
	// FieldHomepage holds the string denoting the homepage field in the database.
	FieldHomepage = "homepage"
	// FieldBio holds the string denoting the bio field in the database.
	FieldBio = "bio"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldLastPwdAuth holds the string denoting the last_pwd_auth field in the database.
	FieldLastPwdAuth = "last_pwd_auth"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldDeleteTime holds the string denoting the delete_time field in the database.
	FieldDeleteTime = "delete_time"
	// EdgeUserEmails holds the string denoting the useremails edge name in mutations.
	EdgeUserEmails = "UserEmails"
	// EdgeComponents holds the string denoting the components edge name in mutations.
	EdgeComponents = "Components"
	// EdgeUserSettings holds the string denoting the usersettings edge name in mutations.
	EdgeUserSettings = "UserSettings"
	// EdgeUserSecurityLogs holds the string denoting the usersecuritylogs edge name in mutations.
	EdgeUserSecurityLogs = "UserSecurityLogs"
	// Table holds the table name of the user in the database.
	Table = "user"
	// UserEmailsTable is the table that holds the UserEmails relation/edge.
	UserEmailsTable = "user_email"
	// UserEmailsInverseTable is the table name for the UserEmail entity.
	// It exists in this package in order to avoid circular dependency with the "useremail" package.
	UserEmailsInverseTable = "user_email"
	// UserEmailsColumn is the table column denoting the UserEmails relation/edge.
	UserEmailsColumn = "owner_id"
	// ComponentsTable is the table that holds the Components relation/edge.
	ComponentsTable = "components"
	// ComponentsInverseTable is the table name for the Component entity.
	// It exists in this package in order to avoid circular dependency with the "component" package.
	ComponentsInverseTable = "components"
	// ComponentsColumn is the table column denoting the Components relation/edge.
	ComponentsColumn = "owner_id"
	// UserSettingsTable is the table that holds the UserSettings relation/edge.
	UserSettingsTable = "user_setting"
	// UserSettingsInverseTable is the table name for the UserSetting entity.
	// It exists in this package in order to avoid circular dependency with the "usersetting" package.
	UserSettingsInverseTable = "user_setting"
	// UserSettingsColumn is the table column denoting the UserSettings relation/edge.
	UserSettingsColumn = "owner_id"
	// UserSecurityLogsTable is the table that holds the UserSecurityLogs relation/edge.
	UserSecurityLogsTable = "user_security_log"
	// UserSecurityLogsInverseTable is the table name for the UserSecurityLog entity.
	// It exists in this package in order to avoid circular dependency with the "usersecuritylog" package.
	UserSecurityLogsInverseTable = "user_security_log"
	// UserSecurityLogsColumn is the table column denoting the UserSecurityLogs relation/edge.
	UserSecurityLogsColumn = "owner_id"
)
View Source
const DefaultGender = GenderUnknown

GenderUnknown is the default value of the Gender enum.

Variables

View Source
var (
	// DefaultSn holds the default value on creation for the "sn" field.
	DefaultSn func() string
	// SnValidator is a validator for the "sn" field. It is called by the builders before save.
	SnValidator func(string) error
	// NicknameValidator is a validator for the "nickname" field. It is called by the builders before save.
	NicknameValidator func(string) error
	// UsernameValidator is a validator for the "username" field. It is called by the builders before save.
	UsernameValidator func(string) error
	// PhoneValidator is a validator for the "phone" field. It is called by the builders before save.
	PhoneValidator func(string) error
	// AvatarURLValidator is a validator for the "avatar_url" field. It is called by the builders before save.
	AvatarURLValidator func(string) error
	// HomepageValidator is a validator for the "homepage" field. It is called by the builders before save.
	HomepageValidator func(string) error
	// BioValidator is a validator for the "bio" field. It is called by the builders before save.
	BioValidator func(string) error
	// PasswordValidator is a validator for the "password" field. It is called by the builders before save.
	PasswordValidator func(string) error
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
)

Columns holds all SQL columns for user fields.

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func AvatarURL added in v1.0.6

func AvatarURL(v string) predicate.User

AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.

func AvatarURLContains added in v1.0.6

func AvatarURLContains(v string) predicate.User

AvatarURLContains applies the Contains predicate on the "avatar_url" field.

func AvatarURLContainsFold added in v1.0.6

func AvatarURLContainsFold(v string) predicate.User

AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.

func AvatarURLEQ added in v1.0.6

func AvatarURLEQ(v string) predicate.User

AvatarURLEQ applies the EQ predicate on the "avatar_url" field.

func AvatarURLEqualFold added in v1.0.6

func AvatarURLEqualFold(v string) predicate.User

AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.

func AvatarURLGT added in v1.0.6

func AvatarURLGT(v string) predicate.User

AvatarURLGT applies the GT predicate on the "avatar_url" field.

func AvatarURLGTE added in v1.0.6

func AvatarURLGTE(v string) predicate.User

AvatarURLGTE applies the GTE predicate on the "avatar_url" field.

func AvatarURLHasPrefix added in v1.0.6

func AvatarURLHasPrefix(v string) predicate.User

AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.

func AvatarURLHasSuffix added in v1.0.6

func AvatarURLHasSuffix(v string) predicate.User

AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.

func AvatarURLIn added in v1.0.6

func AvatarURLIn(vs ...string) predicate.User

AvatarURLIn applies the In predicate on the "avatar_url" field.

func AvatarURLIsNil added in v1.0.6

func AvatarURLIsNil() predicate.User

AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.

func AvatarURLLT added in v1.0.6

func AvatarURLLT(v string) predicate.User

AvatarURLLT applies the LT predicate on the "avatar_url" field.

func AvatarURLLTE added in v1.0.6

func AvatarURLLTE(v string) predicate.User

AvatarURLLTE applies the LTE predicate on the "avatar_url" field.

func AvatarURLNEQ added in v1.0.6

func AvatarURLNEQ(v string) predicate.User

AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.

func AvatarURLNotIn added in v1.0.6

func AvatarURLNotIn(vs ...string) predicate.User

AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.

func AvatarURLNotNil added in v1.0.6

func AvatarURLNotNil() predicate.User

AvatarURLNotNil applies the NotNil predicate on the "avatar_url" field.

func Bio added in v1.0.6

func Bio(v string) predicate.User

Bio applies equality check predicate on the "bio" field. It's identical to BioEQ.

func BioContains added in v1.0.6

func BioContains(v string) predicate.User

BioContains applies the Contains predicate on the "bio" field.

func BioContainsFold added in v1.0.6

func BioContainsFold(v string) predicate.User

BioContainsFold applies the ContainsFold predicate on the "bio" field.

func BioEQ added in v1.0.6

func BioEQ(v string) predicate.User

BioEQ applies the EQ predicate on the "bio" field.

func BioEqualFold added in v1.0.6

func BioEqualFold(v string) predicate.User

BioEqualFold applies the EqualFold predicate on the "bio" field.

func BioGT added in v1.0.6

func BioGT(v string) predicate.User

BioGT applies the GT predicate on the "bio" field.

func BioGTE added in v1.0.6

func BioGTE(v string) predicate.User

BioGTE applies the GTE predicate on the "bio" field.

func BioHasPrefix added in v1.0.6

func BioHasPrefix(v string) predicate.User

BioHasPrefix applies the HasPrefix predicate on the "bio" field.

func BioHasSuffix added in v1.0.6

func BioHasSuffix(v string) predicate.User

BioHasSuffix applies the HasSuffix predicate on the "bio" field.

func BioIn added in v1.0.6

func BioIn(vs ...string) predicate.User

BioIn applies the In predicate on the "bio" field.

func BioIsNil added in v1.0.6

func BioIsNil() predicate.User

BioIsNil applies the IsNil predicate on the "bio" field.

func BioLT added in v1.0.6

func BioLT(v string) predicate.User

BioLT applies the LT predicate on the "bio" field.

func BioLTE added in v1.0.6

func BioLTE(v string) predicate.User

BioLTE applies the LTE predicate on the "bio" field.

func BioNEQ added in v1.0.6

func BioNEQ(v string) predicate.User

BioNEQ applies the NEQ predicate on the "bio" field.

func BioNotIn added in v1.0.6

func BioNotIn(vs ...string) predicate.User

BioNotIn applies the NotIn predicate on the "bio" field.

func BioNotNil added in v1.0.6

func BioNotNil() predicate.User

BioNotNil applies the NotNil predicate on the "bio" field.

func CreateTime

func CreateTime(v time.Time) predicate.User

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.User

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.User

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.User

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.User

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.User

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.User

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.User

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.User

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func DeleteTime

func DeleteTime(v time.Time) predicate.User

DeleteTime applies equality check predicate on the "delete_time" field. It's identical to DeleteTimeEQ.

func DeleteTimeEQ

func DeleteTimeEQ(v time.Time) predicate.User

DeleteTimeEQ applies the EQ predicate on the "delete_time" field.

func DeleteTimeGT

func DeleteTimeGT(v time.Time) predicate.User

DeleteTimeGT applies the GT predicate on the "delete_time" field.

func DeleteTimeGTE

func DeleteTimeGTE(v time.Time) predicate.User

DeleteTimeGTE applies the GTE predicate on the "delete_time" field.

func DeleteTimeIn

func DeleteTimeIn(vs ...time.Time) predicate.User

DeleteTimeIn applies the In predicate on the "delete_time" field.

func DeleteTimeIsNil

func DeleteTimeIsNil() predicate.User

DeleteTimeIsNil applies the IsNil predicate on the "delete_time" field.

func DeleteTimeLT

func DeleteTimeLT(v time.Time) predicate.User

DeleteTimeLT applies the LT predicate on the "delete_time" field.

func DeleteTimeLTE

func DeleteTimeLTE(v time.Time) predicate.User

DeleteTimeLTE applies the LTE predicate on the "delete_time" field.

func DeleteTimeNEQ

func DeleteTimeNEQ(v time.Time) predicate.User

DeleteTimeNEQ applies the NEQ predicate on the "delete_time" field.

func DeleteTimeNotIn

func DeleteTimeNotIn(vs ...time.Time) predicate.User

DeleteTimeNotIn applies the NotIn predicate on the "delete_time" field.

func DeleteTimeNotNil

func DeleteTimeNotNil() predicate.User

DeleteTimeNotNil applies the NotNil predicate on the "delete_time" field.

func GenderEQ added in v1.0.3

func GenderEQ(v Gender) predicate.User

GenderEQ applies the EQ predicate on the "gender" field.

func GenderIn added in v1.0.3

func GenderIn(vs ...Gender) predicate.User

GenderIn applies the In predicate on the "gender" field.

func GenderNEQ added in v1.0.3

func GenderNEQ(v Gender) predicate.User

GenderNEQ applies the NEQ predicate on the "gender" field.

func GenderNotIn added in v1.0.3

func GenderNotIn(vs ...Gender) predicate.User

GenderNotIn applies the NotIn predicate on the "gender" field.

func GenderValidator added in v1.0.3

func GenderValidator(ge Gender) error

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

func HasComponents added in v1.0.3

func HasComponents() predicate.User

HasComponents applies the HasEdge predicate on the "Components" edge.

func HasComponentsWith added in v1.0.3

func HasComponentsWith(preds ...predicate.Component) predicate.User

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

func HasUserEmails

func HasUserEmails() predicate.User

HasUserEmails applies the HasEdge predicate on the "UserEmails" edge.

func HasUserEmailsWith

func HasUserEmailsWith(preds ...predicate.UserEmail) predicate.User

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

func HasUserSecurityLogs

func HasUserSecurityLogs() predicate.User

HasUserSecurityLogs applies the HasEdge predicate on the "UserSecurityLogs" edge.

func HasUserSecurityLogsWith

func HasUserSecurityLogsWith(preds ...predicate.UserSecurityLog) predicate.User

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

func HasUserSettings

func HasUserSettings() predicate.User

HasUserSettings applies the HasEdge predicate on the "UserSettings" edge.

func HasUserSettingsWith

func HasUserSettingsWith(preds ...predicate.UserSetting) predicate.User

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

func Homepage added in v1.0.3

func Homepage(v string) predicate.User

Homepage applies equality check predicate on the "homepage" field. It's identical to HomepageEQ.

func HomepageContains added in v1.0.3

func HomepageContains(v string) predicate.User

HomepageContains applies the Contains predicate on the "homepage" field.

func HomepageContainsFold added in v1.0.3

func HomepageContainsFold(v string) predicate.User

HomepageContainsFold applies the ContainsFold predicate on the "homepage" field.

func HomepageEQ added in v1.0.3

func HomepageEQ(v string) predicate.User

HomepageEQ applies the EQ predicate on the "homepage" field.

func HomepageEqualFold added in v1.0.3

func HomepageEqualFold(v string) predicate.User

HomepageEqualFold applies the EqualFold predicate on the "homepage" field.

func HomepageGT added in v1.0.3

func HomepageGT(v string) predicate.User

HomepageGT applies the GT predicate on the "homepage" field.

func HomepageGTE added in v1.0.3

func HomepageGTE(v string) predicate.User

HomepageGTE applies the GTE predicate on the "homepage" field.

func HomepageHasPrefix added in v1.0.3

func HomepageHasPrefix(v string) predicate.User

HomepageHasPrefix applies the HasPrefix predicate on the "homepage" field.

func HomepageHasSuffix added in v1.0.3

func HomepageHasSuffix(v string) predicate.User

HomepageHasSuffix applies the HasSuffix predicate on the "homepage" field.

func HomepageIn added in v1.0.3

func HomepageIn(vs ...string) predicate.User

HomepageIn applies the In predicate on the "homepage" field.

func HomepageIsNil added in v1.0.3

func HomepageIsNil() predicate.User

HomepageIsNil applies the IsNil predicate on the "homepage" field.

func HomepageLT added in v1.0.3

func HomepageLT(v string) predicate.User

HomepageLT applies the LT predicate on the "homepage" field.

func HomepageLTE added in v1.0.3

func HomepageLTE(v string) predicate.User

HomepageLTE applies the LTE predicate on the "homepage" field.

func HomepageNEQ added in v1.0.3

func HomepageNEQ(v string) predicate.User

HomepageNEQ applies the NEQ predicate on the "homepage" field.

func HomepageNotIn added in v1.0.3

func HomepageNotIn(vs ...string) predicate.User

HomepageNotIn applies the NotIn predicate on the "homepage" field.

func HomepageNotNil added in v1.0.3

func HomepageNotNil() predicate.User

HomepageNotNil applies the NotNil predicate on the "homepage" field.

func ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func LastPwdAuth

func LastPwdAuth(v time.Time) predicate.User

LastPwdAuth applies equality check predicate on the "last_pwd_auth" field. It's identical to LastPwdAuthEQ.

func LastPwdAuthEQ

func LastPwdAuthEQ(v time.Time) predicate.User

LastPwdAuthEQ applies the EQ predicate on the "last_pwd_auth" field.

func LastPwdAuthGT

func LastPwdAuthGT(v time.Time) predicate.User

LastPwdAuthGT applies the GT predicate on the "last_pwd_auth" field.

func LastPwdAuthGTE

func LastPwdAuthGTE(v time.Time) predicate.User

LastPwdAuthGTE applies the GTE predicate on the "last_pwd_auth" field.

func LastPwdAuthIn

func LastPwdAuthIn(vs ...time.Time) predicate.User

LastPwdAuthIn applies the In predicate on the "last_pwd_auth" field.

func LastPwdAuthIsNil

func LastPwdAuthIsNil() predicate.User

LastPwdAuthIsNil applies the IsNil predicate on the "last_pwd_auth" field.

func LastPwdAuthLT

func LastPwdAuthLT(v time.Time) predicate.User

LastPwdAuthLT applies the LT predicate on the "last_pwd_auth" field.

func LastPwdAuthLTE

func LastPwdAuthLTE(v time.Time) predicate.User

LastPwdAuthLTE applies the LTE predicate on the "last_pwd_auth" field.

func LastPwdAuthNEQ

func LastPwdAuthNEQ(v time.Time) predicate.User

LastPwdAuthNEQ applies the NEQ predicate on the "last_pwd_auth" field.

func LastPwdAuthNotIn

func LastPwdAuthNotIn(vs ...time.Time) predicate.User

LastPwdAuthNotIn applies the NotIn predicate on the "last_pwd_auth" field.

func LastPwdAuthNotNil

func LastPwdAuthNotNil() predicate.User

LastPwdAuthNotNil applies the NotNil predicate on the "last_pwd_auth" field.

func Nickname

func Nickname(v string) predicate.User

Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.

func NicknameContains

func NicknameContains(v string) predicate.User

NicknameContains applies the Contains predicate on the "nickname" field.

func NicknameContainsFold

func NicknameContainsFold(v string) predicate.User

NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.

func NicknameEQ

func NicknameEQ(v string) predicate.User

NicknameEQ applies the EQ predicate on the "nickname" field.

func NicknameEqualFold

func NicknameEqualFold(v string) predicate.User

NicknameEqualFold applies the EqualFold predicate on the "nickname" field.

func NicknameGT

func NicknameGT(v string) predicate.User

NicknameGT applies the GT predicate on the "nickname" field.

func NicknameGTE

func NicknameGTE(v string) predicate.User

NicknameGTE applies the GTE predicate on the "nickname" field.

func NicknameHasPrefix

func NicknameHasPrefix(v string) predicate.User

NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.

func NicknameHasSuffix

func NicknameHasSuffix(v string) predicate.User

NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.

func NicknameIn

func NicknameIn(vs ...string) predicate.User

NicknameIn applies the In predicate on the "nickname" field.

func NicknameIsNil added in v1.0.5

func NicknameIsNil() predicate.User

NicknameIsNil applies the IsNil predicate on the "nickname" field.

func NicknameLT

func NicknameLT(v string) predicate.User

NicknameLT applies the LT predicate on the "nickname" field.

func NicknameLTE

func NicknameLTE(v string) predicate.User

NicknameLTE applies the LTE predicate on the "nickname" field.

func NicknameNEQ

func NicknameNEQ(v string) predicate.User

NicknameNEQ applies the NEQ predicate on the "nickname" field.

func NicknameNotIn

func NicknameNotIn(vs ...string) predicate.User

NicknameNotIn applies the NotIn predicate on the "nickname" field.

func NicknameNotNil added in v1.0.5

func NicknameNotNil() predicate.User

NicknameNotNil applies the NotNil predicate on the "nickname" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.User

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains

func PasswordContains(v string) predicate.User

PasswordContains applies the Contains predicate on the "password" field.

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.User

PasswordContainsFold applies the ContainsFold predicate on the "password" field.

func PasswordEQ

func PasswordEQ(v string) predicate.User

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.User

PasswordEqualFold applies the EqualFold predicate on the "password" field.

func PasswordGT

func PasswordGT(v string) predicate.User

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v string) predicate.User

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.User

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.User

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn

func PasswordIn(vs ...string) predicate.User

PasswordIn applies the In predicate on the "password" field.

func PasswordIsNil

func PasswordIsNil() predicate.User

PasswordIsNil applies the IsNil predicate on the "password" field.

func PasswordLT

func PasswordLT(v string) predicate.User

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v string) predicate.User

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v string) predicate.User

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

func PasswordNotIn(vs ...string) predicate.User

PasswordNotIn applies the NotIn predicate on the "password" field.

func PasswordNotNil

func PasswordNotNil() predicate.User

PasswordNotNil applies the NotNil predicate on the "password" field.

func Phone

func Phone(v string) predicate.User

Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.

func PhoneContains

func PhoneContains(v string) predicate.User

PhoneContains applies the Contains predicate on the "phone" field.

func PhoneContainsFold

func PhoneContainsFold(v string) predicate.User

PhoneContainsFold applies the ContainsFold predicate on the "phone" field.

func PhoneEQ

func PhoneEQ(v string) predicate.User

PhoneEQ applies the EQ predicate on the "phone" field.

func PhoneEqualFold

func PhoneEqualFold(v string) predicate.User

PhoneEqualFold applies the EqualFold predicate on the "phone" field.

func PhoneGT

func PhoneGT(v string) predicate.User

PhoneGT applies the GT predicate on the "phone" field.

func PhoneGTE

func PhoneGTE(v string) predicate.User

PhoneGTE applies the GTE predicate on the "phone" field.

func PhoneHasPrefix

func PhoneHasPrefix(v string) predicate.User

PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.

func PhoneHasSuffix

func PhoneHasSuffix(v string) predicate.User

PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.

func PhoneIn

func PhoneIn(vs ...string) predicate.User

PhoneIn applies the In predicate on the "phone" field.

func PhoneIsNil

func PhoneIsNil() predicate.User

PhoneIsNil applies the IsNil predicate on the "phone" field.

func PhoneLT

func PhoneLT(v string) predicate.User

PhoneLT applies the LT predicate on the "phone" field.

func PhoneLTE

func PhoneLTE(v string) predicate.User

PhoneLTE applies the LTE predicate on the "phone" field.

func PhoneNEQ

func PhoneNEQ(v string) predicate.User

PhoneNEQ applies the NEQ predicate on the "phone" field.

func PhoneNotIn

func PhoneNotIn(vs ...string) predicate.User

PhoneNotIn applies the NotIn predicate on the "phone" field.

func PhoneNotNil

func PhoneNotNil() predicate.User

PhoneNotNil applies the NotNil predicate on the "phone" field.

func Sn

func Sn(v string) predicate.User

Sn applies equality check predicate on the "sn" field. It's identical to SnEQ.

func SnContains

func SnContains(v string) predicate.User

SnContains applies the Contains predicate on the "sn" field.

func SnContainsFold

func SnContainsFold(v string) predicate.User

SnContainsFold applies the ContainsFold predicate on the "sn" field.

func SnEQ

func SnEQ(v string) predicate.User

SnEQ applies the EQ predicate on the "sn" field.

func SnEqualFold

func SnEqualFold(v string) predicate.User

SnEqualFold applies the EqualFold predicate on the "sn" field.

func SnGT

func SnGT(v string) predicate.User

SnGT applies the GT predicate on the "sn" field.

func SnGTE

func SnGTE(v string) predicate.User

SnGTE applies the GTE predicate on the "sn" field.

func SnHasPrefix

func SnHasPrefix(v string) predicate.User

SnHasPrefix applies the HasPrefix predicate on the "sn" field.

func SnHasSuffix

func SnHasSuffix(v string) predicate.User

SnHasSuffix applies the HasSuffix predicate on the "sn" field.

func SnIn

func SnIn(vs ...string) predicate.User

SnIn applies the In predicate on the "sn" field.

func SnLT

func SnLT(v string) predicate.User

SnLT applies the LT predicate on the "sn" field.

func SnLTE

func SnLTE(v string) predicate.User

SnLTE applies the LTE predicate on the "sn" field.

func SnNEQ

func SnNEQ(v string) predicate.User

SnNEQ applies the NEQ predicate on the "sn" field.

func SnNotIn

func SnNotIn(vs ...string) predicate.User

SnNotIn applies the NotIn predicate on the "sn" field.

func StatusEQ

func StatusEQ(v Status) predicate.User

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.User

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.User

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.User

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.User

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.User

StatusNotNil applies the NotNil predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

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

func UpdateTime

func UpdateTime(v time.Time) predicate.User

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.User

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.User

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.User

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.User

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.User

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.User

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.User

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.User

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func Username added in v1.0.5

func Username(v string) predicate.User

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

func UsernameContains added in v1.0.5

func UsernameContains(v string) predicate.User

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

func UsernameContainsFold added in v1.0.5

func UsernameContainsFold(v string) predicate.User

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

func UsernameEQ added in v1.0.5

func UsernameEQ(v string) predicate.User

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

func UsernameEqualFold added in v1.0.5

func UsernameEqualFold(v string) predicate.User

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

func UsernameGT added in v1.0.5

func UsernameGT(v string) predicate.User

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

func UsernameGTE added in v1.0.5

func UsernameGTE(v string) predicate.User

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

func UsernameHasPrefix added in v1.0.5

func UsernameHasPrefix(v string) predicate.User

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

func UsernameHasSuffix added in v1.0.5

func UsernameHasSuffix(v string) predicate.User

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

func UsernameIn added in v1.0.5

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

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

func UsernameLT added in v1.0.5

func UsernameLT(v string) predicate.User

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

func UsernameLTE added in v1.0.5

func UsernameLTE(v string) predicate.User

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

func UsernameNEQ added in v1.0.5

func UsernameNEQ(v string) predicate.User

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

func UsernameNotIn added in v1.0.5

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

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 Gender added in v1.0.3

type Gender string

Gender defines the type for the "gender" enum field.

const (
	GenderUnknown Gender = "unknown"
	GenderMale    Gender = "male"
	GenderFemale  Gender = "female"
)

Gender values.

func (Gender) String added in v1.0.3

func (ge Gender) String() string

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusBLACKLIST Status = "BLACKLIST"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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