employee

package
v0.0.0-...-a2c21a8 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the employee type in the database.
	Label = "employee"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// FieldSex holds the string denoting the sex field in the database.
	FieldSex = "sex"
	// FieldUUID holds the string denoting the uuid field in the database.
	FieldUUID = "uuid"
	// FieldAccount holds the string denoting the account field in the database.
	FieldAccount = "account"
	// FieldAvatar holds the string denoting the avatar field in the database.
	FieldAvatar = "avatar"
	// 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"
	// FieldMobile holds the string denoting the mobile field in the database.
	FieldMobile = "mobile"
	// FieldIDCard holds the string denoting the id_card field in the database.
	FieldIDCard = "id_card"
	// FieldBirthday holds the string denoting the birthday field in the database.
	FieldBirthday = "birthday"
	// FieldPassword holds the string denoting the password field in the database.
	FieldPassword = "password"
	// FieldSalt holds the string denoting the salt field in the database.
	FieldSalt = "salt"
	// FieldLastIP holds the string denoting the last_ip field in the database.
	FieldLastIP = "last_ip"
	// FieldLastTime holds the string denoting the last_time field in the database.
	FieldLastTime = "last_time"
	// EdgeRoles holds the string denoting the roles edge name in mutations.
	EdgeRoles = "roles"
	// Table holds the table name of the employee in the database.
	Table = "employees"
	// RolesTable is the table the holds the roles relation/edge. The primary key declared below.
	RolesTable = "employee_roles"
	// RolesInverseTable is the table name for the Role entity.
	// It exists in this package in order to avoid circular dependency with the "role" package.
	RolesInverseTable = "roles"
)
View Source
const DefaultSex = SexUnknown

SexUnknown is the default value of the Sex enum.

Variables

View Source
var (
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime func() time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime func() time.Time
	// UpdateDefaultUpdateTime holds the default value on update for the "update_time" field.
	UpdateDefaultUpdateTime func() time.Time
	// DefaultUUID holds the default value on creation for the "uuid" field.
	DefaultUUID func() uuid.UUID
	// AccountValidator is a validator for the "account" field. It is called by the builders before save.
	AccountValidator func(string) error
	// DefaultName holds the default value on creation for the "name" field.
	DefaultName string
	// PasswordValidator is a validator for the "password" field. It is called by the builders before save.
	PasswordValidator func(string) error
	// SaltValidator is a validator for the "salt" field. It is called by the builders before save.
	SaltValidator func(string) error
)

Columns holds all SQL columns for employee fields.

View Source
var (
	// RolesPrimaryKey and RolesColumn2 are the table columns denoting the
	// primary key for the roles relation (M2M).
	RolesPrimaryKey = []string{"employee_id", "role_id"}
)

Functions

func Account

func Account(v string) predicate.Employee

Account applies equality check predicate on the "account" field. It's identical to AccountEQ.

func AccountContains

func AccountContains(v string) predicate.Employee

AccountContains applies the Contains predicate on the "account" field.

func AccountContainsFold

func AccountContainsFold(v string) predicate.Employee

AccountContainsFold applies the ContainsFold predicate on the "account" field.

func AccountEQ

func AccountEQ(v string) predicate.Employee

AccountEQ applies the EQ predicate on the "account" field.

func AccountEqualFold

func AccountEqualFold(v string) predicate.Employee

AccountEqualFold applies the EqualFold predicate on the "account" field.

func AccountGT

func AccountGT(v string) predicate.Employee

AccountGT applies the GT predicate on the "account" field.

func AccountGTE

func AccountGTE(v string) predicate.Employee

AccountGTE applies the GTE predicate on the "account" field.

func AccountHasPrefix

func AccountHasPrefix(v string) predicate.Employee

AccountHasPrefix applies the HasPrefix predicate on the "account" field.

func AccountHasSuffix

func AccountHasSuffix(v string) predicate.Employee

AccountHasSuffix applies the HasSuffix predicate on the "account" field.

func AccountIn

func AccountIn(vs ...string) predicate.Employee

AccountIn applies the In predicate on the "account" field.

func AccountLT

func AccountLT(v string) predicate.Employee

AccountLT applies the LT predicate on the "account" field.

func AccountLTE

func AccountLTE(v string) predicate.Employee

AccountLTE applies the LTE predicate on the "account" field.

func AccountNEQ

func AccountNEQ(v string) predicate.Employee

AccountNEQ applies the NEQ predicate on the "account" field.

func AccountNotIn

func AccountNotIn(vs ...string) predicate.Employee

AccountNotIn applies the NotIn predicate on the "account" field.

func And

func And(predicates ...predicate.Employee) predicate.Employee

And groups predicates with the AND operator between them.

func Avatar

func Avatar(v string) predicate.Employee

Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.

func AvatarContains

func AvatarContains(v string) predicate.Employee

AvatarContains applies the Contains predicate on the "avatar" field.

func AvatarContainsFold

func AvatarContainsFold(v string) predicate.Employee

AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.

func AvatarEQ

func AvatarEQ(v string) predicate.Employee

AvatarEQ applies the EQ predicate on the "avatar" field.

func AvatarEqualFold

func AvatarEqualFold(v string) predicate.Employee

AvatarEqualFold applies the EqualFold predicate on the "avatar" field.

func AvatarGT

func AvatarGT(v string) predicate.Employee

AvatarGT applies the GT predicate on the "avatar" field.

func AvatarGTE

func AvatarGTE(v string) predicate.Employee

AvatarGTE applies the GTE predicate on the "avatar" field.

func AvatarHasPrefix

func AvatarHasPrefix(v string) predicate.Employee

AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.

func AvatarHasSuffix

func AvatarHasSuffix(v string) predicate.Employee

AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.

func AvatarIn

func AvatarIn(vs ...string) predicate.Employee

AvatarIn applies the In predicate on the "avatar" field.

func AvatarIsNil

func AvatarIsNil() predicate.Employee

AvatarIsNil applies the IsNil predicate on the "avatar" field.

func AvatarLT

func AvatarLT(v string) predicate.Employee

AvatarLT applies the LT predicate on the "avatar" field.

func AvatarLTE

func AvatarLTE(v string) predicate.Employee

AvatarLTE applies the LTE predicate on the "avatar" field.

func AvatarNEQ

func AvatarNEQ(v string) predicate.Employee

AvatarNEQ applies the NEQ predicate on the "avatar" field.

func AvatarNotIn

func AvatarNotIn(vs ...string) predicate.Employee

AvatarNotIn applies the NotIn predicate on the "avatar" field.

func AvatarNotNil

func AvatarNotNil() predicate.Employee

AvatarNotNil applies the NotNil predicate on the "avatar" field.

func Birthday

func Birthday(v time.Time) predicate.Employee

Birthday applies equality check predicate on the "birthday" field. It's identical to BirthdayEQ.

func BirthdayEQ

func BirthdayEQ(v time.Time) predicate.Employee

BirthdayEQ applies the EQ predicate on the "birthday" field.

func BirthdayGT

func BirthdayGT(v time.Time) predicate.Employee

BirthdayGT applies the GT predicate on the "birthday" field.

func BirthdayGTE

func BirthdayGTE(v time.Time) predicate.Employee

BirthdayGTE applies the GTE predicate on the "birthday" field.

func BirthdayIn

func BirthdayIn(vs ...time.Time) predicate.Employee

BirthdayIn applies the In predicate on the "birthday" field.

func BirthdayIsNil

func BirthdayIsNil() predicate.Employee

BirthdayIsNil applies the IsNil predicate on the "birthday" field.

func BirthdayLT

func BirthdayLT(v time.Time) predicate.Employee

BirthdayLT applies the LT predicate on the "birthday" field.

func BirthdayLTE

func BirthdayLTE(v time.Time) predicate.Employee

BirthdayLTE applies the LTE predicate on the "birthday" field.

func BirthdayNEQ

func BirthdayNEQ(v time.Time) predicate.Employee

BirthdayNEQ applies the NEQ predicate on the "birthday" field.

func BirthdayNotIn

func BirthdayNotIn(vs ...time.Time) predicate.Employee

BirthdayNotIn applies the NotIn predicate on the "birthday" field.

func BirthdayNotNil

func BirthdayNotNil() predicate.Employee

BirthdayNotNil applies the NotNil predicate on the "birthday" field.

func CreateTime

func CreateTime(v time.Time) predicate.Employee

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Employee

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Employee

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Employee

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.Employee

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Employee

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Employee

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Employee

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.Employee

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func Email

func Email(v string) predicate.Employee

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

func EmailContains

func EmailContains(v string) predicate.Employee

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.Employee

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

func EmailEQ

func EmailEQ(v string) predicate.Employee

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.Employee

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

func EmailGT

func EmailGT(v string) predicate.Employee

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

func EmailGTE

func EmailGTE(v string) predicate.Employee

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Employee

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Employee

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

func EmailIn

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

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

func EmailLT

func EmailLT(v string) predicate.Employee

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

func EmailLTE

func EmailLTE(v string) predicate.Employee

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

func EmailNEQ

func EmailNEQ(v string) predicate.Employee

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

func EmailNotIn

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

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

func HasRoles

func HasRoles() predicate.Employee

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

func HasRolesWith

func HasRolesWith(preds ...predicate.Role) predicate.Employee

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

func ID

func ID(id int64) predicate.Employee

ID filters vertices based on their ID field.

func IDCard

func IDCard(v string) predicate.Employee

IDCard applies equality check predicate on the "id_card" field. It's identical to IDCardEQ.

func IDCardContains

func IDCardContains(v string) predicate.Employee

IDCardContains applies the Contains predicate on the "id_card" field.

func IDCardContainsFold

func IDCardContainsFold(v string) predicate.Employee

IDCardContainsFold applies the ContainsFold predicate on the "id_card" field.

func IDCardEQ

func IDCardEQ(v string) predicate.Employee

IDCardEQ applies the EQ predicate on the "id_card" field.

func IDCardEqualFold

func IDCardEqualFold(v string) predicate.Employee

IDCardEqualFold applies the EqualFold predicate on the "id_card" field.

func IDCardGT

func IDCardGT(v string) predicate.Employee

IDCardGT applies the GT predicate on the "id_card" field.

func IDCardGTE

func IDCardGTE(v string) predicate.Employee

IDCardGTE applies the GTE predicate on the "id_card" field.

func IDCardHasPrefix

func IDCardHasPrefix(v string) predicate.Employee

IDCardHasPrefix applies the HasPrefix predicate on the "id_card" field.

func IDCardHasSuffix

func IDCardHasSuffix(v string) predicate.Employee

IDCardHasSuffix applies the HasSuffix predicate on the "id_card" field.

func IDCardIn

func IDCardIn(vs ...string) predicate.Employee

IDCardIn applies the In predicate on the "id_card" field.

func IDCardIsNil

func IDCardIsNil() predicate.Employee

IDCardIsNil applies the IsNil predicate on the "id_card" field.

func IDCardLT

func IDCardLT(v string) predicate.Employee

IDCardLT applies the LT predicate on the "id_card" field.

func IDCardLTE

func IDCardLTE(v string) predicate.Employee

IDCardLTE applies the LTE predicate on the "id_card" field.

func IDCardNEQ

func IDCardNEQ(v string) predicate.Employee

IDCardNEQ applies the NEQ predicate on the "id_card" field.

func IDCardNotIn

func IDCardNotIn(vs ...string) predicate.Employee

IDCardNotIn applies the NotIn predicate on the "id_card" field.

func IDCardNotNil

func IDCardNotNil() predicate.Employee

IDCardNotNil applies the NotNil predicate on the "id_card" field.

func IDEQ

func IDEQ(id int64) predicate.Employee

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Employee

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Employee

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int64) predicate.Employee

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Employee

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Employee

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Employee

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int64) predicate.Employee

IDNotIn applies the NotIn predicate on the ID field.

func LastIP

func LastIP(v string) predicate.Employee

LastIP applies equality check predicate on the "last_ip" field. It's identical to LastIPEQ.

func LastIPContains

func LastIPContains(v string) predicate.Employee

LastIPContains applies the Contains predicate on the "last_ip" field.

func LastIPContainsFold

func LastIPContainsFold(v string) predicate.Employee

LastIPContainsFold applies the ContainsFold predicate on the "last_ip" field.

func LastIPEQ

func LastIPEQ(v string) predicate.Employee

LastIPEQ applies the EQ predicate on the "last_ip" field.

func LastIPEqualFold

func LastIPEqualFold(v string) predicate.Employee

LastIPEqualFold applies the EqualFold predicate on the "last_ip" field.

func LastIPGT

func LastIPGT(v string) predicate.Employee

LastIPGT applies the GT predicate on the "last_ip" field.

func LastIPGTE

func LastIPGTE(v string) predicate.Employee

LastIPGTE applies the GTE predicate on the "last_ip" field.

func LastIPHasPrefix

func LastIPHasPrefix(v string) predicate.Employee

LastIPHasPrefix applies the HasPrefix predicate on the "last_ip" field.

func LastIPHasSuffix

func LastIPHasSuffix(v string) predicate.Employee

LastIPHasSuffix applies the HasSuffix predicate on the "last_ip" field.

func LastIPIn

func LastIPIn(vs ...string) predicate.Employee

LastIPIn applies the In predicate on the "last_ip" field.

func LastIPIsNil

func LastIPIsNil() predicate.Employee

LastIPIsNil applies the IsNil predicate on the "last_ip" field.

func LastIPLT

func LastIPLT(v string) predicate.Employee

LastIPLT applies the LT predicate on the "last_ip" field.

func LastIPLTE

func LastIPLTE(v string) predicate.Employee

LastIPLTE applies the LTE predicate on the "last_ip" field.

func LastIPNEQ

func LastIPNEQ(v string) predicate.Employee

LastIPNEQ applies the NEQ predicate on the "last_ip" field.

func LastIPNotIn

func LastIPNotIn(vs ...string) predicate.Employee

LastIPNotIn applies the NotIn predicate on the "last_ip" field.

func LastIPNotNil

func LastIPNotNil() predicate.Employee

LastIPNotNil applies the NotNil predicate on the "last_ip" field.

func LastTime

func LastTime(v time.Time) predicate.Employee

LastTime applies equality check predicate on the "last_time" field. It's identical to LastTimeEQ.

func LastTimeEQ

func LastTimeEQ(v time.Time) predicate.Employee

LastTimeEQ applies the EQ predicate on the "last_time" field.

func LastTimeGT

func LastTimeGT(v time.Time) predicate.Employee

LastTimeGT applies the GT predicate on the "last_time" field.

func LastTimeGTE

func LastTimeGTE(v time.Time) predicate.Employee

LastTimeGTE applies the GTE predicate on the "last_time" field.

func LastTimeIn

func LastTimeIn(vs ...time.Time) predicate.Employee

LastTimeIn applies the In predicate on the "last_time" field.

func LastTimeIsNil

func LastTimeIsNil() predicate.Employee

LastTimeIsNil applies the IsNil predicate on the "last_time" field.

func LastTimeLT

func LastTimeLT(v time.Time) predicate.Employee

LastTimeLT applies the LT predicate on the "last_time" field.

func LastTimeLTE

func LastTimeLTE(v time.Time) predicate.Employee

LastTimeLTE applies the LTE predicate on the "last_time" field.

func LastTimeNEQ

func LastTimeNEQ(v time.Time) predicate.Employee

LastTimeNEQ applies the NEQ predicate on the "last_time" field.

func LastTimeNotIn

func LastTimeNotIn(vs ...time.Time) predicate.Employee

LastTimeNotIn applies the NotIn predicate on the "last_time" field.

func LastTimeNotNil

func LastTimeNotNil() predicate.Employee

LastTimeNotNil applies the NotNil predicate on the "last_time" field.

func Mobile

func Mobile(v string) predicate.Employee

Mobile applies equality check predicate on the "mobile" field. It's identical to MobileEQ.

func MobileContains

func MobileContains(v string) predicate.Employee

MobileContains applies the Contains predicate on the "mobile" field.

func MobileContainsFold

func MobileContainsFold(v string) predicate.Employee

MobileContainsFold applies the ContainsFold predicate on the "mobile" field.

func MobileEQ

func MobileEQ(v string) predicate.Employee

MobileEQ applies the EQ predicate on the "mobile" field.

func MobileEqualFold

func MobileEqualFold(v string) predicate.Employee

MobileEqualFold applies the EqualFold predicate on the "mobile" field.

func MobileGT

func MobileGT(v string) predicate.Employee

MobileGT applies the GT predicate on the "mobile" field.

func MobileGTE

func MobileGTE(v string) predicate.Employee

MobileGTE applies the GTE predicate on the "mobile" field.

func MobileHasPrefix

func MobileHasPrefix(v string) predicate.Employee

MobileHasPrefix applies the HasPrefix predicate on the "mobile" field.

func MobileHasSuffix

func MobileHasSuffix(v string) predicate.Employee

MobileHasSuffix applies the HasSuffix predicate on the "mobile" field.

func MobileIn

func MobileIn(vs ...string) predicate.Employee

MobileIn applies the In predicate on the "mobile" field.

func MobileIsNil

func MobileIsNil() predicate.Employee

MobileIsNil applies the IsNil predicate on the "mobile" field.

func MobileLT

func MobileLT(v string) predicate.Employee

MobileLT applies the LT predicate on the "mobile" field.

func MobileLTE

func MobileLTE(v string) predicate.Employee

MobileLTE applies the LTE predicate on the "mobile" field.

func MobileNEQ

func MobileNEQ(v string) predicate.Employee

MobileNEQ applies the NEQ predicate on the "mobile" field.

func MobileNotIn

func MobileNotIn(vs ...string) predicate.Employee

MobileNotIn applies the NotIn predicate on the "mobile" field.

func MobileNotNil

func MobileNotNil() predicate.Employee

MobileNotNil applies the NotNil predicate on the "mobile" field.

func Name

func Name(v string) predicate.Employee

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

func NameContains

func NameContains(v string) predicate.Employee

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

func NameContainsFold

func NameContainsFold(v string) predicate.Employee

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

func NameEQ

func NameEQ(v string) predicate.Employee

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

func NameEqualFold

func NameEqualFold(v string) predicate.Employee

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

func NameGT

func NameGT(v string) predicate.Employee

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

func NameGTE

func NameGTE(v string) predicate.Employee

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Employee

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Employee

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

func NameIn

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

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

func NameIsNil

func NameIsNil() predicate.Employee

NameIsNil applies the IsNil predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Employee

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

func NameLTE

func NameLTE(v string) predicate.Employee

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

func NameNEQ

func NameNEQ(v string) predicate.Employee

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

func NameNotIn

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

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

func NameNotNil

func NameNotNil() predicate.Employee

NameNotNil applies the NotNil predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Employee) predicate.Employee

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.Employee

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

func PasswordContains

func PasswordContains(v string) predicate.Employee

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

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.Employee

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

func PasswordEQ

func PasswordEQ(v string) predicate.Employee

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

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.Employee

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

func PasswordGT

func PasswordGT(v string) predicate.Employee

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

func PasswordGTE

func PasswordGTE(v string) predicate.Employee

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

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.Employee

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

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.Employee

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

func PasswordIn

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

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

func PasswordLT

func PasswordLT(v string) predicate.Employee

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

func PasswordLTE

func PasswordLTE(v string) predicate.Employee

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

func PasswordNEQ

func PasswordNEQ(v string) predicate.Employee

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

func PasswordNotIn

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

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

func Salt

func Salt(v string) predicate.Employee

Salt applies equality check predicate on the "salt" field. It's identical to SaltEQ.

func SaltContains

func SaltContains(v string) predicate.Employee

SaltContains applies the Contains predicate on the "salt" field.

func SaltContainsFold

func SaltContainsFold(v string) predicate.Employee

SaltContainsFold applies the ContainsFold predicate on the "salt" field.

func SaltEQ

func SaltEQ(v string) predicate.Employee

SaltEQ applies the EQ predicate on the "salt" field.

func SaltEqualFold

func SaltEqualFold(v string) predicate.Employee

SaltEqualFold applies the EqualFold predicate on the "salt" field.

func SaltGT

func SaltGT(v string) predicate.Employee

SaltGT applies the GT predicate on the "salt" field.

func SaltGTE

func SaltGTE(v string) predicate.Employee

SaltGTE applies the GTE predicate on the "salt" field.

func SaltHasPrefix

func SaltHasPrefix(v string) predicate.Employee

SaltHasPrefix applies the HasPrefix predicate on the "salt" field.

func SaltHasSuffix

func SaltHasSuffix(v string) predicate.Employee

SaltHasSuffix applies the HasSuffix predicate on the "salt" field.

func SaltIn

func SaltIn(vs ...string) predicate.Employee

SaltIn applies the In predicate on the "salt" field.

func SaltLT

func SaltLT(v string) predicate.Employee

SaltLT applies the LT predicate on the "salt" field.

func SaltLTE

func SaltLTE(v string) predicate.Employee

SaltLTE applies the LTE predicate on the "salt" field.

func SaltNEQ

func SaltNEQ(v string) predicate.Employee

SaltNEQ applies the NEQ predicate on the "salt" field.

func SaltNotIn

func SaltNotIn(vs ...string) predicate.Employee

SaltNotIn applies the NotIn predicate on the "salt" field.

func SexEQ

func SexEQ(v Sex) predicate.Employee

SexEQ applies the EQ predicate on the "sex" field.

func SexIn

func SexIn(vs ...Sex) predicate.Employee

SexIn applies the In predicate on the "sex" field.

func SexNEQ

func SexNEQ(v Sex) predicate.Employee

SexNEQ applies the NEQ predicate on the "sex" field.

func SexNotIn

func SexNotIn(vs ...Sex) predicate.Employee

SexNotIn applies the NotIn predicate on the "sex" field.

func SexValidator

func SexValidator(s Sex) error

SexValidator is a validator for the "sex" field enum values. It is called by the builders before save.

func UUID

func UUID(v uuid.UUID) predicate.Employee

UUID applies equality check predicate on the "uuid" field. It's identical to UUIDEQ.

func UUIDEQ

func UUIDEQ(v uuid.UUID) predicate.Employee

UUIDEQ applies the EQ predicate on the "uuid" field.

func UUIDGT

func UUIDGT(v uuid.UUID) predicate.Employee

UUIDGT applies the GT predicate on the "uuid" field.

func UUIDGTE

func UUIDGTE(v uuid.UUID) predicate.Employee

UUIDGTE applies the GTE predicate on the "uuid" field.

func UUIDIn

func UUIDIn(vs ...uuid.UUID) predicate.Employee

UUIDIn applies the In predicate on the "uuid" field.

func UUIDLT

func UUIDLT(v uuid.UUID) predicate.Employee

UUIDLT applies the LT predicate on the "uuid" field.

func UUIDLTE

func UUIDLTE(v uuid.UUID) predicate.Employee

UUIDLTE applies the LTE predicate on the "uuid" field.

func UUIDNEQ

func UUIDNEQ(v uuid.UUID) predicate.Employee

UUIDNEQ applies the NEQ predicate on the "uuid" field.

func UUIDNotIn

func UUIDNotIn(vs ...uuid.UUID) predicate.Employee

UUIDNotIn applies the NotIn predicate on the "uuid" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Employee

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Employee

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Employee

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Employee

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.Employee

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Employee

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Employee

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Employee

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.Employee

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Sex

type Sex string

Sex defines the type for the "sex" enum field.

const (
	SexUnknown Sex = "unknown"
	SexMan     Sex = "man"
	SexWoman   Sex = "woman"
)

Sex values.

func (Sex) String

func (s Sex) String() string

Jump to

Keyboard shortcuts

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