users

package
v0.0.0-...-ed7a308 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

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

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

Columns holds all SQL columns for users fields.

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

func And(predicates ...predicate.Users) predicate.Users

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Users

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Users

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Users

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Users

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Users

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Users

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Users

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

func CreatedAtNotIn

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

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

func Email

func Email(v string) predicate.Users

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

func EmailContains

func EmailContains(v string) predicate.Users

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.Users

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

func EmailEQ

func EmailEQ(v string) predicate.Users

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.Users

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

func EmailGT

func EmailGT(v string) predicate.Users

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

func EmailGTE

func EmailGTE(v string) predicate.Users

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Users

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Users

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

func EmailIn

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

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

func EmailLT

func EmailLT(v string) predicate.Users

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

func EmailLTE

func EmailLTE(v string) predicate.Users

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

func EmailNEQ

func EmailNEQ(v string) predicate.Users

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

func EmailNotIn

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

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

func EmailVerified

func EmailVerified(v bool) predicate.Users

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

func EmailVerifiedEQ

func EmailVerifiedEQ(v bool) predicate.Users

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

func EmailVerifiedNEQ

func EmailVerifiedNEQ(v bool) predicate.Users

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

func HasRoles

func HasRoles() predicate.Users

HasRoles applies the HasEdge predicate on the "roles" edge.

func HasRolesWith

func HasRolesWith(preds ...predicate.Roles) predicate.Users

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

func ID

func ID(id uuid.UUID) predicate.Users

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Users

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Users

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Users

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Users

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Users

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Users

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IsActive

func IsActive(v bool) predicate.Users

IsActive applies equality check predicate on the "is_active" field. It's identical to IsActiveEQ.

func IsActiveEQ

func IsActiveEQ(v bool) predicate.Users

IsActiveEQ applies the EQ predicate on the "is_active" field.

func IsActiveNEQ

func IsActiveNEQ(v bool) predicate.Users

IsActiveNEQ applies the NEQ predicate on the "is_active" field.

func LastLogin

func LastLogin(v time.Time) predicate.Users

LastLogin applies equality check predicate on the "last_login" field. It's identical to LastLoginEQ.

func LastLoginEQ

func LastLoginEQ(v time.Time) predicate.Users

LastLoginEQ applies the EQ predicate on the "last_login" field.

func LastLoginGT

func LastLoginGT(v time.Time) predicate.Users

LastLoginGT applies the GT predicate on the "last_login" field.

func LastLoginGTE

func LastLoginGTE(v time.Time) predicate.Users

LastLoginGTE applies the GTE predicate on the "last_login" field.

func LastLoginIn

func LastLoginIn(vs ...time.Time) predicate.Users

LastLoginIn applies the In predicate on the "last_login" field.

func LastLoginIsNil

func LastLoginIsNil() predicate.Users

LastLoginIsNil applies the IsNil predicate on the "last_login" field.

func LastLoginLT

func LastLoginLT(v time.Time) predicate.Users

LastLoginLT applies the LT predicate on the "last_login" field.

func LastLoginLTE

func LastLoginLTE(v time.Time) predicate.Users

LastLoginLTE applies the LTE predicate on the "last_login" field.

func LastLoginNEQ

func LastLoginNEQ(v time.Time) predicate.Users

LastLoginNEQ applies the NEQ predicate on the "last_login" field.

func LastLoginNotIn

func LastLoginNotIn(vs ...time.Time) predicate.Users

LastLoginNotIn applies the NotIn predicate on the "last_login" field.

func LastLoginNotNil

func LastLoginNotNil() predicate.Users

LastLoginNotNil applies the NotNil predicate on the "last_login" field.

func MetadataIsNil

func MetadataIsNil() predicate.Users

MetadataIsNil applies the IsNil predicate on the "metadata" field.

func MetadataNotNil

func MetadataNotNil() predicate.Users

MetadataNotNil applies the NotNil predicate on the "metadata" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Users) predicate.Users

Or groups predicates with the OR operator between them.

func PasswordHash

func PasswordHash(v string) predicate.Users

PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.

func PasswordHashContains

func PasswordHashContains(v string) predicate.Users

PasswordHashContains applies the Contains predicate on the "password_hash" field.

func PasswordHashContainsFold

func PasswordHashContainsFold(v string) predicate.Users

PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.

func PasswordHashEQ

func PasswordHashEQ(v string) predicate.Users

PasswordHashEQ applies the EQ predicate on the "password_hash" field.

func PasswordHashEqualFold

func PasswordHashEqualFold(v string) predicate.Users

PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.

func PasswordHashGT

func PasswordHashGT(v string) predicate.Users

PasswordHashGT applies the GT predicate on the "password_hash" field.

func PasswordHashGTE

func PasswordHashGTE(v string) predicate.Users

PasswordHashGTE applies the GTE predicate on the "password_hash" field.

func PasswordHashHasPrefix

func PasswordHashHasPrefix(v string) predicate.Users

PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.

func PasswordHashHasSuffix

func PasswordHashHasSuffix(v string) predicate.Users

PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.

func PasswordHashIn

func PasswordHashIn(vs ...string) predicate.Users

PasswordHashIn applies the In predicate on the "password_hash" field.

func PasswordHashLT

func PasswordHashLT(v string) predicate.Users

PasswordHashLT applies the LT predicate on the "password_hash" field.

func PasswordHashLTE

func PasswordHashLTE(v string) predicate.Users

PasswordHashLTE applies the LTE predicate on the "password_hash" field.

func PasswordHashNEQ

func PasswordHashNEQ(v string) predicate.Users

PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.

func PasswordHashNotIn

func PasswordHashNotIn(vs ...string) predicate.Users

PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.

func PasswordResetToken

func PasswordResetToken(v string) predicate.Users

PasswordResetToken applies equality check predicate on the "password_reset_token" field. It's identical to PasswordResetTokenEQ.

func PasswordResetTokenContains

func PasswordResetTokenContains(v string) predicate.Users

PasswordResetTokenContains applies the Contains predicate on the "password_reset_token" field.

func PasswordResetTokenContainsFold

func PasswordResetTokenContainsFold(v string) predicate.Users

PasswordResetTokenContainsFold applies the ContainsFold predicate on the "password_reset_token" field.

func PasswordResetTokenEQ

func PasswordResetTokenEQ(v string) predicate.Users

PasswordResetTokenEQ applies the EQ predicate on the "password_reset_token" field.

func PasswordResetTokenEqualFold

func PasswordResetTokenEqualFold(v string) predicate.Users

PasswordResetTokenEqualFold applies the EqualFold predicate on the "password_reset_token" field.

func PasswordResetTokenExpiry

func PasswordResetTokenExpiry(v time.Time) predicate.Users

PasswordResetTokenExpiry applies equality check predicate on the "password_reset_token_expiry" field. It's identical to PasswordResetTokenExpiryEQ.

func PasswordResetTokenExpiryEQ

func PasswordResetTokenExpiryEQ(v time.Time) predicate.Users

PasswordResetTokenExpiryEQ applies the EQ predicate on the "password_reset_token_expiry" field.

func PasswordResetTokenExpiryGT

func PasswordResetTokenExpiryGT(v time.Time) predicate.Users

PasswordResetTokenExpiryGT applies the GT predicate on the "password_reset_token_expiry" field.

func PasswordResetTokenExpiryGTE

func PasswordResetTokenExpiryGTE(v time.Time) predicate.Users

PasswordResetTokenExpiryGTE applies the GTE predicate on the "password_reset_token_expiry" field.

func PasswordResetTokenExpiryIn

func PasswordResetTokenExpiryIn(vs ...time.Time) predicate.Users

PasswordResetTokenExpiryIn applies the In predicate on the "password_reset_token_expiry" field.

func PasswordResetTokenExpiryIsNil

func PasswordResetTokenExpiryIsNil() predicate.Users

PasswordResetTokenExpiryIsNil applies the IsNil predicate on the "password_reset_token_expiry" field.

func PasswordResetTokenExpiryLT

func PasswordResetTokenExpiryLT(v time.Time) predicate.Users

PasswordResetTokenExpiryLT applies the LT predicate on the "password_reset_token_expiry" field.

func PasswordResetTokenExpiryLTE

func PasswordResetTokenExpiryLTE(v time.Time) predicate.Users

PasswordResetTokenExpiryLTE applies the LTE predicate on the "password_reset_token_expiry" field.

func PasswordResetTokenExpiryNEQ

func PasswordResetTokenExpiryNEQ(v time.Time) predicate.Users

PasswordResetTokenExpiryNEQ applies the NEQ predicate on the "password_reset_token_expiry" field.

func PasswordResetTokenExpiryNotIn

func PasswordResetTokenExpiryNotIn(vs ...time.Time) predicate.Users

PasswordResetTokenExpiryNotIn applies the NotIn predicate on the "password_reset_token_expiry" field.

func PasswordResetTokenExpiryNotNil

func PasswordResetTokenExpiryNotNil() predicate.Users

PasswordResetTokenExpiryNotNil applies the NotNil predicate on the "password_reset_token_expiry" field.

func PasswordResetTokenGT

func PasswordResetTokenGT(v string) predicate.Users

PasswordResetTokenGT applies the GT predicate on the "password_reset_token" field.

func PasswordResetTokenGTE

func PasswordResetTokenGTE(v string) predicate.Users

PasswordResetTokenGTE applies the GTE predicate on the "password_reset_token" field.

func PasswordResetTokenHasPrefix

func PasswordResetTokenHasPrefix(v string) predicate.Users

PasswordResetTokenHasPrefix applies the HasPrefix predicate on the "password_reset_token" field.

func PasswordResetTokenHasSuffix

func PasswordResetTokenHasSuffix(v string) predicate.Users

PasswordResetTokenHasSuffix applies the HasSuffix predicate on the "password_reset_token" field.

func PasswordResetTokenIn

func PasswordResetTokenIn(vs ...string) predicate.Users

PasswordResetTokenIn applies the In predicate on the "password_reset_token" field.

func PasswordResetTokenIsNil

func PasswordResetTokenIsNil() predicate.Users

PasswordResetTokenIsNil applies the IsNil predicate on the "password_reset_token" field.

func PasswordResetTokenLT

func PasswordResetTokenLT(v string) predicate.Users

PasswordResetTokenLT applies the LT predicate on the "password_reset_token" field.

func PasswordResetTokenLTE

func PasswordResetTokenLTE(v string) predicate.Users

PasswordResetTokenLTE applies the LTE predicate on the "password_reset_token" field.

func PasswordResetTokenNEQ

func PasswordResetTokenNEQ(v string) predicate.Users

PasswordResetTokenNEQ applies the NEQ predicate on the "password_reset_token" field.

func PasswordResetTokenNotIn

func PasswordResetTokenNotIn(vs ...string) predicate.Users

PasswordResetTokenNotIn applies the NotIn predicate on the "password_reset_token" field.

func PasswordResetTokenNotNil

func PasswordResetTokenNotNil() predicate.Users

PasswordResetTokenNotNil applies the NotNil predicate on the "password_reset_token" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Users

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Users

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Users

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Users

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Users

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Users

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Users

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

func UpdatedAtNotIn

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

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

func ValidColumn

func ValidColumn(column string) bool

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

func VerificationToken

func VerificationToken(v string) predicate.Users

VerificationToken applies equality check predicate on the "verification_token" field. It's identical to VerificationTokenEQ.

func VerificationTokenContains

func VerificationTokenContains(v string) predicate.Users

VerificationTokenContains applies the Contains predicate on the "verification_token" field.

func VerificationTokenContainsFold

func VerificationTokenContainsFold(v string) predicate.Users

VerificationTokenContainsFold applies the ContainsFold predicate on the "verification_token" field.

func VerificationTokenEQ

func VerificationTokenEQ(v string) predicate.Users

VerificationTokenEQ applies the EQ predicate on the "verification_token" field.

func VerificationTokenEqualFold

func VerificationTokenEqualFold(v string) predicate.Users

VerificationTokenEqualFold applies the EqualFold predicate on the "verification_token" field.

func VerificationTokenExpiry

func VerificationTokenExpiry(v time.Time) predicate.Users

VerificationTokenExpiry applies equality check predicate on the "verification_token_expiry" field. It's identical to VerificationTokenExpiryEQ.

func VerificationTokenExpiryEQ

func VerificationTokenExpiryEQ(v time.Time) predicate.Users

VerificationTokenExpiryEQ applies the EQ predicate on the "verification_token_expiry" field.

func VerificationTokenExpiryGT

func VerificationTokenExpiryGT(v time.Time) predicate.Users

VerificationTokenExpiryGT applies the GT predicate on the "verification_token_expiry" field.

func VerificationTokenExpiryGTE

func VerificationTokenExpiryGTE(v time.Time) predicate.Users

VerificationTokenExpiryGTE applies the GTE predicate on the "verification_token_expiry" field.

func VerificationTokenExpiryIn

func VerificationTokenExpiryIn(vs ...time.Time) predicate.Users

VerificationTokenExpiryIn applies the In predicate on the "verification_token_expiry" field.

func VerificationTokenExpiryIsNil

func VerificationTokenExpiryIsNil() predicate.Users

VerificationTokenExpiryIsNil applies the IsNil predicate on the "verification_token_expiry" field.

func VerificationTokenExpiryLT

func VerificationTokenExpiryLT(v time.Time) predicate.Users

VerificationTokenExpiryLT applies the LT predicate on the "verification_token_expiry" field.

func VerificationTokenExpiryLTE

func VerificationTokenExpiryLTE(v time.Time) predicate.Users

VerificationTokenExpiryLTE applies the LTE predicate on the "verification_token_expiry" field.

func VerificationTokenExpiryNEQ

func VerificationTokenExpiryNEQ(v time.Time) predicate.Users

VerificationTokenExpiryNEQ applies the NEQ predicate on the "verification_token_expiry" field.

func VerificationTokenExpiryNotIn

func VerificationTokenExpiryNotIn(vs ...time.Time) predicate.Users

VerificationTokenExpiryNotIn applies the NotIn predicate on the "verification_token_expiry" field.

func VerificationTokenExpiryNotNil

func VerificationTokenExpiryNotNil() predicate.Users

VerificationTokenExpiryNotNil applies the NotNil predicate on the "verification_token_expiry" field.

func VerificationTokenGT

func VerificationTokenGT(v string) predicate.Users

VerificationTokenGT applies the GT predicate on the "verification_token" field.

func VerificationTokenGTE

func VerificationTokenGTE(v string) predicate.Users

VerificationTokenGTE applies the GTE predicate on the "verification_token" field.

func VerificationTokenHasPrefix

func VerificationTokenHasPrefix(v string) predicate.Users

VerificationTokenHasPrefix applies the HasPrefix predicate on the "verification_token" field.

func VerificationTokenHasSuffix

func VerificationTokenHasSuffix(v string) predicate.Users

VerificationTokenHasSuffix applies the HasSuffix predicate on the "verification_token" field.

func VerificationTokenIn

func VerificationTokenIn(vs ...string) predicate.Users

VerificationTokenIn applies the In predicate on the "verification_token" field.

func VerificationTokenIsNil

func VerificationTokenIsNil() predicate.Users

VerificationTokenIsNil applies the IsNil predicate on the "verification_token" field.

func VerificationTokenLT

func VerificationTokenLT(v string) predicate.Users

VerificationTokenLT applies the LT predicate on the "verification_token" field.

func VerificationTokenLTE

func VerificationTokenLTE(v string) predicate.Users

VerificationTokenLTE applies the LTE predicate on the "verification_token" field.

func VerificationTokenNEQ

func VerificationTokenNEQ(v string) predicate.Users

VerificationTokenNEQ applies the NEQ predicate on the "verification_token" field.

func VerificationTokenNotIn

func VerificationTokenNotIn(vs ...string) predicate.Users

VerificationTokenNotIn applies the NotIn predicate on the "verification_token" field.

func VerificationTokenNotNil

func VerificationTokenNotNil() predicate.Users

VerificationTokenNotNil applies the NotNil predicate on the "verification_token" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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