customer

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 customer type in the database.
	Label = "customer"
	// 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"
	// FieldNickName holds the string denoting the nick_name field in the database.
	FieldNickName = "nick_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"
	// EdgeWechats holds the string denoting the wechats edge name in mutations.
	EdgeWechats = "wechats"
	// Table holds the table name of the customer in the database.
	Table = "customers"
	// WechatsTable is the table the holds the wechats relation/edge.
	WechatsTable = "wechats"
	// WechatsInverseTable is the table name for the Wechat entity.
	// It exists in this package in order to avoid circular dependency with the "wechat" package.
	WechatsInverseTable = "wechats"
	// WechatsColumn is the table column denoting the wechats relation/edge.
	WechatsColumn = "customer_wechats"
)
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
	// DefaultNickName holds the default value on creation for the "nick_name" field.
	DefaultNickName 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 customer fields.

Functions

func Account

func Account(v string) predicate.Customer

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

func AccountContains

func AccountContains(v string) predicate.Customer

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

func AccountContainsFold

func AccountContainsFold(v string) predicate.Customer

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

func AccountEQ

func AccountEQ(v string) predicate.Customer

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

func AccountEqualFold

func AccountEqualFold(v string) predicate.Customer

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

func AccountGT

func AccountGT(v string) predicate.Customer

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

func AccountGTE

func AccountGTE(v string) predicate.Customer

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

func AccountHasPrefix

func AccountHasPrefix(v string) predicate.Customer

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

func AccountHasSuffix

func AccountHasSuffix(v string) predicate.Customer

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

func AccountIn

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

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

func AccountLT

func AccountLT(v string) predicate.Customer

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

func AccountLTE

func AccountLTE(v string) predicate.Customer

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

func AccountNEQ

func AccountNEQ(v string) predicate.Customer

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

func AccountNotIn

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

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

func And

func And(predicates ...predicate.Customer) predicate.Customer

And groups predicates with the AND operator between them.

func Avatar

func Avatar(v string) predicate.Customer

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

func AvatarContains

func AvatarContains(v string) predicate.Customer

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

func AvatarContainsFold

func AvatarContainsFold(v string) predicate.Customer

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

func AvatarEQ

func AvatarEQ(v string) predicate.Customer

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

func AvatarEqualFold

func AvatarEqualFold(v string) predicate.Customer

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

func AvatarGT

func AvatarGT(v string) predicate.Customer

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

func AvatarGTE

func AvatarGTE(v string) predicate.Customer

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

func AvatarHasPrefix

func AvatarHasPrefix(v string) predicate.Customer

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

func AvatarHasSuffix

func AvatarHasSuffix(v string) predicate.Customer

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

func AvatarIn

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

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

func AvatarIsNil

func AvatarIsNil() predicate.Customer

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

func AvatarLT

func AvatarLT(v string) predicate.Customer

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

func AvatarLTE

func AvatarLTE(v string) predicate.Customer

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

func AvatarNEQ

func AvatarNEQ(v string) predicate.Customer

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

func AvatarNotIn

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

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

func AvatarNotNil

func AvatarNotNil() predicate.Customer

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

func Birthday

func Birthday(v time.Time) predicate.Customer

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

func BirthdayEQ

func BirthdayEQ(v time.Time) predicate.Customer

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

func BirthdayGT

func BirthdayGT(v time.Time) predicate.Customer

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

func BirthdayGTE

func BirthdayGTE(v time.Time) predicate.Customer

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

func BirthdayIn

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

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

func BirthdayIsNil

func BirthdayIsNil() predicate.Customer

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

func BirthdayLT

func BirthdayLT(v time.Time) predicate.Customer

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

func BirthdayLTE

func BirthdayLTE(v time.Time) predicate.Customer

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

func BirthdayNEQ

func BirthdayNEQ(v time.Time) predicate.Customer

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

func BirthdayNotIn

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

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

func BirthdayNotNil

func BirthdayNotNil() predicate.Customer

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

func CreateTime

func CreateTime(v time.Time) predicate.Customer

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Customer

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Customer

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Customer

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Customer

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Customer

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Customer

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

func CreateTimeNotIn

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

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

func Email

func Email(v string) predicate.Customer

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

func EmailContains

func EmailContains(v string) predicate.Customer

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.Customer

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

func EmailEQ

func EmailEQ(v string) predicate.Customer

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.Customer

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

func EmailGT

func EmailGT(v string) predicate.Customer

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

func EmailGTE

func EmailGTE(v string) predicate.Customer

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.Customer

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.Customer

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

func EmailIn

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

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

func EmailLT

func EmailLT(v string) predicate.Customer

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

func EmailLTE

func EmailLTE(v string) predicate.Customer

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

func EmailNEQ

func EmailNEQ(v string) predicate.Customer

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

func EmailNotIn

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

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

func HasWechats

func HasWechats() predicate.Customer

HasWechats applies the HasEdge predicate on the "wechats" edge.

func HasWechatsWith

func HasWechatsWith(preds ...predicate.Wechat) predicate.Customer

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

func ID

func ID(id int64) predicate.Customer

ID filters vertices based on their ID field.

func IDCard

func IDCard(v string) predicate.Customer

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

func IDCardContains

func IDCardContains(v string) predicate.Customer

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

func IDCardContainsFold

func IDCardContainsFold(v string) predicate.Customer

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

func IDCardEQ

func IDCardEQ(v string) predicate.Customer

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

func IDCardEqualFold

func IDCardEqualFold(v string) predicate.Customer

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

func IDCardGT

func IDCardGT(v string) predicate.Customer

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

func IDCardGTE

func IDCardGTE(v string) predicate.Customer

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

func IDCardHasPrefix

func IDCardHasPrefix(v string) predicate.Customer

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

func IDCardHasSuffix

func IDCardHasSuffix(v string) predicate.Customer

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

func IDCardIn

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

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

func IDCardIsNil

func IDCardIsNil() predicate.Customer

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

func IDCardLT

func IDCardLT(v string) predicate.Customer

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

func IDCardLTE

func IDCardLTE(v string) predicate.Customer

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

func IDCardNEQ

func IDCardNEQ(v string) predicate.Customer

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

func IDCardNotIn

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

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

func IDCardNotNil

func IDCardNotNil() predicate.Customer

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

func IDEQ

func IDEQ(id int64) predicate.Customer

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Customer

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Customer

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Customer

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Customer

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Customer

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func LastIP

func LastIP(v string) predicate.Customer

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

func LastIPContains

func LastIPContains(v string) predicate.Customer

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

func LastIPContainsFold

func LastIPContainsFold(v string) predicate.Customer

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

func LastIPEQ

func LastIPEQ(v string) predicate.Customer

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

func LastIPEqualFold

func LastIPEqualFold(v string) predicate.Customer

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

func LastIPGT

func LastIPGT(v string) predicate.Customer

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

func LastIPGTE

func LastIPGTE(v string) predicate.Customer

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

func LastIPHasPrefix

func LastIPHasPrefix(v string) predicate.Customer

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

func LastIPHasSuffix

func LastIPHasSuffix(v string) predicate.Customer

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

func LastIPIn

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

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

func LastIPIsNil

func LastIPIsNil() predicate.Customer

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

func LastIPLT

func LastIPLT(v string) predicate.Customer

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

func LastIPLTE

func LastIPLTE(v string) predicate.Customer

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

func LastIPNEQ

func LastIPNEQ(v string) predicate.Customer

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

func LastIPNotIn

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

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

func LastIPNotNil

func LastIPNotNil() predicate.Customer

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

func LastTime

func LastTime(v time.Time) predicate.Customer

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

func LastTimeEQ

func LastTimeEQ(v time.Time) predicate.Customer

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

func LastTimeGT

func LastTimeGT(v time.Time) predicate.Customer

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

func LastTimeGTE

func LastTimeGTE(v time.Time) predicate.Customer

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

func LastTimeIn

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

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

func LastTimeIsNil

func LastTimeIsNil() predicate.Customer

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

func LastTimeLT

func LastTimeLT(v time.Time) predicate.Customer

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

func LastTimeLTE

func LastTimeLTE(v time.Time) predicate.Customer

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

func LastTimeNEQ

func LastTimeNEQ(v time.Time) predicate.Customer

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

func LastTimeNotIn

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

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

func LastTimeNotNil

func LastTimeNotNil() predicate.Customer

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

func Mobile

func Mobile(v string) predicate.Customer

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

func MobileContains

func MobileContains(v string) predicate.Customer

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

func MobileContainsFold

func MobileContainsFold(v string) predicate.Customer

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

func MobileEQ

func MobileEQ(v string) predicate.Customer

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

func MobileEqualFold

func MobileEqualFold(v string) predicate.Customer

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

func MobileGT

func MobileGT(v string) predicate.Customer

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

func MobileGTE

func MobileGTE(v string) predicate.Customer

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

func MobileHasPrefix

func MobileHasPrefix(v string) predicate.Customer

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

func MobileHasSuffix

func MobileHasSuffix(v string) predicate.Customer

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

func MobileIn

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

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

func MobileIsNil

func MobileIsNil() predicate.Customer

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

func MobileLT

func MobileLT(v string) predicate.Customer

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

func MobileLTE

func MobileLTE(v string) predicate.Customer

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

func MobileNEQ

func MobileNEQ(v string) predicate.Customer

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

func MobileNotIn

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

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

func MobileNotNil

func MobileNotNil() predicate.Customer

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

func Name

func Name(v string) predicate.Customer

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

func NameContains

func NameContains(v string) predicate.Customer

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

func NameContainsFold

func NameContainsFold(v string) predicate.Customer

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

func NameEQ

func NameEQ(v string) predicate.Customer

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

func NameEqualFold

func NameEqualFold(v string) predicate.Customer

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

func NameGT

func NameGT(v string) predicate.Customer

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

func NameGTE

func NameGTE(v string) predicate.Customer

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

func NameHasPrefix

func NameHasPrefix(v string) predicate.Customer

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

func NameHasSuffix

func NameHasSuffix(v string) predicate.Customer

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

func NameIn

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

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

func NameIsNil

func NameIsNil() predicate.Customer

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

func NameLT

func NameLT(v string) predicate.Customer

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

func NameLTE

func NameLTE(v string) predicate.Customer

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

func NameNEQ

func NameNEQ(v string) predicate.Customer

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

func NameNotIn

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

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

func NameNotNil

func NameNotNil() predicate.Customer

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

func NickName

func NickName(v string) predicate.Customer

NickName applies equality check predicate on the "nick_name" field. It's identical to NickNameEQ.

func NickNameContains

func NickNameContains(v string) predicate.Customer

NickNameContains applies the Contains predicate on the "nick_name" field.

func NickNameContainsFold

func NickNameContainsFold(v string) predicate.Customer

NickNameContainsFold applies the ContainsFold predicate on the "nick_name" field.

func NickNameEQ

func NickNameEQ(v string) predicate.Customer

NickNameEQ applies the EQ predicate on the "nick_name" field.

func NickNameEqualFold

func NickNameEqualFold(v string) predicate.Customer

NickNameEqualFold applies the EqualFold predicate on the "nick_name" field.

func NickNameGT

func NickNameGT(v string) predicate.Customer

NickNameGT applies the GT predicate on the "nick_name" field.

func NickNameGTE

func NickNameGTE(v string) predicate.Customer

NickNameGTE applies the GTE predicate on the "nick_name" field.

func NickNameHasPrefix

func NickNameHasPrefix(v string) predicate.Customer

NickNameHasPrefix applies the HasPrefix predicate on the "nick_name" field.

func NickNameHasSuffix

func NickNameHasSuffix(v string) predicate.Customer

NickNameHasSuffix applies the HasSuffix predicate on the "nick_name" field.

func NickNameIn

func NickNameIn(vs ...string) predicate.Customer

NickNameIn applies the In predicate on the "nick_name" field.

func NickNameIsNil

func NickNameIsNil() predicate.Customer

NickNameIsNil applies the IsNil predicate on the "nick_name" field.

func NickNameLT

func NickNameLT(v string) predicate.Customer

NickNameLT applies the LT predicate on the "nick_name" field.

func NickNameLTE

func NickNameLTE(v string) predicate.Customer

NickNameLTE applies the LTE predicate on the "nick_name" field.

func NickNameNEQ

func NickNameNEQ(v string) predicate.Customer

NickNameNEQ applies the NEQ predicate on the "nick_name" field.

func NickNameNotIn

func NickNameNotIn(vs ...string) predicate.Customer

NickNameNotIn applies the NotIn predicate on the "nick_name" field.

func NickNameNotNil

func NickNameNotNil() predicate.Customer

NickNameNotNil applies the NotNil predicate on the "nick_name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Customer) predicate.Customer

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.Customer

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

func PasswordContains

func PasswordContains(v string) predicate.Customer

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

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.Customer

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

func PasswordEQ

func PasswordEQ(v string) predicate.Customer

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

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.Customer

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

func PasswordGT

func PasswordGT(v string) predicate.Customer

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

func PasswordGTE

func PasswordGTE(v string) predicate.Customer

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

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.Customer

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

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.Customer

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

func PasswordIn

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

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

func PasswordLT

func PasswordLT(v string) predicate.Customer

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

func PasswordLTE

func PasswordLTE(v string) predicate.Customer

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

func PasswordNEQ

func PasswordNEQ(v string) predicate.Customer

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

func PasswordNotIn

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

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

func Salt

func Salt(v string) predicate.Customer

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

func SaltContains

func SaltContains(v string) predicate.Customer

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

func SaltContainsFold

func SaltContainsFold(v string) predicate.Customer

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

func SaltEQ

func SaltEQ(v string) predicate.Customer

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

func SaltEqualFold

func SaltEqualFold(v string) predicate.Customer

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

func SaltGT

func SaltGT(v string) predicate.Customer

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

func SaltGTE

func SaltGTE(v string) predicate.Customer

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

func SaltHasPrefix

func SaltHasPrefix(v string) predicate.Customer

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

func SaltHasSuffix

func SaltHasSuffix(v string) predicate.Customer

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

func SaltIn

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

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

func SaltLT

func SaltLT(v string) predicate.Customer

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

func SaltLTE

func SaltLTE(v string) predicate.Customer

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

func SaltNEQ

func SaltNEQ(v string) predicate.Customer

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

func SaltNotIn

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

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

func SexEQ

func SexEQ(v Sex) predicate.Customer

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

func SexIn

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

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

func SexNEQ

func SexNEQ(v Sex) predicate.Customer

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

func SexNotIn

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

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.Customer

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

func UUIDEQ

func UUIDEQ(v uuid.UUID) predicate.Customer

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

func UUIDGT

func UUIDGT(v uuid.UUID) predicate.Customer

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

func UUIDGTE

func UUIDGTE(v uuid.UUID) predicate.Customer

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

func UUIDIn

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

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

func UUIDLT

func UUIDLT(v uuid.UUID) predicate.Customer

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

func UUIDLTE

func UUIDLTE(v uuid.UUID) predicate.Customer

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

func UUIDNEQ

func UUIDNEQ(v uuid.UUID) predicate.Customer

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

func UUIDNotIn

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

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

func UpdateTime

func UpdateTime(v time.Time) predicate.Customer

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Customer

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Customer

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Customer

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Customer

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Customer

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Customer

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

func UpdateTimeNotIn

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

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