user

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 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 = "id"
	// FieldCountryCallCoding holds the string denoting the country_call_coding field in the database.
	FieldCountryCallCoding = "country_call_coding"
	// FieldTelephoneNumber holds the string denoting the telephone_number field in the database.
	FieldTelephoneNumber = "telephone_number"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldCreateDate holds the string denoting the create_date field in the database.
	FieldCreateDate = "create_date"
	// FieldLastLoginDate holds the string denoting the last_login_date field in the database.
	FieldLastLoginDate = "last_login_date"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldIcon holds the string denoting the icon field in the database.
	FieldIcon = "icon"
	// FieldPwdConfig holds the string denoting the pwd_config field in the database.
	FieldPwdConfig = "pwd_config"
	// Table holds the table name of the user in the database.
	Table = "users"
)

Variables

View Source
var (
	// CountryCallCodingValidator is a validator for the "country_call_coding" field. It is called by the builders before save.
	CountryCallCodingValidator func(string) error
	// TelephoneNumberValidator is a validator for the "telephone_number" field. It is called by the builders before save.
	TelephoneNumberValidator func(string) error
	// PasswordValidator is a validator for the "password" field. It is called by the builders before save.
	PasswordValidator func(string) error
	// DefaultCreateDate holds the default value on creation for the "create_date" field.
	DefaultCreateDate func() time.Time
	// DefaultLastLoginDate holds the default value on creation for the "last_login_date" field.
	DefaultLastLoginDate func() time.Time
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultPwdConfig holds the default value on creation for the "pwd_config" field.
	DefaultPwdConfig 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 CountryCallCoding

func CountryCallCoding(v string) predicate.User

CountryCallCoding applies equality check predicate on the "country_call_coding" field. It's identical to CountryCallCodingEQ.

func CountryCallCodingContains

func CountryCallCodingContains(v string) predicate.User

CountryCallCodingContains applies the Contains predicate on the "country_call_coding" field.

func CountryCallCodingContainsFold

func CountryCallCodingContainsFold(v string) predicate.User

CountryCallCodingContainsFold applies the ContainsFold predicate on the "country_call_coding" field.

func CountryCallCodingEQ

func CountryCallCodingEQ(v string) predicate.User

CountryCallCodingEQ applies the EQ predicate on the "country_call_coding" field.

func CountryCallCodingEqualFold

func CountryCallCodingEqualFold(v string) predicate.User

CountryCallCodingEqualFold applies the EqualFold predicate on the "country_call_coding" field.

func CountryCallCodingGT

func CountryCallCodingGT(v string) predicate.User

CountryCallCodingGT applies the GT predicate on the "country_call_coding" field.

func CountryCallCodingGTE

func CountryCallCodingGTE(v string) predicate.User

CountryCallCodingGTE applies the GTE predicate on the "country_call_coding" field.

func CountryCallCodingHasPrefix

func CountryCallCodingHasPrefix(v string) predicate.User

CountryCallCodingHasPrefix applies the HasPrefix predicate on the "country_call_coding" field.

func CountryCallCodingHasSuffix

func CountryCallCodingHasSuffix(v string) predicate.User

CountryCallCodingHasSuffix applies the HasSuffix predicate on the "country_call_coding" field.

func CountryCallCodingIn

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

CountryCallCodingIn applies the In predicate on the "country_call_coding" field.

func CountryCallCodingLT

func CountryCallCodingLT(v string) predicate.User

CountryCallCodingLT applies the LT predicate on the "country_call_coding" field.

func CountryCallCodingLTE

func CountryCallCodingLTE(v string) predicate.User

CountryCallCodingLTE applies the LTE predicate on the "country_call_coding" field.

func CountryCallCodingNEQ

func CountryCallCodingNEQ(v string) predicate.User

CountryCallCodingNEQ applies the NEQ predicate on the "country_call_coding" field.

func CountryCallCodingNotIn

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

CountryCallCodingNotIn applies the NotIn predicate on the "country_call_coding" field.

func CreateDate

func CreateDate(v time.Time) predicate.User

CreateDate applies equality check predicate on the "create_date" field. It's identical to CreateDateEQ.

func CreateDateEQ

func CreateDateEQ(v time.Time) predicate.User

CreateDateEQ applies the EQ predicate on the "create_date" field.

func CreateDateGT

func CreateDateGT(v time.Time) predicate.User

CreateDateGT applies the GT predicate on the "create_date" field.

func CreateDateGTE

func CreateDateGTE(v time.Time) predicate.User

CreateDateGTE applies the GTE predicate on the "create_date" field.

func CreateDateIn

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

CreateDateIn applies the In predicate on the "create_date" field.

func CreateDateLT

func CreateDateLT(v time.Time) predicate.User

CreateDateLT applies the LT predicate on the "create_date" field.

func CreateDateLTE

func CreateDateLTE(v time.Time) predicate.User

CreateDateLTE applies the LTE predicate on the "create_date" field.

func CreateDateNEQ

func CreateDateNEQ(v time.Time) predicate.User

CreateDateNEQ applies the NEQ predicate on the "create_date" field.

func CreateDateNotIn

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

CreateDateNotIn applies the NotIn predicate on the "create_date" 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 Icon

func Icon(v string) predicate.User

Icon applies equality check predicate on the "icon" field. It's identical to IconEQ.

func IconContains

func IconContains(v string) predicate.User

IconContains applies the Contains predicate on the "icon" field.

func IconContainsFold

func IconContainsFold(v string) predicate.User

IconContainsFold applies the ContainsFold predicate on the "icon" field.

func IconEQ

func IconEQ(v string) predicate.User

IconEQ applies the EQ predicate on the "icon" field.

func IconEqualFold

func IconEqualFold(v string) predicate.User

IconEqualFold applies the EqualFold predicate on the "icon" field.

func IconGT

func IconGT(v string) predicate.User

IconGT applies the GT predicate on the "icon" field.

func IconGTE

func IconGTE(v string) predicate.User

IconGTE applies the GTE predicate on the "icon" field.

func IconHasPrefix

func IconHasPrefix(v string) predicate.User

IconHasPrefix applies the HasPrefix predicate on the "icon" field.

func IconHasSuffix

func IconHasSuffix(v string) predicate.User

IconHasSuffix applies the HasSuffix predicate on the "icon" field.

func IconIn

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

IconIn applies the In predicate on the "icon" field.

func IconLT

func IconLT(v string) predicate.User

IconLT applies the LT predicate on the "icon" field.

func IconLTE

func IconLTE(v string) predicate.User

IconLTE applies the LTE predicate on the "icon" field.

func IconNEQ

func IconNEQ(v string) predicate.User

IconNEQ applies the NEQ predicate on the "icon" field.

func IconNotIn

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

IconNotIn applies the NotIn predicate on the "icon" field.

func LastLoginDate

func LastLoginDate(v time.Time) predicate.User

LastLoginDate applies equality check predicate on the "last_login_date" field. It's identical to LastLoginDateEQ.

func LastLoginDateEQ

func LastLoginDateEQ(v time.Time) predicate.User

LastLoginDateEQ applies the EQ predicate on the "last_login_date" field.

func LastLoginDateGT

func LastLoginDateGT(v time.Time) predicate.User

LastLoginDateGT applies the GT predicate on the "last_login_date" field.

func LastLoginDateGTE

func LastLoginDateGTE(v time.Time) predicate.User

LastLoginDateGTE applies the GTE predicate on the "last_login_date" field.

func LastLoginDateIn

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

LastLoginDateIn applies the In predicate on the "last_login_date" field.

func LastLoginDateLT

func LastLoginDateLT(v time.Time) predicate.User

LastLoginDateLT applies the LT predicate on the "last_login_date" field.

func LastLoginDateLTE

func LastLoginDateLTE(v time.Time) predicate.User

LastLoginDateLTE applies the LTE predicate on the "last_login_date" field.

func LastLoginDateNEQ

func LastLoginDateNEQ(v time.Time) predicate.User

LastLoginDateNEQ applies the NEQ predicate on the "last_login_date" field.

func LastLoginDateNotIn

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

LastLoginDateNotIn applies the NotIn predicate on the "last_login_date" 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 Or

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

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.User

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains

func PasswordContains(v string) predicate.User

PasswordContains applies the Contains predicate on the "password" field.

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.User

PasswordContainsFold applies the ContainsFold predicate on the "password" field.

func PasswordEQ

func PasswordEQ(v string) predicate.User

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.User

PasswordEqualFold applies the EqualFold predicate on the "password" field.

func PasswordGT

func PasswordGT(v string) predicate.User

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v string) predicate.User

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.User

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.User

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn

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

PasswordIn applies the In predicate on the "password" field.

func PasswordLT

func PasswordLT(v string) predicate.User

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v string) predicate.User

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v string) predicate.User

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

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

PasswordNotIn applies the NotIn predicate on the "password" field.

func PwdConfig added in v0.0.3

func PwdConfig(v bool) predicate.User

PwdConfig applies equality check predicate on the "pwd_config" field. It's identical to PwdConfigEQ.

func PwdConfigEQ added in v0.0.3

func PwdConfigEQ(v bool) predicate.User

PwdConfigEQ applies the EQ predicate on the "pwd_config" field.

func PwdConfigNEQ added in v0.0.3

func PwdConfigNEQ(v bool) predicate.User

PwdConfigNEQ applies the NEQ predicate on the "pwd_config" field.

func TelephoneNumber

func TelephoneNumber(v string) predicate.User

TelephoneNumber applies equality check predicate on the "telephone_number" field. It's identical to TelephoneNumberEQ.

func TelephoneNumberContains

func TelephoneNumberContains(v string) predicate.User

TelephoneNumberContains applies the Contains predicate on the "telephone_number" field.

func TelephoneNumberContainsFold

func TelephoneNumberContainsFold(v string) predicate.User

TelephoneNumberContainsFold applies the ContainsFold predicate on the "telephone_number" field.

func TelephoneNumberEQ

func TelephoneNumberEQ(v string) predicate.User

TelephoneNumberEQ applies the EQ predicate on the "telephone_number" field.

func TelephoneNumberEqualFold

func TelephoneNumberEqualFold(v string) predicate.User

TelephoneNumberEqualFold applies the EqualFold predicate on the "telephone_number" field.

func TelephoneNumberGT

func TelephoneNumberGT(v string) predicate.User

TelephoneNumberGT applies the GT predicate on the "telephone_number" field.

func TelephoneNumberGTE

func TelephoneNumberGTE(v string) predicate.User

TelephoneNumberGTE applies the GTE predicate on the "telephone_number" field.

func TelephoneNumberHasPrefix

func TelephoneNumberHasPrefix(v string) predicate.User

TelephoneNumberHasPrefix applies the HasPrefix predicate on the "telephone_number" field.

func TelephoneNumberHasSuffix

func TelephoneNumberHasSuffix(v string) predicate.User

TelephoneNumberHasSuffix applies the HasSuffix predicate on the "telephone_number" field.

func TelephoneNumberIn

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

TelephoneNumberIn applies the In predicate on the "telephone_number" field.

func TelephoneNumberLT

func TelephoneNumberLT(v string) predicate.User

TelephoneNumberLT applies the LT predicate on the "telephone_number" field.

func TelephoneNumberLTE

func TelephoneNumberLTE(v string) predicate.User

TelephoneNumberLTE applies the LTE predicate on the "telephone_number" field.

func TelephoneNumberNEQ

func TelephoneNumberNEQ(v string) predicate.User

TelephoneNumberNEQ applies the NEQ predicate on the "telephone_number" field.

func TelephoneNumberNotIn

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

TelephoneNumberNotIn applies the NotIn predicate on the "telephone_number" 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 ByCountryCallCoding

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

ByCountryCallCoding orders the results by the country_call_coding field.

func ByCreateDate

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

ByCreateDate orders the results by the create_date field.

func ByID

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

ByID orders the results by the id field.

func ByIcon

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

ByIcon orders the results by the icon field.

func ByLastLoginDate

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

ByLastLoginDate orders the results by the last_login_date field.

func ByName

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

ByName orders the results by the name field.

func ByPassword

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

ByPassword orders the results by the password field.

func ByPwdConfig added in v0.0.3

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

ByPwdConfig orders the results by the pwd_config field.

func ByTelephoneNumber

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

ByTelephoneNumber orders the results by the telephone_number field.

Jump to

Keyboard shortcuts

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