Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Users) predicate.Users
- func CreatedAt(v time.Time) predicate.Users
- func CreatedAtEQ(v time.Time) predicate.Users
- func CreatedAtGT(v time.Time) predicate.Users
- func CreatedAtGTE(v time.Time) predicate.Users
- func CreatedAtIn(vs ...time.Time) predicate.Users
- func CreatedAtLT(v time.Time) predicate.Users
- func CreatedAtLTE(v time.Time) predicate.Users
- func CreatedAtNEQ(v time.Time) predicate.Users
- func CreatedAtNotIn(vs ...time.Time) predicate.Users
- func Email(v string) predicate.Users
- func EmailContains(v string) predicate.Users
- func EmailContainsFold(v string) predicate.Users
- func EmailEQ(v string) predicate.Users
- func EmailEqualFold(v string) predicate.Users
- func EmailGT(v string) predicate.Users
- func EmailGTE(v string) predicate.Users
- func EmailHasPrefix(v string) predicate.Users
- func EmailHasSuffix(v string) predicate.Users
- func EmailIn(vs ...string) predicate.Users
- func EmailLT(v string) predicate.Users
- func EmailLTE(v string) predicate.Users
- func EmailNEQ(v string) predicate.Users
- func EmailNotIn(vs ...string) predicate.Users
- func EmailVerified(v bool) predicate.Users
- func EmailVerifiedEQ(v bool) predicate.Users
- func EmailVerifiedNEQ(v bool) predicate.Users
- func HasRoles() predicate.Users
- func HasRolesWith(preds ...predicate.Roles) predicate.Users
- func ID(id uuid.UUID) predicate.Users
- func IDEQ(id uuid.UUID) predicate.Users
- func IDGT(id uuid.UUID) predicate.Users
- func IDGTE(id uuid.UUID) predicate.Users
- func IDIn(ids ...uuid.UUID) predicate.Users
- func IDLT(id uuid.UUID) predicate.Users
- func IDLTE(id uuid.UUID) predicate.Users
- func IDNEQ(id uuid.UUID) predicate.Users
- func IDNotIn(ids ...uuid.UUID) predicate.Users
- func IsActive(v bool) predicate.Users
- func IsActiveEQ(v bool) predicate.Users
- func IsActiveNEQ(v bool) predicate.Users
- func LastLogin(v time.Time) predicate.Users
- func LastLoginEQ(v time.Time) predicate.Users
- func LastLoginGT(v time.Time) predicate.Users
- func LastLoginGTE(v time.Time) predicate.Users
- func LastLoginIn(vs ...time.Time) predicate.Users
- func LastLoginIsNil() predicate.Users
- func LastLoginLT(v time.Time) predicate.Users
- func LastLoginLTE(v time.Time) predicate.Users
- func LastLoginNEQ(v time.Time) predicate.Users
- func LastLoginNotIn(vs ...time.Time) predicate.Users
- func LastLoginNotNil() predicate.Users
- func MetadataIsNil() predicate.Users
- func MetadataNotNil() predicate.Users
- func Not(p predicate.Users) predicate.Users
- func Or(predicates ...predicate.Users) predicate.Users
- func PasswordHash(v string) predicate.Users
- func PasswordHashContains(v string) predicate.Users
- func PasswordHashContainsFold(v string) predicate.Users
- func PasswordHashEQ(v string) predicate.Users
- func PasswordHashEqualFold(v string) predicate.Users
- func PasswordHashGT(v string) predicate.Users
- func PasswordHashGTE(v string) predicate.Users
- func PasswordHashHasPrefix(v string) predicate.Users
- func PasswordHashHasSuffix(v string) predicate.Users
- func PasswordHashIn(vs ...string) predicate.Users
- func PasswordHashLT(v string) predicate.Users
- func PasswordHashLTE(v string) predicate.Users
- func PasswordHashNEQ(v string) predicate.Users
- func PasswordHashNotIn(vs ...string) predicate.Users
- func PasswordResetToken(v string) predicate.Users
- func PasswordResetTokenContains(v string) predicate.Users
- func PasswordResetTokenContainsFold(v string) predicate.Users
- func PasswordResetTokenEQ(v string) predicate.Users
- func PasswordResetTokenEqualFold(v string) predicate.Users
- func PasswordResetTokenExpiry(v time.Time) predicate.Users
- func PasswordResetTokenExpiryEQ(v time.Time) predicate.Users
- func PasswordResetTokenExpiryGT(v time.Time) predicate.Users
- func PasswordResetTokenExpiryGTE(v time.Time) predicate.Users
- func PasswordResetTokenExpiryIn(vs ...time.Time) predicate.Users
- func PasswordResetTokenExpiryIsNil() predicate.Users
- func PasswordResetTokenExpiryLT(v time.Time) predicate.Users
- func PasswordResetTokenExpiryLTE(v time.Time) predicate.Users
- func PasswordResetTokenExpiryNEQ(v time.Time) predicate.Users
- func PasswordResetTokenExpiryNotIn(vs ...time.Time) predicate.Users
- func PasswordResetTokenExpiryNotNil() predicate.Users
- func PasswordResetTokenGT(v string) predicate.Users
- func PasswordResetTokenGTE(v string) predicate.Users
- func PasswordResetTokenHasPrefix(v string) predicate.Users
- func PasswordResetTokenHasSuffix(v string) predicate.Users
- func PasswordResetTokenIn(vs ...string) predicate.Users
- func PasswordResetTokenIsNil() predicate.Users
- func PasswordResetTokenLT(v string) predicate.Users
- func PasswordResetTokenLTE(v string) predicate.Users
- func PasswordResetTokenNEQ(v string) predicate.Users
- func PasswordResetTokenNotIn(vs ...string) predicate.Users
- func PasswordResetTokenNotNil() predicate.Users
- func UpdatedAt(v time.Time) predicate.Users
- func UpdatedAtEQ(v time.Time) predicate.Users
- func UpdatedAtGT(v time.Time) predicate.Users
- func UpdatedAtGTE(v time.Time) predicate.Users
- func UpdatedAtIn(vs ...time.Time) predicate.Users
- func UpdatedAtLT(v time.Time) predicate.Users
- func UpdatedAtLTE(v time.Time) predicate.Users
- func UpdatedAtNEQ(v time.Time) predicate.Users
- func UpdatedAtNotIn(vs ...time.Time) predicate.Users
- func ValidColumn(column string) bool
- func VerificationToken(v string) predicate.Users
- func VerificationTokenContains(v string) predicate.Users
- func VerificationTokenContainsFold(v string) predicate.Users
- func VerificationTokenEQ(v string) predicate.Users
- func VerificationTokenEqualFold(v string) predicate.Users
- func VerificationTokenExpiry(v time.Time) predicate.Users
- func VerificationTokenExpiryEQ(v time.Time) predicate.Users
- func VerificationTokenExpiryGT(v time.Time) predicate.Users
- func VerificationTokenExpiryGTE(v time.Time) predicate.Users
- func VerificationTokenExpiryIn(vs ...time.Time) predicate.Users
- func VerificationTokenExpiryIsNil() predicate.Users
- func VerificationTokenExpiryLT(v time.Time) predicate.Users
- func VerificationTokenExpiryLTE(v time.Time) predicate.Users
- func VerificationTokenExpiryNEQ(v time.Time) predicate.Users
- func VerificationTokenExpiryNotIn(vs ...time.Time) predicate.Users
- func VerificationTokenExpiryNotNil() predicate.Users
- func VerificationTokenGT(v string) predicate.Users
- func VerificationTokenGTE(v string) predicate.Users
- func VerificationTokenHasPrefix(v string) predicate.Users
- func VerificationTokenHasSuffix(v string) predicate.Users
- func VerificationTokenIn(vs ...string) predicate.Users
- func VerificationTokenIsNil() predicate.Users
- func VerificationTokenLT(v string) predicate.Users
- func VerificationTokenLTE(v string) predicate.Users
- func VerificationTokenNEQ(v string) predicate.Users
- func VerificationTokenNotIn(vs ...string) predicate.Users
- func VerificationTokenNotNil() predicate.Users
- type 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 ByIsActive(opts ...sql.OrderTermOption) OrderOption
- func ByLastLogin(opts ...sql.OrderTermOption) OrderOption
- func ByPasswordHash(opts ...sql.OrderTermOption) OrderOption
- func ByPasswordResetToken(opts ...sql.OrderTermOption) OrderOption
- func ByPasswordResetTokenExpiry(opts ...sql.OrderTermOption) OrderOption
- func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRolesCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVerificationToken(opts ...sql.OrderTermOption) OrderOption
- func ByVerificationTokenExpiry(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the users type in the database. Label = "users" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldPasswordHash holds the string denoting the password_hash field in the database. FieldPasswordHash = "password_hash" // 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" // FieldLastLogin holds the string denoting the last_login field in the database. FieldLastLogin = "last_login" // FieldIsActive holds the string denoting the is_active field in the database. FieldIsActive = "is_active" // FieldEmailVerified holds the string denoting the email_verified field in the database. FieldEmailVerified = "email_verified" // FieldVerificationToken holds the string denoting the verification_token field in the database. FieldVerificationToken = "verification_token" // FieldVerificationTokenExpiry holds the string denoting the verification_token_expiry field in the database. FieldVerificationTokenExpiry = "verification_token_expiry" // FieldPasswordResetToken holds the string denoting the password_reset_token field in the database. FieldPasswordResetToken = "password_reset_token" // FieldPasswordResetTokenExpiry holds the string denoting the password_reset_token_expiry field in the database. FieldPasswordResetTokenExpiry = "password_reset_token_expiry" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // EdgeRoles holds the string denoting the roles edge name in mutations. EdgeRoles = "roles" // Table holds the table name of the users in the database. Table = "users" // RolesTable is the table that holds the roles relation/edge. The primary key declared below. RolesTable = "users_roles" // RolesInverseTable is the table name for the Roles entity. // It exists in this package in order to avoid circular dependency with the "roles" package. RolesInverseTable = "roles" )
Variables ¶
var ( // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // PasswordHashValidator is a validator for the "password_hash" field. It is called by the builders before save. PasswordHashValidator func(string) error // 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 // DefaultIsActive holds the default value on creation for the "is_active" field. DefaultIsActive bool // DefaultEmailVerified holds the default value on creation for the "email_verified" field. DefaultEmailVerified bool // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldEmail, FieldPasswordHash, FieldCreatedAt, FieldUpdatedAt, FieldLastLogin, FieldIsActive, FieldEmailVerified, FieldVerificationToken, FieldVerificationTokenExpiry, FieldPasswordResetToken, FieldPasswordResetTokenExpiry, FieldMetadata, }
Columns holds all SQL columns for users fields.
var ( // RolesPrimaryKey and RolesColumn2 are the table columns denoting the // primary key for the roles relation (M2M). RolesPrimaryKey = []string{"users_id", "roles_id"} )
Functions ¶
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 HasRolesWith ¶
HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).
func IsActive ¶
IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.
func IsActiveEQ ¶
IsActiveEQ applies the EQ predicate on the "is_active" field.
func IsActiveNEQ ¶
IsActiveNEQ applies the NEQ predicate on the "is_active" field.
func LastLogin ¶
LastLogin applies equality check predicate on the "last_login" field. It's identical to LastLoginEQ.
func LastLoginEQ ¶
LastLoginEQ applies the EQ predicate on the "last_login" field.
func LastLoginGT ¶
LastLoginGT applies the GT predicate on the "last_login" field.
func LastLoginGTE ¶
LastLoginGTE applies the GTE predicate on the "last_login" field.
func LastLoginIn ¶
LastLoginIn applies the In predicate on the "last_login" field.
func LastLoginIsNil ¶
LastLoginIsNil applies the IsNil predicate on the "last_login" field.
func LastLoginLT ¶
LastLoginLT applies the LT predicate on the "last_login" field.
func LastLoginLTE ¶
LastLoginLTE applies the LTE predicate on the "last_login" field.
func LastLoginNEQ ¶
LastLoginNEQ applies the NEQ predicate on the "last_login" field.
func LastLoginNotIn ¶
LastLoginNotIn applies the NotIn predicate on the "last_login" field.
func LastLoginNotNil ¶
LastLoginNotNil applies the NotNil predicate on the "last_login" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func PasswordHash ¶
PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
func PasswordHashContains ¶
PasswordHashContains applies the Contains predicate on the "password_hash" field.
func PasswordHashContainsFold ¶
PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.
func PasswordHashEQ ¶
PasswordHashEQ applies the EQ predicate on the "password_hash" field.
func PasswordHashEqualFold ¶
PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.
func PasswordHashGT ¶
PasswordHashGT applies the GT predicate on the "password_hash" field.
func PasswordHashGTE ¶
PasswordHashGTE applies the GTE predicate on the "password_hash" field.
func PasswordHashHasPrefix ¶
PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.
func PasswordHashHasSuffix ¶
PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.
func PasswordHashIn ¶
PasswordHashIn applies the In predicate on the "password_hash" field.
func PasswordHashLT ¶
PasswordHashLT applies the LT predicate on the "password_hash" field.
func PasswordHashLTE ¶
PasswordHashLTE applies the LTE predicate on the "password_hash" field.
func PasswordHashNEQ ¶
PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
func PasswordHashNotIn ¶
PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
func PasswordResetToken ¶
PasswordResetToken applies equality check predicate on the "password_reset_token" field. It's identical to PasswordResetTokenEQ.
func PasswordResetTokenContains ¶
PasswordResetTokenContains applies the Contains predicate on the "password_reset_token" field.
func PasswordResetTokenContainsFold ¶
PasswordResetTokenContainsFold applies the ContainsFold predicate on the "password_reset_token" field.
func PasswordResetTokenEQ ¶
PasswordResetTokenEQ applies the EQ predicate on the "password_reset_token" field.
func PasswordResetTokenEqualFold ¶
PasswordResetTokenEqualFold applies the EqualFold predicate on the "password_reset_token" field.
func PasswordResetTokenExpiry ¶
PasswordResetTokenExpiry applies equality check predicate on the "password_reset_token_expiry" field. It's identical to PasswordResetTokenExpiryEQ.
func PasswordResetTokenExpiryEQ ¶
PasswordResetTokenExpiryEQ applies the EQ predicate on the "password_reset_token_expiry" field.
func PasswordResetTokenExpiryGT ¶
PasswordResetTokenExpiryGT applies the GT predicate on the "password_reset_token_expiry" field.
func PasswordResetTokenExpiryGTE ¶
PasswordResetTokenExpiryGTE applies the GTE predicate on the "password_reset_token_expiry" field.
func PasswordResetTokenExpiryIn ¶
PasswordResetTokenExpiryIn applies the In predicate on the "password_reset_token_expiry" field.
func PasswordResetTokenExpiryIsNil ¶
PasswordResetTokenExpiryIsNil applies the IsNil predicate on the "password_reset_token_expiry" field.
func PasswordResetTokenExpiryLT ¶
PasswordResetTokenExpiryLT applies the LT predicate on the "password_reset_token_expiry" field.
func PasswordResetTokenExpiryLTE ¶
PasswordResetTokenExpiryLTE applies the LTE predicate on the "password_reset_token_expiry" field.
func PasswordResetTokenExpiryNEQ ¶
PasswordResetTokenExpiryNEQ applies the NEQ predicate on the "password_reset_token_expiry" field.
func PasswordResetTokenExpiryNotIn ¶
PasswordResetTokenExpiryNotIn applies the NotIn predicate on the "password_reset_token_expiry" field.
func PasswordResetTokenExpiryNotNil ¶
PasswordResetTokenExpiryNotNil applies the NotNil predicate on the "password_reset_token_expiry" field.
func PasswordResetTokenGT ¶
PasswordResetTokenGT applies the GT predicate on the "password_reset_token" field.
func PasswordResetTokenGTE ¶
PasswordResetTokenGTE applies the GTE predicate on the "password_reset_token" field.
func PasswordResetTokenHasPrefix ¶
PasswordResetTokenHasPrefix applies the HasPrefix predicate on the "password_reset_token" field.
func PasswordResetTokenHasSuffix ¶
PasswordResetTokenHasSuffix applies the HasSuffix predicate on the "password_reset_token" field.
func PasswordResetTokenIn ¶
PasswordResetTokenIn applies the In predicate on the "password_reset_token" field.
func PasswordResetTokenIsNil ¶
PasswordResetTokenIsNil applies the IsNil predicate on the "password_reset_token" field.
func PasswordResetTokenLT ¶
PasswordResetTokenLT applies the LT predicate on the "password_reset_token" field.
func PasswordResetTokenLTE ¶
PasswordResetTokenLTE applies the LTE predicate on the "password_reset_token" field.
func PasswordResetTokenNEQ ¶
PasswordResetTokenNEQ applies the NEQ predicate on the "password_reset_token" field.
func PasswordResetTokenNotIn ¶
PasswordResetTokenNotIn applies the NotIn predicate on the "password_reset_token" field.
func PasswordResetTokenNotNil ¶
PasswordResetTokenNotNil applies the NotNil predicate on the "password_reset_token" 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func VerificationToken ¶
VerificationToken applies equality check predicate on the "verification_token" field. It's identical to VerificationTokenEQ.
func VerificationTokenContains ¶
VerificationTokenContains applies the Contains predicate on the "verification_token" field.
func VerificationTokenContainsFold ¶
VerificationTokenContainsFold applies the ContainsFold predicate on the "verification_token" field.
func VerificationTokenEQ ¶
VerificationTokenEQ applies the EQ predicate on the "verification_token" field.
func VerificationTokenEqualFold ¶
VerificationTokenEqualFold applies the EqualFold predicate on the "verification_token" field.
func VerificationTokenExpiry ¶
VerificationTokenExpiry applies equality check predicate on the "verification_token_expiry" field. It's identical to VerificationTokenExpiryEQ.
func VerificationTokenExpiryEQ ¶
VerificationTokenExpiryEQ applies the EQ predicate on the "verification_token_expiry" field.
func VerificationTokenExpiryGT ¶
VerificationTokenExpiryGT applies the GT predicate on the "verification_token_expiry" field.
func VerificationTokenExpiryGTE ¶
VerificationTokenExpiryGTE applies the GTE predicate on the "verification_token_expiry" field.
func VerificationTokenExpiryIn ¶
VerificationTokenExpiryIn applies the In predicate on the "verification_token_expiry" field.
func VerificationTokenExpiryIsNil ¶
VerificationTokenExpiryIsNil applies the IsNil predicate on the "verification_token_expiry" field.
func VerificationTokenExpiryLT ¶
VerificationTokenExpiryLT applies the LT predicate on the "verification_token_expiry" field.
func VerificationTokenExpiryLTE ¶
VerificationTokenExpiryLTE applies the LTE predicate on the "verification_token_expiry" field.
func VerificationTokenExpiryNEQ ¶
VerificationTokenExpiryNEQ applies the NEQ predicate on the "verification_token_expiry" field.
func VerificationTokenExpiryNotIn ¶
VerificationTokenExpiryNotIn applies the NotIn predicate on the "verification_token_expiry" field.
func VerificationTokenExpiryNotNil ¶
VerificationTokenExpiryNotNil applies the NotNil predicate on the "verification_token_expiry" field.
func VerificationTokenGT ¶
VerificationTokenGT applies the GT predicate on the "verification_token" field.
func VerificationTokenGTE ¶
VerificationTokenGTE applies the GTE predicate on the "verification_token" field.
func VerificationTokenHasPrefix ¶
VerificationTokenHasPrefix applies the HasPrefix predicate on the "verification_token" field.
func VerificationTokenHasSuffix ¶
VerificationTokenHasSuffix applies the HasSuffix predicate on the "verification_token" field.
func VerificationTokenIn ¶
VerificationTokenIn applies the In predicate on the "verification_token" field.
func VerificationTokenIsNil ¶
VerificationTokenIsNil applies the IsNil predicate on the "verification_token" field.
func VerificationTokenLT ¶
VerificationTokenLT applies the LT predicate on the "verification_token" field.
func VerificationTokenLTE ¶
VerificationTokenLTE applies the LTE predicate on the "verification_token" field.
func VerificationTokenNEQ ¶
VerificationTokenNEQ applies the NEQ predicate on the "verification_token" field.
func VerificationTokenNotIn ¶
VerificationTokenNotIn applies the NotIn predicate on the "verification_token" field.
func VerificationTokenNotNil ¶
VerificationTokenNotNil applies the NotNil predicate on the "verification_token" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Users queries.
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 ByIsActive ¶
func ByIsActive(opts ...sql.OrderTermOption) OrderOption
ByIsActive orders the results by the is_active field.
func ByLastLogin ¶
func ByLastLogin(opts ...sql.OrderTermOption) OrderOption
ByLastLogin orders the results by the last_login field.
func ByPasswordHash ¶
func ByPasswordHash(opts ...sql.OrderTermOption) OrderOption
ByPasswordHash orders the results by the password_hash field.
func ByPasswordResetToken ¶
func ByPasswordResetToken(opts ...sql.OrderTermOption) OrderOption
ByPasswordResetToken orders the results by the password_reset_token field.
func ByPasswordResetTokenExpiry ¶
func ByPasswordResetTokenExpiry(opts ...sql.OrderTermOption) OrderOption
ByPasswordResetTokenExpiry orders the results by the password_reset_token_expiry field.
func ByRoles ¶
func ByRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRoles orders the results by roles terms.
func ByRolesCount ¶
func ByRolesCount(opts ...sql.OrderTermOption) OrderOption
ByRolesCount orders the results by roles count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVerificationToken ¶
func ByVerificationToken(opts ...sql.OrderTermOption) OrderOption
ByVerificationToken orders the results by the verification_token field.
func ByVerificationTokenExpiry ¶
func ByVerificationTokenExpiry(opts ...sql.OrderTermOption) OrderOption
ByVerificationTokenExpiry orders the results by the verification_token_expiry field.