user

package
v0.0.0-...-481d7d6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 4 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 = "uid"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldPhone holds the string denoting the phone field in the database.
	FieldPhone = "phone"
	// FieldCountry holds the string denoting the country field in the database.
	FieldCountry = "country"
	// FieldEmailVerified holds the string denoting the email_verified field in the database.
	FieldEmailVerified = "email_verified"
	// FieldRegister holds the string denoting the register field in the database.
	FieldRegister = "register"
	// FieldCertClearPassword holds the string denoting the cert_clear_password field in the database.
	FieldCertClearPassword = "cert_clear_password"
	// FieldExpiry holds the string denoting the expiry field in the database.
	FieldExpiry = "expiry"
	// FieldOpenid holds the string denoting the openid field in the database.
	FieldOpenid = "openid"
	// FieldCreated holds the string denoting the created field in the database.
	FieldCreated = "created"
	// FieldModified holds the string denoting the modified field in the database.
	FieldModified = "modified"
	// FieldAccessToken holds the string denoting the access_token field in the database.
	FieldAccessToken = "access_token"
	// FieldRefreshToken holds the string denoting the refresh_token field in the database.
	FieldRefreshToken = "refresh_token"
	// FieldIDToken holds the string denoting the id_token field in the database.
	FieldIDToken = "id_token"
	// FieldTokenType holds the string denoting the token_type field in the database.
	FieldTokenType = "token_type"
	// FieldTokenExpiry holds the string denoting the token_expiry field in the database.
	FieldTokenExpiry = "token_expiry"
	// EdgeSessions holds the string denoting the sessions edge name in mutations.
	EdgeSessions = "sessions"
	// SessionsFieldID holds the string denoting the ID field of the Sessions.
	SessionsFieldID = "token"
	// Table holds the table name of the user in the database.
	Table = "users"
	// SessionsTable is the table that holds the sessions relation/edge.
	SessionsTable = "sessions"
	// SessionsInverseTable is the table name for the Sessions entity.
	// It exists in this package in order to avoid circular dependency with the "sessions" package.
	SessionsInverseTable = "sessions"
	// SessionsColumn is the table column denoting the sessions relation/edge.
	SessionsColumn = "user_sessions"
)

Variables

View Source
var (
	// DefaultEmailVerified holds the default value on creation for the "email_verified" field.
	DefaultEmailVerified bool
	// DefaultRegister holds the default value on creation for the "register" field.
	DefaultRegister string
	// DefaultOpenid holds the default value on creation for the "openid" field.
	DefaultOpenid bool
	// DefaultCreated holds the default value on creation for the "created" field.
	DefaultCreated func() time.Time
	// DefaultModified holds the default value on creation for the "modified" field.
	DefaultModified func() time.Time
	// UpdateDefaultModified holds the default value on update for the "modified" field.
	UpdateDefaultModified func() time.Time
	// DefaultAccessToken holds the default value on creation for the "access_token" field.
	DefaultAccessToken string
	// DefaultRefreshToken holds the default value on creation for the "refresh_token" field.
	DefaultRefreshToken string
	// DefaultIDToken holds the default value on creation for the "id_token" field.
	DefaultIDToken string
	// DefaultTokenType holds the default value on creation for the "token_type" field.
	DefaultTokenType string
	// DefaultTokenExpiry holds the default value on creation for the "token_expiry" field.
	DefaultTokenExpiry int
	// IDValidator is a validator for the "id" field. It is called by the builders before save.
	IDValidator func(string) error
)

Columns holds all SQL columns for user fields.

Functions

func AccessToken

func AccessToken(v string) predicate.User

AccessToken applies equality check predicate on the "access_token" field. It's identical to AccessTokenEQ.

func AccessTokenContains

func AccessTokenContains(v string) predicate.User

AccessTokenContains applies the Contains predicate on the "access_token" field.

func AccessTokenContainsFold

func AccessTokenContainsFold(v string) predicate.User

AccessTokenContainsFold applies the ContainsFold predicate on the "access_token" field.

func AccessTokenEQ

func AccessTokenEQ(v string) predicate.User

AccessTokenEQ applies the EQ predicate on the "access_token" field.

func AccessTokenEqualFold

func AccessTokenEqualFold(v string) predicate.User

AccessTokenEqualFold applies the EqualFold predicate on the "access_token" field.

func AccessTokenGT

func AccessTokenGT(v string) predicate.User

AccessTokenGT applies the GT predicate on the "access_token" field.

func AccessTokenGTE

func AccessTokenGTE(v string) predicate.User

AccessTokenGTE applies the GTE predicate on the "access_token" field.

func AccessTokenHasPrefix

func AccessTokenHasPrefix(v string) predicate.User

AccessTokenHasPrefix applies the HasPrefix predicate on the "access_token" field.

func AccessTokenHasSuffix

func AccessTokenHasSuffix(v string) predicate.User

AccessTokenHasSuffix applies the HasSuffix predicate on the "access_token" field.

func AccessTokenIn

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

AccessTokenIn applies the In predicate on the "access_token" field.

func AccessTokenIsNil

func AccessTokenIsNil() predicate.User

AccessTokenIsNil applies the IsNil predicate on the "access_token" field.

func AccessTokenLT

func AccessTokenLT(v string) predicate.User

AccessTokenLT applies the LT predicate on the "access_token" field.

func AccessTokenLTE

func AccessTokenLTE(v string) predicate.User

AccessTokenLTE applies the LTE predicate on the "access_token" field.

func AccessTokenNEQ

func AccessTokenNEQ(v string) predicate.User

AccessTokenNEQ applies the NEQ predicate on the "access_token" field.

func AccessTokenNotIn

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

AccessTokenNotIn applies the NotIn predicate on the "access_token" field.

func AccessTokenNotNil

func AccessTokenNotNil() predicate.User

AccessTokenNotNil applies the NotNil predicate on the "access_token" field.

func And

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

And groups predicates with the AND operator between them.

func CertClearPassword

func CertClearPassword(v string) predicate.User

CertClearPassword applies equality check predicate on the "cert_clear_password" field. It's identical to CertClearPasswordEQ.

func CertClearPasswordContains

func CertClearPasswordContains(v string) predicate.User

CertClearPasswordContains applies the Contains predicate on the "cert_clear_password" field.

func CertClearPasswordContainsFold

func CertClearPasswordContainsFold(v string) predicate.User

CertClearPasswordContainsFold applies the ContainsFold predicate on the "cert_clear_password" field.

func CertClearPasswordEQ

func CertClearPasswordEQ(v string) predicate.User

CertClearPasswordEQ applies the EQ predicate on the "cert_clear_password" field.

func CertClearPasswordEqualFold

func CertClearPasswordEqualFold(v string) predicate.User

CertClearPasswordEqualFold applies the EqualFold predicate on the "cert_clear_password" field.

func CertClearPasswordGT

func CertClearPasswordGT(v string) predicate.User

CertClearPasswordGT applies the GT predicate on the "cert_clear_password" field.

func CertClearPasswordGTE

func CertClearPasswordGTE(v string) predicate.User

CertClearPasswordGTE applies the GTE predicate on the "cert_clear_password" field.

func CertClearPasswordHasPrefix

func CertClearPasswordHasPrefix(v string) predicate.User

CertClearPasswordHasPrefix applies the HasPrefix predicate on the "cert_clear_password" field.

func CertClearPasswordHasSuffix

func CertClearPasswordHasSuffix(v string) predicate.User

CertClearPasswordHasSuffix applies the HasSuffix predicate on the "cert_clear_password" field.

func CertClearPasswordIn

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

CertClearPasswordIn applies the In predicate on the "cert_clear_password" field.

func CertClearPasswordIsNil

func CertClearPasswordIsNil() predicate.User

CertClearPasswordIsNil applies the IsNil predicate on the "cert_clear_password" field.

func CertClearPasswordLT

func CertClearPasswordLT(v string) predicate.User

CertClearPasswordLT applies the LT predicate on the "cert_clear_password" field.

func CertClearPasswordLTE

func CertClearPasswordLTE(v string) predicate.User

CertClearPasswordLTE applies the LTE predicate on the "cert_clear_password" field.

func CertClearPasswordNEQ

func CertClearPasswordNEQ(v string) predicate.User

CertClearPasswordNEQ applies the NEQ predicate on the "cert_clear_password" field.

func CertClearPasswordNotIn

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

CertClearPasswordNotIn applies the NotIn predicate on the "cert_clear_password" field.

func CertClearPasswordNotNil

func CertClearPasswordNotNil() predicate.User

CertClearPasswordNotNil applies the NotNil predicate on the "cert_clear_password" field.

func Country

func Country(v string) predicate.User

Country applies equality check predicate on the "country" field. It's identical to CountryEQ.

func CountryContains

func CountryContains(v string) predicate.User

CountryContains applies the Contains predicate on the "country" field.

func CountryContainsFold

func CountryContainsFold(v string) predicate.User

CountryContainsFold applies the ContainsFold predicate on the "country" field.

func CountryEQ

func CountryEQ(v string) predicate.User

CountryEQ applies the EQ predicate on the "country" field.

func CountryEqualFold

func CountryEqualFold(v string) predicate.User

CountryEqualFold applies the EqualFold predicate on the "country" field.

func CountryGT

func CountryGT(v string) predicate.User

CountryGT applies the GT predicate on the "country" field.

func CountryGTE

func CountryGTE(v string) predicate.User

CountryGTE applies the GTE predicate on the "country" field.

func CountryHasPrefix

func CountryHasPrefix(v string) predicate.User

CountryHasPrefix applies the HasPrefix predicate on the "country" field.

func CountryHasSuffix

func CountryHasSuffix(v string) predicate.User

CountryHasSuffix applies the HasSuffix predicate on the "country" field.

func CountryIn

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

CountryIn applies the In predicate on the "country" field.

func CountryIsNil

func CountryIsNil() predicate.User

CountryIsNil applies the IsNil predicate on the "country" field.

func CountryLT

func CountryLT(v string) predicate.User

CountryLT applies the LT predicate on the "country" field.

func CountryLTE

func CountryLTE(v string) predicate.User

CountryLTE applies the LTE predicate on the "country" field.

func CountryNEQ

func CountryNEQ(v string) predicate.User

CountryNEQ applies the NEQ predicate on the "country" field.

func CountryNotIn

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

CountryNotIn applies the NotIn predicate on the "country" field.

func CountryNotNil

func CountryNotNil() predicate.User

CountryNotNil applies the NotNil predicate on the "country" field.

func Created

func Created(v time.Time) predicate.User

Created applies equality check predicate on the "created" field. It's identical to CreatedEQ.

func CreatedEQ

func CreatedEQ(v time.Time) predicate.User

CreatedEQ applies the EQ predicate on the "created" field.

func CreatedGT

func CreatedGT(v time.Time) predicate.User

CreatedGT applies the GT predicate on the "created" field.

func CreatedGTE

func CreatedGTE(v time.Time) predicate.User

CreatedGTE applies the GTE predicate on the "created" field.

func CreatedIn

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

CreatedIn applies the In predicate on the "created" field.

func CreatedIsNil

func CreatedIsNil() predicate.User

CreatedIsNil applies the IsNil predicate on the "created" field.

func CreatedLT

func CreatedLT(v time.Time) predicate.User

CreatedLT applies the LT predicate on the "created" field.

func CreatedLTE

func CreatedLTE(v time.Time) predicate.User

CreatedLTE applies the LTE predicate on the "created" field.

func CreatedNEQ

func CreatedNEQ(v time.Time) predicate.User

CreatedNEQ applies the NEQ predicate on the "created" field.

func CreatedNotIn

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

CreatedNotIn applies the NotIn predicate on the "created" field.

func CreatedNotNil

func CreatedNotNil() predicate.User

CreatedNotNil applies the NotNil predicate on the "created" 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 EmailIsNil

func EmailIsNil() predicate.User

EmailIsNil applies the IsNil 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 EmailNotNil

func EmailNotNil() predicate.User

EmailNotNil applies the NotNil 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 Expiry

func Expiry(v time.Time) predicate.User

Expiry applies equality check predicate on the "expiry" field. It's identical to ExpiryEQ.

func ExpiryEQ

func ExpiryEQ(v time.Time) predicate.User

ExpiryEQ applies the EQ predicate on the "expiry" field.

func ExpiryGT

func ExpiryGT(v time.Time) predicate.User

ExpiryGT applies the GT predicate on the "expiry" field.

func ExpiryGTE

func ExpiryGTE(v time.Time) predicate.User

ExpiryGTE applies the GTE predicate on the "expiry" field.

func ExpiryIn

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

ExpiryIn applies the In predicate on the "expiry" field.

func ExpiryIsNil

func ExpiryIsNil() predicate.User

ExpiryIsNil applies the IsNil predicate on the "expiry" field.

func ExpiryLT

func ExpiryLT(v time.Time) predicate.User

ExpiryLT applies the LT predicate on the "expiry" field.

func ExpiryLTE

func ExpiryLTE(v time.Time) predicate.User

ExpiryLTE applies the LTE predicate on the "expiry" field.

func ExpiryNEQ

func ExpiryNEQ(v time.Time) predicate.User

ExpiryNEQ applies the NEQ predicate on the "expiry" field.

func ExpiryNotIn

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

ExpiryNotIn applies the NotIn predicate on the "expiry" field.

func ExpiryNotNil

func ExpiryNotNil() predicate.User

ExpiryNotNil applies the NotNil predicate on the "expiry" field.

func HasSessions

func HasSessions() predicate.User

HasSessions applies the HasEdge predicate on the "sessions" edge.

func HasSessionsWith

func HasSessionsWith(preds ...predicate.Sessions) predicate.User

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

func ID

func ID(id string) predicate.User

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.User

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.User

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func IDToken

func IDToken(v string) predicate.User

IDToken applies equality check predicate on the "id_token" field. It's identical to IDTokenEQ.

func IDTokenContains

func IDTokenContains(v string) predicate.User

IDTokenContains applies the Contains predicate on the "id_token" field.

func IDTokenContainsFold

func IDTokenContainsFold(v string) predicate.User

IDTokenContainsFold applies the ContainsFold predicate on the "id_token" field.

func IDTokenEQ

func IDTokenEQ(v string) predicate.User

IDTokenEQ applies the EQ predicate on the "id_token" field.

func IDTokenEqualFold

func IDTokenEqualFold(v string) predicate.User

IDTokenEqualFold applies the EqualFold predicate on the "id_token" field.

func IDTokenGT

func IDTokenGT(v string) predicate.User

IDTokenGT applies the GT predicate on the "id_token" field.

func IDTokenGTE

func IDTokenGTE(v string) predicate.User

IDTokenGTE applies the GTE predicate on the "id_token" field.

func IDTokenHasPrefix

func IDTokenHasPrefix(v string) predicate.User

IDTokenHasPrefix applies the HasPrefix predicate on the "id_token" field.

func IDTokenHasSuffix

func IDTokenHasSuffix(v string) predicate.User

IDTokenHasSuffix applies the HasSuffix predicate on the "id_token" field.

func IDTokenIn

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

IDTokenIn applies the In predicate on the "id_token" field.

func IDTokenIsNil

func IDTokenIsNil() predicate.User

IDTokenIsNil applies the IsNil predicate on the "id_token" field.

func IDTokenLT

func IDTokenLT(v string) predicate.User

IDTokenLT applies the LT predicate on the "id_token" field.

func IDTokenLTE

func IDTokenLTE(v string) predicate.User

IDTokenLTE applies the LTE predicate on the "id_token" field.

func IDTokenNEQ

func IDTokenNEQ(v string) predicate.User

IDTokenNEQ applies the NEQ predicate on the "id_token" field.

func IDTokenNotIn

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

IDTokenNotIn applies the NotIn predicate on the "id_token" field.

func IDTokenNotNil

func IDTokenNotNil() predicate.User

IDTokenNotNil applies the NotNil predicate on the "id_token" field.

func Modified

func Modified(v time.Time) predicate.User

Modified applies equality check predicate on the "modified" field. It's identical to ModifiedEQ.

func ModifiedEQ

func ModifiedEQ(v time.Time) predicate.User

ModifiedEQ applies the EQ predicate on the "modified" field.

func ModifiedGT

func ModifiedGT(v time.Time) predicate.User

ModifiedGT applies the GT predicate on the "modified" field.

func ModifiedGTE

func ModifiedGTE(v time.Time) predicate.User

ModifiedGTE applies the GTE predicate on the "modified" field.

func ModifiedIn

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

ModifiedIn applies the In predicate on the "modified" field.

func ModifiedIsNil

func ModifiedIsNil() predicate.User

ModifiedIsNil applies the IsNil predicate on the "modified" field.

func ModifiedLT

func ModifiedLT(v time.Time) predicate.User

ModifiedLT applies the LT predicate on the "modified" field.

func ModifiedLTE

func ModifiedLTE(v time.Time) predicate.User

ModifiedLTE applies the LTE predicate on the "modified" field.

func ModifiedNEQ

func ModifiedNEQ(v time.Time) predicate.User

ModifiedNEQ applies the NEQ predicate on the "modified" field.

func ModifiedNotIn

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

ModifiedNotIn applies the NotIn predicate on the "modified" field.

func ModifiedNotNil

func ModifiedNotNil() predicate.User

ModifiedNotNil applies the NotNil predicate on the "modified" field.

func Name

func Name(v string) predicate.User

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.User

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.User

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.User

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.User

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.User

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.User

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.User

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.User

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

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

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.User

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.User

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.User

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Openid

func Openid(v bool) predicate.User

Openid applies equality check predicate on the "openid" field. It's identical to OpenidEQ.

func OpenidEQ

func OpenidEQ(v bool) predicate.User

OpenidEQ applies the EQ predicate on the "openid" field.

func OpenidIsNil

func OpenidIsNil() predicate.User

OpenidIsNil applies the IsNil predicate on the "openid" field.

func OpenidNEQ

func OpenidNEQ(v bool) predicate.User

OpenidNEQ applies the NEQ predicate on the "openid" field.

func OpenidNotNil

func OpenidNotNil() predicate.User

OpenidNotNil applies the NotNil predicate on the "openid" field.

func Or

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

Or groups predicates with the OR operator between them.

func Phone

func Phone(v string) predicate.User

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

func PhoneContains

func PhoneContains(v string) predicate.User

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

func PhoneContainsFold

func PhoneContainsFold(v string) predicate.User

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

func PhoneEQ

func PhoneEQ(v string) predicate.User

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

func PhoneEqualFold

func PhoneEqualFold(v string) predicate.User

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

func PhoneGT

func PhoneGT(v string) predicate.User

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

func PhoneGTE

func PhoneGTE(v string) predicate.User

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

func PhoneHasPrefix

func PhoneHasPrefix(v string) predicate.User

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

func PhoneHasSuffix

func PhoneHasSuffix(v string) predicate.User

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

func PhoneIn

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

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

func PhoneIsNil

func PhoneIsNil() predicate.User

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

func PhoneLT

func PhoneLT(v string) predicate.User

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

func PhoneLTE

func PhoneLTE(v string) predicate.User

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

func PhoneNEQ

func PhoneNEQ(v string) predicate.User

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

func PhoneNotIn

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

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

func PhoneNotNil

func PhoneNotNil() predicate.User

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

func RefreshToken

func RefreshToken(v string) predicate.User

RefreshToken applies equality check predicate on the "refresh_token" field. It's identical to RefreshTokenEQ.

func RefreshTokenContains

func RefreshTokenContains(v string) predicate.User

RefreshTokenContains applies the Contains predicate on the "refresh_token" field.

func RefreshTokenContainsFold

func RefreshTokenContainsFold(v string) predicate.User

RefreshTokenContainsFold applies the ContainsFold predicate on the "refresh_token" field.

func RefreshTokenEQ

func RefreshTokenEQ(v string) predicate.User

RefreshTokenEQ applies the EQ predicate on the "refresh_token" field.

func RefreshTokenEqualFold

func RefreshTokenEqualFold(v string) predicate.User

RefreshTokenEqualFold applies the EqualFold predicate on the "refresh_token" field.

func RefreshTokenGT

func RefreshTokenGT(v string) predicate.User

RefreshTokenGT applies the GT predicate on the "refresh_token" field.

func RefreshTokenGTE

func RefreshTokenGTE(v string) predicate.User

RefreshTokenGTE applies the GTE predicate on the "refresh_token" field.

func RefreshTokenHasPrefix

func RefreshTokenHasPrefix(v string) predicate.User

RefreshTokenHasPrefix applies the HasPrefix predicate on the "refresh_token" field.

func RefreshTokenHasSuffix

func RefreshTokenHasSuffix(v string) predicate.User

RefreshTokenHasSuffix applies the HasSuffix predicate on the "refresh_token" field.

func RefreshTokenIn

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

RefreshTokenIn applies the In predicate on the "refresh_token" field.

func RefreshTokenIsNil

func RefreshTokenIsNil() predicate.User

RefreshTokenIsNil applies the IsNil predicate on the "refresh_token" field.

func RefreshTokenLT

func RefreshTokenLT(v string) predicate.User

RefreshTokenLT applies the LT predicate on the "refresh_token" field.

func RefreshTokenLTE

func RefreshTokenLTE(v string) predicate.User

RefreshTokenLTE applies the LTE predicate on the "refresh_token" field.

func RefreshTokenNEQ

func RefreshTokenNEQ(v string) predicate.User

RefreshTokenNEQ applies the NEQ predicate on the "refresh_token" field.

func RefreshTokenNotIn

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

RefreshTokenNotIn applies the NotIn predicate on the "refresh_token" field.

func RefreshTokenNotNil

func RefreshTokenNotNil() predicate.User

RefreshTokenNotNil applies the NotNil predicate on the "refresh_token" field.

func Register

func Register(v string) predicate.User

Register applies equality check predicate on the "register" field. It's identical to RegisterEQ.

func RegisterContains

func RegisterContains(v string) predicate.User

RegisterContains applies the Contains predicate on the "register" field.

func RegisterContainsFold

func RegisterContainsFold(v string) predicate.User

RegisterContainsFold applies the ContainsFold predicate on the "register" field.

func RegisterEQ

func RegisterEQ(v string) predicate.User

RegisterEQ applies the EQ predicate on the "register" field.

func RegisterEqualFold

func RegisterEqualFold(v string) predicate.User

RegisterEqualFold applies the EqualFold predicate on the "register" field.

func RegisterGT

func RegisterGT(v string) predicate.User

RegisterGT applies the GT predicate on the "register" field.

func RegisterGTE

func RegisterGTE(v string) predicate.User

RegisterGTE applies the GTE predicate on the "register" field.

func RegisterHasPrefix

func RegisterHasPrefix(v string) predicate.User

RegisterHasPrefix applies the HasPrefix predicate on the "register" field.

func RegisterHasSuffix

func RegisterHasSuffix(v string) predicate.User

RegisterHasSuffix applies the HasSuffix predicate on the "register" field.

func RegisterIn

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

RegisterIn applies the In predicate on the "register" field.

func RegisterLT

func RegisterLT(v string) predicate.User

RegisterLT applies the LT predicate on the "register" field.

func RegisterLTE

func RegisterLTE(v string) predicate.User

RegisterLTE applies the LTE predicate on the "register" field.

func RegisterNEQ

func RegisterNEQ(v string) predicate.User

RegisterNEQ applies the NEQ predicate on the "register" field.

func RegisterNotIn

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

RegisterNotIn applies the NotIn predicate on the "register" field.

func TokenExpiry

func TokenExpiry(v int) predicate.User

TokenExpiry applies equality check predicate on the "token_expiry" field. It's identical to TokenExpiryEQ.

func TokenExpiryEQ

func TokenExpiryEQ(v int) predicate.User

TokenExpiryEQ applies the EQ predicate on the "token_expiry" field.

func TokenExpiryGT

func TokenExpiryGT(v int) predicate.User

TokenExpiryGT applies the GT predicate on the "token_expiry" field.

func TokenExpiryGTE

func TokenExpiryGTE(v int) predicate.User

TokenExpiryGTE applies the GTE predicate on the "token_expiry" field.

func TokenExpiryIn

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

TokenExpiryIn applies the In predicate on the "token_expiry" field.

func TokenExpiryIsNil

func TokenExpiryIsNil() predicate.User

TokenExpiryIsNil applies the IsNil predicate on the "token_expiry" field.

func TokenExpiryLT

func TokenExpiryLT(v int) predicate.User

TokenExpiryLT applies the LT predicate on the "token_expiry" field.

func TokenExpiryLTE

func TokenExpiryLTE(v int) predicate.User

TokenExpiryLTE applies the LTE predicate on the "token_expiry" field.

func TokenExpiryNEQ

func TokenExpiryNEQ(v int) predicate.User

TokenExpiryNEQ applies the NEQ predicate on the "token_expiry" field.

func TokenExpiryNotIn

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

TokenExpiryNotIn applies the NotIn predicate on the "token_expiry" field.

func TokenExpiryNotNil

func TokenExpiryNotNil() predicate.User

TokenExpiryNotNil applies the NotNil predicate on the "token_expiry" field.

func TokenType

func TokenType(v string) predicate.User

TokenType applies equality check predicate on the "token_type" field. It's identical to TokenTypeEQ.

func TokenTypeContains

func TokenTypeContains(v string) predicate.User

TokenTypeContains applies the Contains predicate on the "token_type" field.

func TokenTypeContainsFold

func TokenTypeContainsFold(v string) predicate.User

TokenTypeContainsFold applies the ContainsFold predicate on the "token_type" field.

func TokenTypeEQ

func TokenTypeEQ(v string) predicate.User

TokenTypeEQ applies the EQ predicate on the "token_type" field.

func TokenTypeEqualFold

func TokenTypeEqualFold(v string) predicate.User

TokenTypeEqualFold applies the EqualFold predicate on the "token_type" field.

func TokenTypeGT

func TokenTypeGT(v string) predicate.User

TokenTypeGT applies the GT predicate on the "token_type" field.

func TokenTypeGTE

func TokenTypeGTE(v string) predicate.User

TokenTypeGTE applies the GTE predicate on the "token_type" field.

func TokenTypeHasPrefix

func TokenTypeHasPrefix(v string) predicate.User

TokenTypeHasPrefix applies the HasPrefix predicate on the "token_type" field.

func TokenTypeHasSuffix

func TokenTypeHasSuffix(v string) predicate.User

TokenTypeHasSuffix applies the HasSuffix predicate on the "token_type" field.

func TokenTypeIn

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

TokenTypeIn applies the In predicate on the "token_type" field.

func TokenTypeIsNil

func TokenTypeIsNil() predicate.User

TokenTypeIsNil applies the IsNil predicate on the "token_type" field.

func TokenTypeLT

func TokenTypeLT(v string) predicate.User

TokenTypeLT applies the LT predicate on the "token_type" field.

func TokenTypeLTE

func TokenTypeLTE(v string) predicate.User

TokenTypeLTE applies the LTE predicate on the "token_type" field.

func TokenTypeNEQ

func TokenTypeNEQ(v string) predicate.User

TokenTypeNEQ applies the NEQ predicate on the "token_type" field.

func TokenTypeNotIn

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

TokenTypeNotIn applies the NotIn predicate on the "token_type" field.

func TokenTypeNotNil

func TokenTypeNotNil() predicate.User

TokenTypeNotNil applies the NotNil predicate on the "token_type" 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 ByAccessToken

func ByAccessToken(opts ...sql.OrderTermOption) OrderOption

ByAccessToken orders the results by the access_token field.

func ByCertClearPassword

func ByCertClearPassword(opts ...sql.OrderTermOption) OrderOption

ByCertClearPassword orders the results by the cert_clear_password field.

func ByCountry

func ByCountry(opts ...sql.OrderTermOption) OrderOption

ByCountry orders the results by the country field.

func ByCreated

func ByCreated(opts ...sql.OrderTermOption) OrderOption

ByCreated orders the results by the created 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 ByExpiry

func ByExpiry(opts ...sql.OrderTermOption) OrderOption

ByExpiry orders the results by the expiry field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByIDToken

func ByIDToken(opts ...sql.OrderTermOption) OrderOption

ByIDToken orders the results by the id_token field.

func ByModified

func ByModified(opts ...sql.OrderTermOption) OrderOption

ByModified orders the results by the modified field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByOpenid

func ByOpenid(opts ...sql.OrderTermOption) OrderOption

ByOpenid orders the results by the openid field.

func ByPhone

func ByPhone(opts ...sql.OrderTermOption) OrderOption

ByPhone orders the results by the phone field.

func ByRefreshToken

func ByRefreshToken(opts ...sql.OrderTermOption) OrderOption

ByRefreshToken orders the results by the refresh_token field.

func ByRegister

func ByRegister(opts ...sql.OrderTermOption) OrderOption

ByRegister orders the results by the register field.

func BySessions

func BySessions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

BySessions orders the results by sessions terms.

func BySessionsCount

func BySessionsCount(opts ...sql.OrderTermOption) OrderOption

BySessionsCount orders the results by sessions count.

func ByTokenExpiry

func ByTokenExpiry(opts ...sql.OrderTermOption) OrderOption

ByTokenExpiry orders the results by the token_expiry field.

func ByTokenType

func ByTokenType(opts ...sql.OrderTermOption) OrderOption

ByTokenType orders the results by the token_type field.

Jump to

Keyboard shortcuts

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