user

package
v0.0.0-...-72a65b5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT 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 = "oid"
	// FieldUsername holds the string denoting the username field in the database.
	FieldUsername = "username"
	// FieldHashedPassword holds the string denoting the hashed_password field in the database.
	FieldHashedPassword = "hashed_password"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldPasswordLastSetAt holds the string denoting the password_last_set_at field in the database.
	FieldPasswordLastSetAt = "password_last_set_at"
	// FieldForcePasswordChange holds the string denoting the force_password_change field in the database.
	FieldForcePasswordChange = "force_password_change"
	// FieldLastLogin holds the string denoting the last_login field in the database.
	FieldLastLogin = "last_login"
	// FieldFailedLogins holds the string denoting the failed_logins field in the database.
	FieldFailedLogins = "failed_logins"
	// FieldLocked holds the string denoting the locked field in the database.
	FieldLocked = "locked"
	// FieldLockedUntil holds the string denoting the locked_until field in the database.
	FieldLockedUntil = "locked_until"
	// FieldMfaSecret holds the string denoting the mfa_secret field in the database.
	FieldMfaSecret = "mfa_secret"
	// FieldMfaSetupCompleted holds the string denoting the mfa_setup_completed field in the database.
	FieldMfaSetupCompleted = "mfa_setup_completed"
	// FieldRecentPasswords holds the string denoting the recent_passwords field in the database.
	FieldRecentPasswords = "recent_passwords"
	// FieldMfaImage holds the string denoting the mfa_image field in the database.
	FieldMfaImage = "mfa_image"
	// FieldTimezone holds the string denoting the timezone field in the database.
	FieldTimezone = "timezone"
	// Table holds the table name of the user in the database.
	Table = "users"
)

Variables

View Source
var (
	// HashedPasswordValidator is a validator for the "hashed_password" field. It is called by the builders before save.
	HashedPasswordValidator func(string) error
	// RoleValidator is a validator for the "role" field. It is called by the builders before save.
	RoleValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt time.Time
	// DefaultPasswordLastSetAt holds the default value on creation for the "password_last_set_at" field.
	DefaultPasswordLastSetAt time.Time
	// DefaultForcePasswordChange holds the default value on creation for the "force_password_change" field.
	DefaultForcePasswordChange bool
	// DefaultLastLogin holds the default value on creation for the "last_login" field.
	DefaultLastLogin time.Time
	// DefaultFailedLogins holds the default value on creation for the "failed_logins" field.
	DefaultFailedLogins int
	// DefaultLocked holds the default value on creation for the "locked" field.
	DefaultLocked bool
	// DefaultLockedUntil holds the default value on creation for the "locked_until" field.
	DefaultLockedUntil time.Time
	// DefaultMfaSetupCompleted holds the default value on creation for the "mfa_setup_completed" field.
	DefaultMfaSetupCompleted bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for user fields.

Functions

func And

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

And groups predicates with the AND operator between them.

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 FailedLogins

func FailedLogins(v int) predicate.User

FailedLogins applies equality check predicate on the "failed_logins" field. It's identical to FailedLoginsEQ.

func FailedLoginsEQ

func FailedLoginsEQ(v int) predicate.User

FailedLoginsEQ applies the EQ predicate on the "failed_logins" field.

func FailedLoginsGT

func FailedLoginsGT(v int) predicate.User

FailedLoginsGT applies the GT predicate on the "failed_logins" field.

func FailedLoginsGTE

func FailedLoginsGTE(v int) predicate.User

FailedLoginsGTE applies the GTE predicate on the "failed_logins" field.

func FailedLoginsIn

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

FailedLoginsIn applies the In predicate on the "failed_logins" field.

func FailedLoginsLT

func FailedLoginsLT(v int) predicate.User

FailedLoginsLT applies the LT predicate on the "failed_logins" field.

func FailedLoginsLTE

func FailedLoginsLTE(v int) predicate.User

FailedLoginsLTE applies the LTE predicate on the "failed_logins" field.

func FailedLoginsNEQ

func FailedLoginsNEQ(v int) predicate.User

FailedLoginsNEQ applies the NEQ predicate on the "failed_logins" field.

func FailedLoginsNotIn

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

FailedLoginsNotIn applies the NotIn predicate on the "failed_logins" field.

func ForcePasswordChange

func ForcePasswordChange(v bool) predicate.User

ForcePasswordChange applies equality check predicate on the "force_password_change" field. It's identical to ForcePasswordChangeEQ.

func ForcePasswordChangeEQ

func ForcePasswordChangeEQ(v bool) predicate.User

ForcePasswordChangeEQ applies the EQ predicate on the "force_password_change" field.

func ForcePasswordChangeNEQ

func ForcePasswordChangeNEQ(v bool) predicate.User

ForcePasswordChangeNEQ applies the NEQ predicate on the "force_password_change" field.

func HashedPassword

func HashedPassword(v string) predicate.User

HashedPassword applies equality check predicate on the "hashed_password" field. It's identical to HashedPasswordEQ.

func HashedPasswordContains

func HashedPasswordContains(v string) predicate.User

HashedPasswordContains applies the Contains predicate on the "hashed_password" field.

func HashedPasswordContainsFold

func HashedPasswordContainsFold(v string) predicate.User

HashedPasswordContainsFold applies the ContainsFold predicate on the "hashed_password" field.

func HashedPasswordEQ

func HashedPasswordEQ(v string) predicate.User

HashedPasswordEQ applies the EQ predicate on the "hashed_password" field.

func HashedPasswordEqualFold

func HashedPasswordEqualFold(v string) predicate.User

HashedPasswordEqualFold applies the EqualFold predicate on the "hashed_password" field.

func HashedPasswordGT

func HashedPasswordGT(v string) predicate.User

HashedPasswordGT applies the GT predicate on the "hashed_password" field.

func HashedPasswordGTE

func HashedPasswordGTE(v string) predicate.User

HashedPasswordGTE applies the GTE predicate on the "hashed_password" field.

func HashedPasswordHasPrefix

func HashedPasswordHasPrefix(v string) predicate.User

HashedPasswordHasPrefix applies the HasPrefix predicate on the "hashed_password" field.

func HashedPasswordHasSuffix

func HashedPasswordHasSuffix(v string) predicate.User

HashedPasswordHasSuffix applies the HasSuffix predicate on the "hashed_password" field.

func HashedPasswordIn

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

HashedPasswordIn applies the In predicate on the "hashed_password" field.

func HashedPasswordLT

func HashedPasswordLT(v string) predicate.User

HashedPasswordLT applies the LT predicate on the "hashed_password" field.

func HashedPasswordLTE

func HashedPasswordLTE(v string) predicate.User

HashedPasswordLTE applies the LTE predicate on the "hashed_password" field.

func HashedPasswordNEQ

func HashedPasswordNEQ(v string) predicate.User

HashedPasswordNEQ applies the NEQ predicate on the "hashed_password" field.

func HashedPasswordNotIn

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

HashedPasswordNotIn applies the NotIn predicate on the "hashed_password" field.

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 LastLogin

func LastLogin(v time.Time) predicate.User

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

func LastLoginEQ

func LastLoginEQ(v time.Time) predicate.User

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

func LastLoginGT

func LastLoginGT(v time.Time) predicate.User

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

func LastLoginGTE

func LastLoginGTE(v time.Time) predicate.User

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

func LastLoginIn

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

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

func LastLoginLT

func LastLoginLT(v time.Time) predicate.User

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

func LastLoginLTE

func LastLoginLTE(v time.Time) predicate.User

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

func LastLoginNEQ

func LastLoginNEQ(v time.Time) predicate.User

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

func LastLoginNotIn

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

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

func Locked

func Locked(v bool) predicate.User

Locked applies equality check predicate on the "locked" field. It's identical to LockedEQ.

func LockedEQ

func LockedEQ(v bool) predicate.User

LockedEQ applies the EQ predicate on the "locked" field.

func LockedNEQ

func LockedNEQ(v bool) predicate.User

LockedNEQ applies the NEQ predicate on the "locked" field.

func LockedUntil

func LockedUntil(v time.Time) predicate.User

LockedUntil applies equality check predicate on the "locked_until" field. It's identical to LockedUntilEQ.

func LockedUntilEQ

func LockedUntilEQ(v time.Time) predicate.User

LockedUntilEQ applies the EQ predicate on the "locked_until" field.

func LockedUntilGT

func LockedUntilGT(v time.Time) predicate.User

LockedUntilGT applies the GT predicate on the "locked_until" field.

func LockedUntilGTE

func LockedUntilGTE(v time.Time) predicate.User

LockedUntilGTE applies the GTE predicate on the "locked_until" field.

func LockedUntilIn

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

LockedUntilIn applies the In predicate on the "locked_until" field.

func LockedUntilLT

func LockedUntilLT(v time.Time) predicate.User

LockedUntilLT applies the LT predicate on the "locked_until" field.

func LockedUntilLTE

func LockedUntilLTE(v time.Time) predicate.User

LockedUntilLTE applies the LTE predicate on the "locked_until" field.

func LockedUntilNEQ

func LockedUntilNEQ(v time.Time) predicate.User

LockedUntilNEQ applies the NEQ predicate on the "locked_until" field.

func LockedUntilNotIn

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

LockedUntilNotIn applies the NotIn predicate on the "locked_until" field.

func MfaImage

func MfaImage(v []byte) predicate.User

MfaImage applies equality check predicate on the "mfa_image" field. It's identical to MfaImageEQ.

func MfaImageEQ

func MfaImageEQ(v []byte) predicate.User

MfaImageEQ applies the EQ predicate on the "mfa_image" field.

func MfaImageGT

func MfaImageGT(v []byte) predicate.User

MfaImageGT applies the GT predicate on the "mfa_image" field.

func MfaImageGTE

func MfaImageGTE(v []byte) predicate.User

MfaImageGTE applies the GTE predicate on the "mfa_image" field.

func MfaImageIn

func MfaImageIn(vs ...[]byte) predicate.User

MfaImageIn applies the In predicate on the "mfa_image" field.

func MfaImageIsNil

func MfaImageIsNil() predicate.User

MfaImageIsNil applies the IsNil predicate on the "mfa_image" field.

func MfaImageLT

func MfaImageLT(v []byte) predicate.User

MfaImageLT applies the LT predicate on the "mfa_image" field.

func MfaImageLTE

func MfaImageLTE(v []byte) predicate.User

MfaImageLTE applies the LTE predicate on the "mfa_image" field.

func MfaImageNEQ

func MfaImageNEQ(v []byte) predicate.User

MfaImageNEQ applies the NEQ predicate on the "mfa_image" field.

func MfaImageNotIn

func MfaImageNotIn(vs ...[]byte) predicate.User

MfaImageNotIn applies the NotIn predicate on the "mfa_image" field.

func MfaImageNotNil

func MfaImageNotNil() predicate.User

MfaImageNotNil applies the NotNil predicate on the "mfa_image" field.

func MfaSecret

func MfaSecret(v string) predicate.User

MfaSecret applies equality check predicate on the "mfa_secret" field. It's identical to MfaSecretEQ.

func MfaSecretContains

func MfaSecretContains(v string) predicate.User

MfaSecretContains applies the Contains predicate on the "mfa_secret" field.

func MfaSecretContainsFold

func MfaSecretContainsFold(v string) predicate.User

MfaSecretContainsFold applies the ContainsFold predicate on the "mfa_secret" field.

func MfaSecretEQ

func MfaSecretEQ(v string) predicate.User

MfaSecretEQ applies the EQ predicate on the "mfa_secret" field.

func MfaSecretEqualFold

func MfaSecretEqualFold(v string) predicate.User

MfaSecretEqualFold applies the EqualFold predicate on the "mfa_secret" field.

func MfaSecretGT

func MfaSecretGT(v string) predicate.User

MfaSecretGT applies the GT predicate on the "mfa_secret" field.

func MfaSecretGTE

func MfaSecretGTE(v string) predicate.User

MfaSecretGTE applies the GTE predicate on the "mfa_secret" field.

func MfaSecretHasPrefix

func MfaSecretHasPrefix(v string) predicate.User

MfaSecretHasPrefix applies the HasPrefix predicate on the "mfa_secret" field.

func MfaSecretHasSuffix

func MfaSecretHasSuffix(v string) predicate.User

MfaSecretHasSuffix applies the HasSuffix predicate on the "mfa_secret" field.

func MfaSecretIn

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

MfaSecretIn applies the In predicate on the "mfa_secret" field.

func MfaSecretIsNil

func MfaSecretIsNil() predicate.User

MfaSecretIsNil applies the IsNil predicate on the "mfa_secret" field.

func MfaSecretLT

func MfaSecretLT(v string) predicate.User

MfaSecretLT applies the LT predicate on the "mfa_secret" field.

func MfaSecretLTE

func MfaSecretLTE(v string) predicate.User

MfaSecretLTE applies the LTE predicate on the "mfa_secret" field.

func MfaSecretNEQ

func MfaSecretNEQ(v string) predicate.User

MfaSecretNEQ applies the NEQ predicate on the "mfa_secret" field.

func MfaSecretNotIn

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

MfaSecretNotIn applies the NotIn predicate on the "mfa_secret" field.

func MfaSecretNotNil

func MfaSecretNotNil() predicate.User

MfaSecretNotNil applies the NotNil predicate on the "mfa_secret" field.

func MfaSetupCompleted

func MfaSetupCompleted(v bool) predicate.User

MfaSetupCompleted applies equality check predicate on the "mfa_setup_completed" field. It's identical to MfaSetupCompletedEQ.

func MfaSetupCompletedEQ

func MfaSetupCompletedEQ(v bool) predicate.User

MfaSetupCompletedEQ applies the EQ predicate on the "mfa_setup_completed" field.

func MfaSetupCompletedNEQ

func MfaSetupCompletedNEQ(v bool) predicate.User

MfaSetupCompletedNEQ applies the NEQ predicate on the "mfa_setup_completed" field.

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups predicates with the OR operator between them.

func PasswordLastSetAt

func PasswordLastSetAt(v time.Time) predicate.User

PasswordLastSetAt applies equality check predicate on the "password_last_set_at" field. It's identical to PasswordLastSetAtEQ.

func PasswordLastSetAtEQ

func PasswordLastSetAtEQ(v time.Time) predicate.User

PasswordLastSetAtEQ applies the EQ predicate on the "password_last_set_at" field.

func PasswordLastSetAtGT

func PasswordLastSetAtGT(v time.Time) predicate.User

PasswordLastSetAtGT applies the GT predicate on the "password_last_set_at" field.

func PasswordLastSetAtGTE

func PasswordLastSetAtGTE(v time.Time) predicate.User

PasswordLastSetAtGTE applies the GTE predicate on the "password_last_set_at" field.

func PasswordLastSetAtIn

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

PasswordLastSetAtIn applies the In predicate on the "password_last_set_at" field.

func PasswordLastSetAtLT

func PasswordLastSetAtLT(v time.Time) predicate.User

PasswordLastSetAtLT applies the LT predicate on the "password_last_set_at" field.

func PasswordLastSetAtLTE

func PasswordLastSetAtLTE(v time.Time) predicate.User

PasswordLastSetAtLTE applies the LTE predicate on the "password_last_set_at" field.

func PasswordLastSetAtNEQ

func PasswordLastSetAtNEQ(v time.Time) predicate.User

PasswordLastSetAtNEQ applies the NEQ predicate on the "password_last_set_at" field.

func PasswordLastSetAtNotIn

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

PasswordLastSetAtNotIn applies the NotIn predicate on the "password_last_set_at" field.

func RecentPasswordsIsNil

func RecentPasswordsIsNil() predicate.User

RecentPasswordsIsNil applies the IsNil predicate on the "recent_passwords" field.

func RecentPasswordsNotNil

func RecentPasswordsNotNil() predicate.User

RecentPasswordsNotNil applies the NotNil predicate on the "recent_passwords" field.

func Role

func Role(v string) predicate.User

Role applies equality check predicate on the "role" field. It's identical to RoleEQ.

func RoleContains

func RoleContains(v string) predicate.User

RoleContains applies the Contains predicate on the "role" field.

func RoleContainsFold

func RoleContainsFold(v string) predicate.User

RoleContainsFold applies the ContainsFold predicate on the "role" field.

func RoleEQ

func RoleEQ(v string) predicate.User

RoleEQ applies the EQ predicate on the "role" field.

func RoleEqualFold

func RoleEqualFold(v string) predicate.User

RoleEqualFold applies the EqualFold predicate on the "role" field.

func RoleGT

func RoleGT(v string) predicate.User

RoleGT applies the GT predicate on the "role" field.

func RoleGTE

func RoleGTE(v string) predicate.User

RoleGTE applies the GTE predicate on the "role" field.

func RoleHasPrefix

func RoleHasPrefix(v string) predicate.User

RoleHasPrefix applies the HasPrefix predicate on the "role" field.

func RoleHasSuffix

func RoleHasSuffix(v string) predicate.User

RoleHasSuffix applies the HasSuffix predicate on the "role" field.

func RoleIn

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

RoleIn applies the In predicate on the "role" field.

func RoleLT

func RoleLT(v string) predicate.User

RoleLT applies the LT predicate on the "role" field.

func RoleLTE

func RoleLTE(v string) predicate.User

RoleLTE applies the LTE predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v string) predicate.User

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

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

RoleNotIn applies the NotIn predicate on the "role" field.

func Timezone

func Timezone(v string) predicate.User

Timezone applies equality check predicate on the "timezone" field. It's identical to TimezoneEQ.

func TimezoneContains

func TimezoneContains(v string) predicate.User

TimezoneContains applies the Contains predicate on the "timezone" field.

func TimezoneContainsFold

func TimezoneContainsFold(v string) predicate.User

TimezoneContainsFold applies the ContainsFold predicate on the "timezone" field.

func TimezoneEQ

func TimezoneEQ(v string) predicate.User

TimezoneEQ applies the EQ predicate on the "timezone" field.

func TimezoneEqualFold

func TimezoneEqualFold(v string) predicate.User

TimezoneEqualFold applies the EqualFold predicate on the "timezone" field.

func TimezoneGT

func TimezoneGT(v string) predicate.User

TimezoneGT applies the GT predicate on the "timezone" field.

func TimezoneGTE

func TimezoneGTE(v string) predicate.User

TimezoneGTE applies the GTE predicate on the "timezone" field.

func TimezoneHasPrefix

func TimezoneHasPrefix(v string) predicate.User

TimezoneHasPrefix applies the HasPrefix predicate on the "timezone" field.

func TimezoneHasSuffix

func TimezoneHasSuffix(v string) predicate.User

TimezoneHasSuffix applies the HasSuffix predicate on the "timezone" field.

func TimezoneIn

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

TimezoneIn applies the In predicate on the "timezone" field.

func TimezoneIsNil

func TimezoneIsNil() predicate.User

TimezoneIsNil applies the IsNil predicate on the "timezone" field.

func TimezoneLT

func TimezoneLT(v string) predicate.User

TimezoneLT applies the LT predicate on the "timezone" field.

func TimezoneLTE

func TimezoneLTE(v string) predicate.User

TimezoneLTE applies the LTE predicate on the "timezone" field.

func TimezoneNEQ

func TimezoneNEQ(v string) predicate.User

TimezoneNEQ applies the NEQ predicate on the "timezone" field.

func TimezoneNotIn

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

TimezoneNotIn applies the NotIn predicate on the "timezone" field.

func TimezoneNotNil

func TimezoneNotNil() predicate.User

TimezoneNotNil applies the NotNil predicate on the "timezone" 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

This section is empty.

Jump to

Keyboard shortcuts

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