user

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT 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"
	// 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

View Source
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
)
View Source
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"}
)

Columns holds all SQL columns for user fields.

View Source
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 And

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

And groups predicates with the AND operator between them.

func Avatar

func Avatar(v string) predicate.User

Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.

func AvatarContains

func AvatarContains(v string) predicate.User

AvatarContains applies the Contains predicate on the "avatar" field.

func AvatarContainsFold

func AvatarContainsFold(v string) predicate.User

AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.

func AvatarEQ

func AvatarEQ(v string) predicate.User

AvatarEQ applies the EQ predicate on the "avatar" field.

func AvatarEqualFold

func AvatarEqualFold(v string) predicate.User

AvatarEqualFold applies the EqualFold predicate on the "avatar" field.

func AvatarGT

func AvatarGT(v string) predicate.User

AvatarGT applies the GT predicate on the "avatar" field.

func AvatarGTE

func AvatarGTE(v string) predicate.User

AvatarGTE applies the GTE predicate on the "avatar" field.

func AvatarHasPrefix

func AvatarHasPrefix(v string) predicate.User

AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.

func AvatarHasSuffix

func AvatarHasSuffix(v string) predicate.User

AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.

func AvatarIn

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

AvatarIn applies the In predicate on the "avatar" field.

func AvatarIsNil

func AvatarIsNil() predicate.User

AvatarIsNil applies the IsNil predicate on the "avatar" field.

func AvatarLT

func AvatarLT(v string) predicate.User

AvatarLT applies the LT predicate on the "avatar" field.

func AvatarLTE

func AvatarLTE(v string) predicate.User

AvatarLTE applies the LTE predicate on the "avatar" field.

func AvatarNEQ

func AvatarNEQ(v string) predicate.User

AvatarNEQ applies the NEQ predicate on the "avatar" field.

func AvatarNotIn

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

AvatarNotIn applies the NotIn predicate on the "avatar" field.

func AvatarNotNil

func AvatarNotNil() predicate.User

AvatarNotNil applies the NotNil predicate on the "avatar" field.

func Bio

func Bio(v string) predicate.User

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

func BioContains

func BioContains(v string) predicate.User

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

func BioContainsFold

func BioContainsFold(v string) predicate.User

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

func BioEQ

func BioEQ(v string) predicate.User

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

func BioEqualFold

func BioEqualFold(v string) predicate.User

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

func BioGT

func BioGT(v string) predicate.User

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

func BioGTE

func BioGTE(v string) predicate.User

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

func BioHasPrefix

func BioHasPrefix(v string) predicate.User

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

func BioHasSuffix

func BioHasSuffix(v string) predicate.User

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

func BioIn

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

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

func BioIsNil

func BioIsNil() predicate.User

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

func BioLT

func BioLT(v string) predicate.User

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

func BioLTE

func BioLTE(v string) predicate.User

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

func BioNEQ

func BioNEQ(v string) predicate.User

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

func BioNotIn

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

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

func BioNotNil

func BioNotNil() predicate.User

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

func CreatedAt

func CreatedAt(v time.Time) predicate.User

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

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

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

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

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Email

func Email(v string) predicate.User

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.User

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.User

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.User

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.User

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.User

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.User

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.User

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.User

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

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

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.User

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.User

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.User

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

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

EmailNotIn applies the NotIn predicate on the "email" field.

func EmailVerified

func EmailVerified(v bool) predicate.User

EmailVerified applies equality check predicate on the "email_verified" field. It's identical to EmailVerifiedEQ.

func EmailVerifiedEQ

func EmailVerifiedEQ(v bool) predicate.User

EmailVerifiedEQ applies the EQ predicate on the "email_verified" field.

func EmailVerifiedNEQ

func EmailVerifiedNEQ(v bool) predicate.User

EmailVerifiedNEQ applies the NEQ predicate on the "email_verified" field.

func HasAccount

func HasAccount() predicate.User

HasAccount applies the HasEdge predicate on the "account" edge.

func HasAccountWith

func HasAccountWith(preds ...predicate.Account) predicate.User

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

func HasAuditLogs

func HasAuditLogs() predicate.User

HasAuditLogs applies the HasEdge predicate on the "audit_logs" edge.

func HasAuditLogsWith

func HasAuditLogsWith(preds ...predicate.AuditLog) predicate.User

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

func HasRole

func HasRole() predicate.User

HasRole applies the HasEdge predicate on the "role" edge.

func HasRoleWith

func HasRoleWith(preds ...predicate.Role) predicate.User

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

func ID

func ID(id uuid.UUID) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsDefault

func IsDefault(v bool) predicate.User

IsDefault applies equality check predicate on the "is_default" field. It's identical to IsDefaultEQ.

func IsDefaultEQ

func IsDefaultEQ(v bool) predicate.User

IsDefaultEQ applies the EQ predicate on the "is_default" field.

func IsDefaultNEQ

func IsDefaultNEQ(v bool) predicate.User

IsDefaultNEQ applies the NEQ predicate on the "is_default" field.

func LastLoginTime

func LastLoginTime(v time.Time) predicate.User

LastLoginTime applies equality check predicate on the "last_login_time" field. It's identical to LastLoginTimeEQ.

func LastLoginTimeEQ

func LastLoginTimeEQ(v time.Time) predicate.User

LastLoginTimeEQ applies the EQ predicate on the "last_login_time" field.

func LastLoginTimeGT

func LastLoginTimeGT(v time.Time) predicate.User

LastLoginTimeGT applies the GT predicate on the "last_login_time" field.

func LastLoginTimeGTE

func LastLoginTimeGTE(v time.Time) predicate.User

LastLoginTimeGTE applies the GTE predicate on the "last_login_time" field.

func LastLoginTimeIn

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

LastLoginTimeIn applies the In predicate on the "last_login_time" field.

func LastLoginTimeLT

func LastLoginTimeLT(v time.Time) predicate.User

LastLoginTimeLT applies the LT predicate on the "last_login_time" field.

func LastLoginTimeLTE

func LastLoginTimeLTE(v time.Time) predicate.User

LastLoginTimeLTE applies the LTE predicate on the "last_login_time" field.

func LastLoginTimeNEQ

func LastLoginTimeNEQ(v time.Time) predicate.User

LastLoginTimeNEQ applies the NEQ predicate on the "last_login_time" field.

func LastLoginTimeNotIn

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

LastLoginTimeNotIn applies the NotIn predicate on the "last_login_time" field.

func LockoutTime

func LockoutTime(v time.Time) predicate.User

LockoutTime applies equality check predicate on the "lockout_time" field. It's identical to LockoutTimeEQ.

func LockoutTimeEQ

func LockoutTimeEQ(v time.Time) predicate.User

LockoutTimeEQ applies the EQ predicate on the "lockout_time" field.

func LockoutTimeGT

func LockoutTimeGT(v time.Time) predicate.User

LockoutTimeGT applies the GT predicate on the "lockout_time" field.

func LockoutTimeGTE

func LockoutTimeGTE(v time.Time) predicate.User

LockoutTimeGTE applies the GTE predicate on the "lockout_time" field.

func LockoutTimeIn

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

LockoutTimeIn applies the In predicate on the "lockout_time" field.

func LockoutTimeIsNil

func LockoutTimeIsNil() predicate.User

LockoutTimeIsNil applies the IsNil predicate on the "lockout_time" field.

func LockoutTimeLT

func LockoutTimeLT(v time.Time) predicate.User

LockoutTimeLT applies the LT predicate on the "lockout_time" field.

func LockoutTimeLTE

func LockoutTimeLTE(v time.Time) predicate.User

LockoutTimeLTE applies the LTE predicate on the "lockout_time" field.

func LockoutTimeNEQ

func LockoutTimeNEQ(v time.Time) predicate.User

LockoutTimeNEQ applies the NEQ predicate on the "lockout_time" field.

func LockoutTimeNotIn

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

LockoutTimeNotIn applies the NotIn predicate on the "lockout_time" field.

func LockoutTimeNotNil

func LockoutTimeNotNil() predicate.User

LockoutTimeNotNil applies the NotNil predicate on the "lockout_time" field.

func LoginAttempts

func LoginAttempts(v int) predicate.User

LoginAttempts applies equality check predicate on the "login_attempts" field. It's identical to LoginAttemptsEQ.

func LoginAttemptsEQ

func LoginAttemptsEQ(v int) predicate.User

LoginAttemptsEQ applies the EQ predicate on the "login_attempts" field.

func LoginAttemptsGT

func LoginAttemptsGT(v int) predicate.User

LoginAttemptsGT applies the GT predicate on the "login_attempts" field.

func LoginAttemptsGTE

func LoginAttemptsGTE(v int) predicate.User

LoginAttemptsGTE applies the GTE predicate on the "login_attempts" field.

func LoginAttemptsIn

func LoginAttemptsIn(vs ...int) predicate.User

LoginAttemptsIn applies the In predicate on the "login_attempts" field.

func LoginAttemptsLT

func LoginAttemptsLT(v int) predicate.User

LoginAttemptsLT applies the LT predicate on the "login_attempts" field.

func LoginAttemptsLTE

func LoginAttemptsLTE(v int) predicate.User

LoginAttemptsLTE applies the LTE predicate on the "login_attempts" field.

func LoginAttemptsNEQ

func LoginAttemptsNEQ(v int) predicate.User

LoginAttemptsNEQ applies the NEQ predicate on the "login_attempts" field.

func LoginAttemptsNotIn

func LoginAttemptsNotIn(vs ...int) predicate.User

LoginAttemptsNotIn applies the NotIn predicate on the "login_attempts" 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

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

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 Online

func Online(v bool) predicate.User

Online applies equality check predicate on the "online" field. It's identical to OnlineEQ.

func OnlineEQ

func OnlineEQ(v bool) predicate.User

OnlineEQ applies the EQ predicate on the "online" field.

func OnlineNEQ

func OnlineNEQ(v bool) predicate.User

OnlineNEQ applies the NEQ predicate on the "online" field.

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 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 PhoneNumber

func PhoneNumber(v string) predicate.User

PhoneNumber applies equality check predicate on the "phone_number" field. It's identical to PhoneNumberEQ.

func PhoneNumberContains

func PhoneNumberContains(v string) predicate.User

PhoneNumberContains applies the Contains predicate on the "phone_number" field.

func PhoneNumberContainsFold

func PhoneNumberContainsFold(v string) predicate.User

PhoneNumberContainsFold applies the ContainsFold predicate on the "phone_number" field.

func PhoneNumberEQ

func PhoneNumberEQ(v string) predicate.User

PhoneNumberEQ applies the EQ predicate on the "phone_number" field.

func PhoneNumberEqualFold

func PhoneNumberEqualFold(v string) predicate.User

PhoneNumberEqualFold applies the EqualFold predicate on the "phone_number" field.

func PhoneNumberGT

func PhoneNumberGT(v string) predicate.User

PhoneNumberGT applies the GT predicate on the "phone_number" field.

func PhoneNumberGTE

func PhoneNumberGTE(v string) predicate.User

PhoneNumberGTE applies the GTE predicate on the "phone_number" field.

func PhoneNumberHasPrefix

func PhoneNumberHasPrefix(v string) predicate.User

PhoneNumberHasPrefix applies the HasPrefix predicate on the "phone_number" field.

func PhoneNumberHasSuffix

func PhoneNumberHasSuffix(v string) predicate.User

PhoneNumberHasSuffix applies the HasSuffix predicate on the "phone_number" field.

func PhoneNumberIn

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

PhoneNumberIn applies the In predicate on the "phone_number" field.

func PhoneNumberIsNil

func PhoneNumberIsNil() predicate.User

PhoneNumberIsNil applies the IsNil predicate on the "phone_number" field.

func PhoneNumberLT

func PhoneNumberLT(v string) predicate.User

PhoneNumberLT applies the LT predicate on the "phone_number" field.

func PhoneNumberLTE

func PhoneNumberLTE(v string) predicate.User

PhoneNumberLTE applies the LTE predicate on the "phone_number" field.

func PhoneNumberNEQ

func PhoneNumberNEQ(v string) predicate.User

PhoneNumberNEQ applies the NEQ predicate on the "phone_number" field.

func PhoneNumberNotIn

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

PhoneNumberNotIn applies the NotIn predicate on the "phone_number" field.

func PhoneNumberNotNil

func PhoneNumberNotNil() predicate.User

PhoneNumberNotNil applies the NotNil predicate on the "phone_number" field.

func PhoneNumberVerified

func PhoneNumberVerified(v bool) predicate.User

PhoneNumberVerified applies equality check predicate on the "phone_number_verified" field. It's identical to PhoneNumberVerifiedEQ.

func PhoneNumberVerifiedEQ

func PhoneNumberVerifiedEQ(v bool) predicate.User

PhoneNumberVerifiedEQ applies the EQ predicate on the "phone_number_verified" field.

func PhoneNumberVerifiedNEQ

func PhoneNumberVerifiedNEQ(v bool) predicate.User

PhoneNumberVerifiedNEQ applies the NEQ predicate on the "phone_number_verified" field.

func SocialLoginsIsNil

func SocialLoginsIsNil() predicate.User

SocialLoginsIsNil applies the IsNil predicate on the "social_logins" field.

func SocialLoginsNotNil

func SocialLoginsNotNil() predicate.User

SocialLoginsNotNil applies the NotNil predicate on the "social_logins" field.

func Status

func Status(v bool) predicate.User

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

func StatusEQ(v bool) predicate.User

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

func StatusNEQ

func StatusNEQ(v bool) predicate.User

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

func TotpSecret

func TotpSecret(v string) predicate.User

TotpSecret applies equality check predicate on the "totp_secret" field. It's identical to TotpSecretEQ.

func TotpSecretContains

func TotpSecretContains(v string) predicate.User

TotpSecretContains applies the Contains predicate on the "totp_secret" field.

func TotpSecretContainsFold

func TotpSecretContainsFold(v string) predicate.User

TotpSecretContainsFold applies the ContainsFold predicate on the "totp_secret" field.

func TotpSecretEQ

func TotpSecretEQ(v string) predicate.User

TotpSecretEQ applies the EQ predicate on the "totp_secret" field.

func TotpSecretEqualFold

func TotpSecretEqualFold(v string) predicate.User

TotpSecretEqualFold applies the EqualFold predicate on the "totp_secret" field.

func TotpSecretGT

func TotpSecretGT(v string) predicate.User

TotpSecretGT applies the GT predicate on the "totp_secret" field.

func TotpSecretGTE

func TotpSecretGTE(v string) predicate.User

TotpSecretGTE applies the GTE predicate on the "totp_secret" field.

func TotpSecretHasPrefix

func TotpSecretHasPrefix(v string) predicate.User

TotpSecretHasPrefix applies the HasPrefix predicate on the "totp_secret" field.

func TotpSecretHasSuffix

func TotpSecretHasSuffix(v string) predicate.User

TotpSecretHasSuffix applies the HasSuffix predicate on the "totp_secret" field.

func TotpSecretIn

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

TotpSecretIn applies the In predicate on the "totp_secret" field.

func TotpSecretIsNil

func TotpSecretIsNil() predicate.User

TotpSecretIsNil applies the IsNil predicate on the "totp_secret" field.

func TotpSecretLT

func TotpSecretLT(v string) predicate.User

TotpSecretLT applies the LT predicate on the "totp_secret" field.

func TotpSecretLTE

func TotpSecretLTE(v string) predicate.User

TotpSecretLTE applies the LTE predicate on the "totp_secret" field.

func TotpSecretNEQ

func TotpSecretNEQ(v string) predicate.User

TotpSecretNEQ applies the NEQ predicate on the "totp_secret" field.

func TotpSecretNotIn

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

TotpSecretNotIn applies the NotIn predicate on the "totp_secret" field.

func TotpSecretNotNil

func TotpSecretNotNil() predicate.User

TotpSecretNotNil applies the NotNil predicate on the "totp_secret" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.User

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.User

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.User

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.User

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

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

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.User

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.User

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.User

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func Username

func Username(v string) predicate.User

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

func UsernameContains

func UsernameContains(v string) predicate.User

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

func UsernameContainsFold

func UsernameContainsFold(v string) predicate.User

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

func UsernameEQ

func UsernameEQ(v string) predicate.User

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

func UsernameEqualFold

func UsernameEqualFold(v string) predicate.User

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

func UsernameGT

func UsernameGT(v string) predicate.User

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

func UsernameGTE

func UsernameGTE(v string) predicate.User

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

func UsernameHasPrefix

func UsernameHasPrefix(v string) predicate.User

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

func UsernameHasSuffix

func UsernameHasSuffix(v string) predicate.User

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

func UsernameIn

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

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

func UsernameLT

func UsernameLT(v string) predicate.User

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

func UsernameLTE

func UsernameLTE(v string) predicate.User

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

func UsernameNEQ

func UsernameNEQ(v string) predicate.User

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

func UsernameNotIn

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 OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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