Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func Avatar(v string) predicate.User
- func AvatarContains(v string) predicate.User
- func AvatarContainsFold(v string) predicate.User
- func AvatarEQ(v string) predicate.User
- func AvatarEqualFold(v string) predicate.User
- func AvatarGT(v string) predicate.User
- func AvatarGTE(v string) predicate.User
- func AvatarHasPrefix(v string) predicate.User
- func AvatarHasSuffix(v string) predicate.User
- func AvatarIn(vs ...string) predicate.User
- func AvatarIsNil() predicate.User
- func AvatarLT(v string) predicate.User
- func AvatarLTE(v string) predicate.User
- func AvatarNEQ(v string) predicate.User
- func AvatarNotIn(vs ...string) predicate.User
- func AvatarNotNil() predicate.User
- func Bio(v string) predicate.User
- func BioContains(v string) predicate.User
- func BioContainsFold(v string) predicate.User
- func BioEQ(v string) predicate.User
- func BioEqualFold(v string) predicate.User
- func BioGT(v string) predicate.User
- func BioGTE(v string) predicate.User
- func BioHasPrefix(v string) predicate.User
- func BioHasSuffix(v string) predicate.User
- func BioIn(vs ...string) predicate.User
- func BioIsNil() predicate.User
- func BioLT(v string) predicate.User
- func BioLTE(v string) predicate.User
- func BioNEQ(v string) predicate.User
- func BioNotIn(vs ...string) predicate.User
- func BioNotNil() predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func EmailVerified(v bool) predicate.User
- func EmailVerifiedEQ(v bool) predicate.User
- func EmailVerifiedNEQ(v bool) predicate.User
- func HasAccount() predicate.User
- func HasAccountWith(preds ...predicate.Account) predicate.User
- func HasAuditLogs() predicate.User
- func HasAuditLogsWith(preds ...predicate.AuditLog) predicate.User
- func HasRole() predicate.User
- func HasRoleWith(preds ...predicate.Role) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func IsDefault(v bool) predicate.User
- func IsDefaultEQ(v bool) predicate.User
- func IsDefaultNEQ(v bool) predicate.User
- func LastLoginTime(v time.Time) predicate.User
- func LastLoginTimeEQ(v time.Time) predicate.User
- func LastLoginTimeGT(v time.Time) predicate.User
- func LastLoginTimeGTE(v time.Time) predicate.User
- func LastLoginTimeIn(vs ...time.Time) predicate.User
- func LastLoginTimeLT(v time.Time) predicate.User
- func LastLoginTimeLTE(v time.Time) predicate.User
- func LastLoginTimeNEQ(v time.Time) predicate.User
- func LastLoginTimeNotIn(vs ...time.Time) predicate.User
- func LockoutTime(v time.Time) predicate.User
- func LockoutTimeEQ(v time.Time) predicate.User
- func LockoutTimeGT(v time.Time) predicate.User
- func LockoutTimeGTE(v time.Time) predicate.User
- func LockoutTimeIn(vs ...time.Time) predicate.User
- func LockoutTimeIsNil() predicate.User
- func LockoutTimeLT(v time.Time) predicate.User
- func LockoutTimeLTE(v time.Time) predicate.User
- func LockoutTimeNEQ(v time.Time) predicate.User
- func LockoutTimeNotIn(vs ...time.Time) predicate.User
- func LockoutTimeNotNil() predicate.User
- func LoginAttempts(v int) predicate.User
- func LoginAttemptsEQ(v int) predicate.User
- func LoginAttemptsGT(v int) predicate.User
- func LoginAttemptsGTE(v int) predicate.User
- func LoginAttemptsIn(vs ...int) predicate.User
- func LoginAttemptsLT(v int) predicate.User
- func LoginAttemptsLTE(v int) predicate.User
- func LoginAttemptsNEQ(v int) predicate.User
- func LoginAttemptsNotIn(vs ...int) predicate.User
- func Nickname(v string) predicate.User
- func NicknameContains(v string) predicate.User
- func NicknameContainsFold(v string) predicate.User
- func NicknameEQ(v string) predicate.User
- func NicknameEqualFold(v string) predicate.User
- func NicknameGT(v string) predicate.User
- func NicknameGTE(v string) predicate.User
- func NicknameHasPrefix(v string) predicate.User
- func NicknameHasSuffix(v string) predicate.User
- func NicknameIn(vs ...string) predicate.User
- func NicknameIsNil() predicate.User
- func NicknameLT(v string) predicate.User
- func NicknameLTE(v string) predicate.User
- func NicknameNEQ(v string) predicate.User
- func NicknameNotIn(vs ...string) predicate.User
- func NicknameNotNil() predicate.User
- func Not(p predicate.User) predicate.User
- func Online(v bool) predicate.User
- func OnlineEQ(v bool) predicate.User
- func OnlineNEQ(v bool) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Password(v string) predicate.User
- func PasswordContains(v string) predicate.User
- func PasswordContainsFold(v string) predicate.User
- func PasswordEQ(v string) predicate.User
- func PasswordEqualFold(v string) predicate.User
- func PasswordGT(v string) predicate.User
- func PasswordGTE(v string) predicate.User
- func PasswordHasPrefix(v string) predicate.User
- func PasswordHasSuffix(v string) predicate.User
- func PasswordIn(vs ...string) predicate.User
- func PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func PhoneNumber(v string) predicate.User
- func PhoneNumberContains(v string) predicate.User
- func PhoneNumberContainsFold(v string) predicate.User
- func PhoneNumberEQ(v string) predicate.User
- func PhoneNumberEqualFold(v string) predicate.User
- func PhoneNumberGT(v string) predicate.User
- func PhoneNumberGTE(v string) predicate.User
- func PhoneNumberHasPrefix(v string) predicate.User
- func PhoneNumberHasSuffix(v string) predicate.User
- func PhoneNumberIn(vs ...string) predicate.User
- func PhoneNumberIsNil() predicate.User
- func PhoneNumberLT(v string) predicate.User
- func PhoneNumberLTE(v string) predicate.User
- func PhoneNumberNEQ(v string) predicate.User
- func PhoneNumberNotIn(vs ...string) predicate.User
- func PhoneNumberNotNil() predicate.User
- func PhoneNumberVerified(v bool) predicate.User
- func PhoneNumberVerifiedEQ(v bool) predicate.User
- func PhoneNumberVerifiedNEQ(v bool) predicate.User
- func SocialLoginsIsNil() predicate.User
- func SocialLoginsNotNil() predicate.User
- func Status(v bool) predicate.User
- func StatusEQ(v bool) predicate.User
- func StatusNEQ(v bool) predicate.User
- func TotpSecret(v string) predicate.User
- func TotpSecretContains(v string) predicate.User
- func TotpSecretContainsFold(v string) predicate.User
- func TotpSecretEQ(v string) predicate.User
- func TotpSecretEqualFold(v string) predicate.User
- func TotpSecretGT(v string) predicate.User
- func TotpSecretGTE(v string) predicate.User
- func TotpSecretHasPrefix(v string) predicate.User
- func TotpSecretHasSuffix(v string) predicate.User
- func TotpSecretIn(vs ...string) predicate.User
- func TotpSecretIsNil() predicate.User
- func TotpSecretLT(v string) predicate.User
- func TotpSecretLTE(v string) predicate.User
- func TotpSecretNEQ(v string) predicate.User
- func TotpSecretNotIn(vs ...string) predicate.User
- func TotpSecretNotNil() predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func Username(v string) predicate.User
- func UsernameContains(v string) predicate.User
- func UsernameContainsFold(v string) predicate.User
- func UsernameEQ(v string) predicate.User
- func UsernameEqualFold(v string) predicate.User
- func UsernameGT(v string) predicate.User
- func UsernameGTE(v string) predicate.User
- func UsernameHasPrefix(v string) predicate.User
- func UsernameHasSuffix(v string) predicate.User
- func UsernameIn(vs ...string) predicate.User
- func UsernameLT(v string) predicate.User
- func UsernameLTE(v string) predicate.User
- func UsernameNEQ(v string) predicate.User
- func UsernameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByAccountField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByAuditLogs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAuditLogsCount(opts ...sql.OrderTermOption) OrderOption
- func ByAvatar(opts ...sql.OrderTermOption) OrderOption
- func ByBio(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByEmailVerified(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
- func ByLastLoginTime(opts ...sql.OrderTermOption) OrderOption
- func ByLockoutTime(opts ...sql.OrderTermOption) OrderOption
- func ByLoginAttempts(opts ...sql.OrderTermOption) OrderOption
- func ByNickname(opts ...sql.OrderTermOption) OrderOption
- func ByOnline(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByPhoneNumber(opts ...sql.OrderTermOption) OrderOption
- func ByPhoneNumberVerified(opts ...sql.OrderTermOption) OrderOption
- func ByRoleField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTotpSecret(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // FieldBio holds the string denoting the bio field in the database. FieldBio = "bio" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldEmailVerified holds the string denoting the email_verified field in the database. FieldEmailVerified = "email_verified" // FieldPhoneNumber holds the string denoting the phone_number field in the database. FieldPhoneNumber = "phone_number" // FieldPhoneNumberVerified holds the string denoting the phone_number_verified field in the database. FieldPhoneNumberVerified = "phone_number_verified" // FieldTotpSecret holds the string denoting the totp_secret field in the database. FieldTotpSecret = "totp_secret" // FieldOnline holds the string denoting the online field in the database. FieldOnline = "online" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldLoginAttempts holds the string denoting the login_attempts field in the database. FieldLoginAttempts = "login_attempts" // FieldLockoutTime holds the string denoting the lockout_time field in the database. FieldLockoutTime = "lockout_time" // FieldLastLoginTime holds the string denoting the last_login_time field in the database. FieldLastLoginTime = "last_login_time" // FieldSocialLogins holds the string denoting the social_logins field in the database. FieldSocialLogins = "social_logins" // FieldIsDefault holds the string denoting the is_default field in the database. FieldIsDefault = "is_default" // EdgeAccount holds the string denoting the account edge name in mutations. EdgeAccount = "account" // EdgeRole holds the string denoting the role edge name in mutations. EdgeRole = "role" // EdgeAuditLogs holds the string denoting the audit_logs edge name in mutations. EdgeAuditLogs = "audit_logs" // Table holds the table name of the user in the database. Table = "users" // AccountTable is the table that holds the account relation/edge. AccountTable = "users" // AccountInverseTable is the table name for the Account entity. // It exists in this package in order to avoid circular dependency with the "account" package. AccountInverseTable = "accounts" // AccountColumn is the table column denoting the account relation/edge. AccountColumn = "account_users" // RoleTable is the table that holds the role relation/edge. RoleTable = "users" // RoleInverseTable is the table name for the Role entity. // It exists in this package in order to avoid circular dependency with the "role" package. RoleInverseTable = "roles" // RoleColumn is the table column denoting the role relation/edge. RoleColumn = "user_role" // AuditLogsTable is the table that holds the audit_logs relation/edge. The primary key declared below. AuditLogsTable = "user_audit_logs" // AuditLogsInverseTable is the table name for the AuditLog entity. // It exists in this package in order to avoid circular dependency with the "auditlog" package. AuditLogsInverseTable = "audit_logs" )
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // NicknameValidator is a validator for the "nickname" field. It is called by the builders before save. NicknameValidator func(string) error // BioValidator is a validator for the "bio" field. It is called by the builders before save. BioValidator func(string) error // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // PasswordValidator is a validator for the "password" field. It is called by the builders before save. PasswordValidator func(string) error // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // DefaultEmailVerified holds the default value on creation for the "email_verified" field. DefaultEmailVerified bool // DefaultPhoneNumber holds the default value on creation for the "phone_number" field. DefaultPhoneNumber string // DefaultPhoneNumberVerified holds the default value on creation for the "phone_number_verified" field. DefaultPhoneNumberVerified bool // DefaultOnline holds the default value on creation for the "online" field. DefaultOnline bool // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus bool // DefaultLoginAttempts holds the default value on creation for the "login_attempts" field. DefaultLoginAttempts int // DefaultLastLoginTime holds the default value on creation for the "last_login_time" field. DefaultLastLoginTime func() time.Time // DefaultIsDefault holds the default value on creation for the "is_default" field. DefaultIsDefault bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var ( // AuditLogsPrimaryKey and AuditLogsColumn2 are the table columns denoting the // primary key for the audit_logs relation (M2M). AuditLogsPrimaryKey = []string{"user_id", "audit_log_id"} )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldAvatar, FieldNickname, FieldBio, FieldUsername, FieldPassword, FieldEmail, FieldEmailVerified, FieldPhoneNumber, FieldPhoneNumberVerified, FieldTotpSecret, FieldOnline, FieldStatus, FieldLoginAttempts, FieldLockoutTime, FieldLastLoginTime, FieldSocialLogins, FieldIsDefault, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"account_users",
"user_role",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "users" table and are not defined as standalone fields in the schema.
Functions ¶
func Avatar ¶
Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
func AvatarContains ¶
AvatarContains applies the Contains predicate on the "avatar" field.
func AvatarContainsFold ¶
AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.
func AvatarEqualFold ¶
AvatarEqualFold applies the EqualFold predicate on the "avatar" field.
func AvatarHasPrefix ¶
AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.
func AvatarHasSuffix ¶
AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.
func AvatarIsNil ¶
AvatarIsNil applies the IsNil predicate on the "avatar" field.
func AvatarNotIn ¶
AvatarNotIn applies the NotIn predicate on the "avatar" field.
func AvatarNotNil ¶
AvatarNotNil applies the NotNil predicate on the "avatar" field.
func BioContains ¶
BioContains applies the Contains predicate on the "bio" field.
func BioContainsFold ¶
BioContainsFold applies the ContainsFold predicate on the "bio" field.
func BioEqualFold ¶
BioEqualFold applies the EqualFold predicate on the "bio" field.
func BioHasPrefix ¶
BioHasPrefix applies the HasPrefix predicate on the "bio" field.
func BioHasSuffix ¶
BioHasSuffix applies the HasSuffix predicate on the "bio" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func EmailVerified ¶
EmailVerified applies equality check predicate on the "email_verified" field. It's identical to EmailVerifiedEQ.
func EmailVerifiedEQ ¶
EmailVerifiedEQ applies the EQ predicate on the "email_verified" field.
func EmailVerifiedNEQ ¶
EmailVerifiedNEQ applies the NEQ predicate on the "email_verified" field.
func HasAccount ¶
HasAccount applies the HasEdge predicate on the "account" edge.
func HasAccountWith ¶
HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).
func HasAuditLogs ¶
HasAuditLogs applies the HasEdge predicate on the "audit_logs" edge.
func HasAuditLogsWith ¶
HasAuditLogsWith applies the HasEdge predicate on the "audit_logs" edge with a given conditions (other predicates).
func HasRoleWith ¶
HasRoleWith applies the HasEdge predicate on the "role" edge with a given conditions (other predicates).
func IsDefault ¶
IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.
func IsDefaultEQ ¶
IsDefaultEQ applies the EQ predicate on the "is_default" field.
func IsDefaultNEQ ¶
IsDefaultNEQ applies the NEQ predicate on the "is_default" field.
func LastLoginTime ¶
LastLoginTime applies equality check predicate on the "last_login_time" field. It's identical to LastLoginTimeEQ.
func LastLoginTimeEQ ¶
LastLoginTimeEQ applies the EQ predicate on the "last_login_time" field.
func LastLoginTimeGT ¶
LastLoginTimeGT applies the GT predicate on the "last_login_time" field.
func LastLoginTimeGTE ¶
LastLoginTimeGTE applies the GTE predicate on the "last_login_time" field.
func LastLoginTimeIn ¶
LastLoginTimeIn applies the In predicate on the "last_login_time" field.
func LastLoginTimeLT ¶
LastLoginTimeLT applies the LT predicate on the "last_login_time" field.
func LastLoginTimeLTE ¶
LastLoginTimeLTE applies the LTE predicate on the "last_login_time" field.
func LastLoginTimeNEQ ¶
LastLoginTimeNEQ applies the NEQ predicate on the "last_login_time" field.
func LastLoginTimeNotIn ¶
LastLoginTimeNotIn applies the NotIn predicate on the "last_login_time" field.
func LockoutTime ¶
LockoutTime applies equality check predicate on the "lockout_time" field. It's identical to LockoutTimeEQ.
func LockoutTimeEQ ¶
LockoutTimeEQ applies the EQ predicate on the "lockout_time" field.
func LockoutTimeGT ¶
LockoutTimeGT applies the GT predicate on the "lockout_time" field.
func LockoutTimeGTE ¶
LockoutTimeGTE applies the GTE predicate on the "lockout_time" field.
func LockoutTimeIn ¶
LockoutTimeIn applies the In predicate on the "lockout_time" field.
func LockoutTimeIsNil ¶
LockoutTimeIsNil applies the IsNil predicate on the "lockout_time" field.
func LockoutTimeLT ¶
LockoutTimeLT applies the LT predicate on the "lockout_time" field.
func LockoutTimeLTE ¶
LockoutTimeLTE applies the LTE predicate on the "lockout_time" field.
func LockoutTimeNEQ ¶
LockoutTimeNEQ applies the NEQ predicate on the "lockout_time" field.
func LockoutTimeNotIn ¶
LockoutTimeNotIn applies the NotIn predicate on the "lockout_time" field.
func LockoutTimeNotNil ¶
LockoutTimeNotNil applies the NotNil predicate on the "lockout_time" field.
func LoginAttempts ¶
LoginAttempts applies equality check predicate on the "login_attempts" field. It's identical to LoginAttemptsEQ.
func LoginAttemptsEQ ¶
LoginAttemptsEQ applies the EQ predicate on the "login_attempts" field.
func LoginAttemptsGT ¶
LoginAttemptsGT applies the GT predicate on the "login_attempts" field.
func LoginAttemptsGTE ¶
LoginAttemptsGTE applies the GTE predicate on the "login_attempts" field.
func LoginAttemptsIn ¶
LoginAttemptsIn applies the In predicate on the "login_attempts" field.
func LoginAttemptsLT ¶
LoginAttemptsLT applies the LT predicate on the "login_attempts" field.
func LoginAttemptsLTE ¶
LoginAttemptsLTE applies the LTE predicate on the "login_attempts" field.
func LoginAttemptsNEQ ¶
LoginAttemptsNEQ applies the NEQ predicate on the "login_attempts" field.
func LoginAttemptsNotIn ¶
LoginAttemptsNotIn applies the NotIn predicate on the "login_attempts" field.
func Nickname ¶
Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func NicknameContains ¶
NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameContainsFold ¶
NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
func NicknameEQ ¶
NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameEqualFold ¶
NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
func NicknameGT ¶
NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGTE ¶
NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameHasPrefix ¶
NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasSuffix ¶
NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameIn ¶
NicknameIn applies the In predicate on the "nickname" field.
func NicknameIsNil ¶
NicknameIsNil applies the IsNil predicate on the "nickname" field.
func NicknameLT ¶
NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLTE ¶
NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameNEQ ¶
NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNotIn ¶
NicknameNotIn applies the NotIn predicate on the "nickname" field.
func NicknameNotNil ¶
NicknameNotNil applies the NotNil predicate on the "nickname" field.
func Online ¶
Online applies equality check predicate on the "online" field. It's identical to OnlineEQ.
func Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func PhoneNumber ¶
PhoneNumber applies equality check predicate on the "phone_number" field. It's identical to PhoneNumberEQ.
func PhoneNumberContains ¶
PhoneNumberContains applies the Contains predicate on the "phone_number" field.
func PhoneNumberContainsFold ¶
PhoneNumberContainsFold applies the ContainsFold predicate on the "phone_number" field.
func PhoneNumberEQ ¶
PhoneNumberEQ applies the EQ predicate on the "phone_number" field.
func PhoneNumberEqualFold ¶
PhoneNumberEqualFold applies the EqualFold predicate on the "phone_number" field.
func PhoneNumberGT ¶
PhoneNumberGT applies the GT predicate on the "phone_number" field.
func PhoneNumberGTE ¶
PhoneNumberGTE applies the GTE predicate on the "phone_number" field.
func PhoneNumberHasPrefix ¶
PhoneNumberHasPrefix applies the HasPrefix predicate on the "phone_number" field.
func PhoneNumberHasSuffix ¶
PhoneNumberHasSuffix applies the HasSuffix predicate on the "phone_number" field.
func PhoneNumberIn ¶
PhoneNumberIn applies the In predicate on the "phone_number" field.
func PhoneNumberIsNil ¶
PhoneNumberIsNil applies the IsNil predicate on the "phone_number" field.
func PhoneNumberLT ¶
PhoneNumberLT applies the LT predicate on the "phone_number" field.
func PhoneNumberLTE ¶
PhoneNumberLTE applies the LTE predicate on the "phone_number" field.
func PhoneNumberNEQ ¶
PhoneNumberNEQ applies the NEQ predicate on the "phone_number" field.
func PhoneNumberNotIn ¶
PhoneNumberNotIn applies the NotIn predicate on the "phone_number" field.
func PhoneNumberNotNil ¶
PhoneNumberNotNil applies the NotNil predicate on the "phone_number" field.
func PhoneNumberVerified ¶
PhoneNumberVerified applies equality check predicate on the "phone_number_verified" field. It's identical to PhoneNumberVerifiedEQ.
func PhoneNumberVerifiedEQ ¶
PhoneNumberVerifiedEQ applies the EQ predicate on the "phone_number_verified" field.
func PhoneNumberVerifiedNEQ ¶
PhoneNumberVerifiedNEQ applies the NEQ predicate on the "phone_number_verified" field.
func SocialLoginsIsNil ¶
SocialLoginsIsNil applies the IsNil predicate on the "social_logins" field.
func SocialLoginsNotNil ¶
SocialLoginsNotNil applies the NotNil predicate on the "social_logins" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func TotpSecret ¶
TotpSecret applies equality check predicate on the "totp_secret" field. It's identical to TotpSecretEQ.
func TotpSecretContains ¶
TotpSecretContains applies the Contains predicate on the "totp_secret" field.
func TotpSecretContainsFold ¶
TotpSecretContainsFold applies the ContainsFold predicate on the "totp_secret" field.
func TotpSecretEQ ¶
TotpSecretEQ applies the EQ predicate on the "totp_secret" field.
func TotpSecretEqualFold ¶
TotpSecretEqualFold applies the EqualFold predicate on the "totp_secret" field.
func TotpSecretGT ¶
TotpSecretGT applies the GT predicate on the "totp_secret" field.
func TotpSecretGTE ¶
TotpSecretGTE applies the GTE predicate on the "totp_secret" field.
func TotpSecretHasPrefix ¶
TotpSecretHasPrefix applies the HasPrefix predicate on the "totp_secret" field.
func TotpSecretHasSuffix ¶
TotpSecretHasSuffix applies the HasSuffix predicate on the "totp_secret" field.
func TotpSecretIn ¶
TotpSecretIn applies the In predicate on the "totp_secret" field.
func TotpSecretIsNil ¶
TotpSecretIsNil applies the IsNil predicate on the "totp_secret" field.
func TotpSecretLT ¶
TotpSecretLT applies the LT predicate on the "totp_secret" field.
func TotpSecretLTE ¶
TotpSecretLTE applies the LTE predicate on the "totp_secret" field.
func TotpSecretNEQ ¶
TotpSecretNEQ applies the NEQ predicate on the "totp_secret" field.
func TotpSecretNotIn ¶
TotpSecretNotIn applies the NotIn predicate on the "totp_secret" field.
func TotpSecretNotNil ¶
TotpSecretNotNil applies the NotNil predicate on the "totp_secret" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAccountField ¶
func ByAccountField(field string, opts ...sql.OrderTermOption) OrderOption
ByAccountField orders the results by account field.
func ByAuditLogs ¶
func ByAuditLogs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAuditLogs orders the results by audit_logs terms.
func ByAuditLogsCount ¶
func ByAuditLogsCount(opts ...sql.OrderTermOption) OrderOption
ByAuditLogsCount orders the results by audit_logs count.
func ByAvatar ¶
func ByAvatar(opts ...sql.OrderTermOption) OrderOption
ByAvatar orders the results by the avatar field.
func ByBio ¶
func ByBio(opts ...sql.OrderTermOption) OrderOption
ByBio orders the results by the bio field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByEmailVerified ¶
func ByEmailVerified(opts ...sql.OrderTermOption) OrderOption
ByEmailVerified orders the results by the email_verified field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIsDefault ¶
func ByIsDefault(opts ...sql.OrderTermOption) OrderOption
ByIsDefault orders the results by the is_default field.
func ByLastLoginTime ¶
func ByLastLoginTime(opts ...sql.OrderTermOption) OrderOption
ByLastLoginTime orders the results by the last_login_time field.
func ByLockoutTime ¶
func ByLockoutTime(opts ...sql.OrderTermOption) OrderOption
ByLockoutTime orders the results by the lockout_time field.
func ByLoginAttempts ¶
func ByLoginAttempts(opts ...sql.OrderTermOption) OrderOption
ByLoginAttempts orders the results by the login_attempts field.
func ByNickname ¶
func ByNickname(opts ...sql.OrderTermOption) OrderOption
ByNickname orders the results by the nickname field.
func ByOnline ¶
func ByOnline(opts ...sql.OrderTermOption) OrderOption
ByOnline orders the results by the online field.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func ByPhoneNumber ¶
func ByPhoneNumber(opts ...sql.OrderTermOption) OrderOption
ByPhoneNumber orders the results by the phone_number field.
func ByPhoneNumberVerified ¶
func ByPhoneNumberVerified(opts ...sql.OrderTermOption) OrderOption
ByPhoneNumberVerified orders the results by the phone_number_verified field.
func ByRoleField ¶
func ByRoleField(field string, opts ...sql.OrderTermOption) OrderOption
ByRoleField orders the results by role field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTotpSecret ¶
func ByTotpSecret(opts ...sql.OrderTermOption) OrderOption
ByTotpSecret orders the results by the totp_secret field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsername ¶
func ByUsername(opts ...sql.OrderTermOption) OrderOption
ByUsername orders the results by the username field.