Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Staff) predicate.Staff
- func Avatar(v string) predicate.Staff
- func AvatarContains(v string) predicate.Staff
- func AvatarContainsFold(v string) predicate.Staff
- func AvatarEQ(v string) predicate.Staff
- func AvatarEqualFold(v string) predicate.Staff
- func AvatarGT(v string) predicate.Staff
- func AvatarGTE(v string) predicate.Staff
- func AvatarHasPrefix(v string) predicate.Staff
- func AvatarHasSuffix(v string) predicate.Staff
- func AvatarIn(vs ...string) predicate.Staff
- func AvatarLT(v string) predicate.Staff
- func AvatarLTE(v string) predicate.Staff
- func AvatarNEQ(v string) predicate.Staff
- func AvatarNotIn(vs ...string) predicate.Staff
- func CreatedAt(v time.Time) predicate.Staff
- func CreatedAtEQ(v time.Time) predicate.Staff
- func CreatedAtGT(v time.Time) predicate.Staff
- func CreatedAtGTE(v time.Time) predicate.Staff
- func CreatedAtIn(vs ...time.Time) predicate.Staff
- func CreatedAtLT(v time.Time) predicate.Staff
- func CreatedAtLTE(v time.Time) predicate.Staff
- func CreatedAtNEQ(v time.Time) predicate.Staff
- func CreatedAtNotIn(vs ...time.Time) predicate.Staff
- func CreatedBy(v int64) predicate.Staff
- func CreatedByEQ(v int64) predicate.Staff
- func CreatedByGT(v int64) predicate.Staff
- func CreatedByGTE(v int64) predicate.Staff
- func CreatedByIn(vs ...int64) predicate.Staff
- func CreatedByLT(v int64) predicate.Staff
- func CreatedByLTE(v int64) predicate.Staff
- func CreatedByNEQ(v int64) predicate.Staff
- func CreatedByNotIn(vs ...int64) predicate.Staff
- func Email(v string) predicate.Staff
- func EmailContains(v string) predicate.Staff
- func EmailContainsFold(v string) predicate.Staff
- func EmailEQ(v string) predicate.Staff
- func EmailEqualFold(v string) predicate.Staff
- func EmailGT(v string) predicate.Staff
- func EmailGTE(v string) predicate.Staff
- func EmailHasPrefix(v string) predicate.Staff
- func EmailHasSuffix(v string) predicate.Staff
- func EmailIn(vs ...string) predicate.Staff
- func EmailLT(v string) predicate.Staff
- func EmailLTE(v string) predicate.Staff
- func EmailNEQ(v string) predicate.Staff
- func EmailNotIn(vs ...string) predicate.Staff
- func ID(id int64) predicate.Staff
- func IDEQ(id int64) predicate.Staff
- func IDGT(id int64) predicate.Staff
- func IDGTE(id int64) predicate.Staff
- func IDIn(ids ...int64) predicate.Staff
- func IDLT(id int64) predicate.Staff
- func IDLTE(id int64) predicate.Staff
- func IDNEQ(id int64) predicate.Staff
- func IDNotIn(ids ...int64) predicate.Staff
- func Name(v string) predicate.Staff
- func NameContains(v string) predicate.Staff
- func NameContainsFold(v string) predicate.Staff
- func NameEQ(v string) predicate.Staff
- func NameEqualFold(v string) predicate.Staff
- func NameGT(v string) predicate.Staff
- func NameGTE(v string) predicate.Staff
- func NameHasPrefix(v string) predicate.Staff
- func NameHasSuffix(v string) predicate.Staff
- func NameIn(vs ...string) predicate.Staff
- func NameLT(v string) predicate.Staff
- func NameLTE(v string) predicate.Staff
- func NameNEQ(v string) predicate.Staff
- func NameNotIn(vs ...string) predicate.Staff
- func Nickname(v string) predicate.Staff
- func NicknameContains(v string) predicate.Staff
- func NicknameContainsFold(v string) predicate.Staff
- func NicknameEQ(v string) predicate.Staff
- func NicknameEqualFold(v string) predicate.Staff
- func NicknameGT(v string) predicate.Staff
- func NicknameGTE(v string) predicate.Staff
- func NicknameHasPrefix(v string) predicate.Staff
- func NicknameHasSuffix(v string) predicate.Staff
- func NicknameIn(vs ...string) predicate.Staff
- func NicknameLT(v string) predicate.Staff
- func NicknameLTE(v string) predicate.Staff
- func NicknameNEQ(v string) predicate.Staff
- func NicknameNotIn(vs ...string) predicate.Staff
- func Not(p predicate.Staff) predicate.Staff
- func Or(predicates ...predicate.Staff) predicate.Staff
- func Phone(v string) predicate.Staff
- func PhoneContains(v string) predicate.Staff
- func PhoneContainsFold(v string) predicate.Staff
- func PhoneEQ(v string) predicate.Staff
- func PhoneEqualFold(v string) predicate.Staff
- func PhoneGT(v string) predicate.Staff
- func PhoneGTE(v string) predicate.Staff
- func PhoneHasPrefix(v string) predicate.Staff
- func PhoneHasSuffix(v string) predicate.Staff
- func PhoneIn(vs ...string) predicate.Staff
- func PhoneLT(v string) predicate.Staff
- func PhoneLTE(v string) predicate.Staff
- func PhoneNEQ(v string) predicate.Staff
- func PhoneNotIn(vs ...string) predicate.Staff
- func UID(v int64) predicate.Staff
- func UIDEQ(v int64) predicate.Staff
- func UIDGT(v int64) predicate.Staff
- func UIDGTE(v int64) predicate.Staff
- func UIDIn(vs ...int64) predicate.Staff
- func UIDLT(v int64) predicate.Staff
- func UIDLTE(v int64) predicate.Staff
- func UIDNEQ(v int64) predicate.Staff
- func UIDNotIn(vs ...int64) predicate.Staff
- func UpdatedAt(v time.Time) predicate.Staff
- func UpdatedAtEQ(v time.Time) predicate.Staff
- func UpdatedAtGT(v time.Time) predicate.Staff
- func UpdatedAtGTE(v time.Time) predicate.Staff
- func UpdatedAtIn(vs ...time.Time) predicate.Staff
- func UpdatedAtLT(v time.Time) predicate.Staff
- func UpdatedAtLTE(v time.Time) predicate.Staff
- func UpdatedAtNEQ(v time.Time) predicate.Staff
- func UpdatedAtNotIn(vs ...time.Time) predicate.Staff
- func UpdatedBy(v int64) predicate.Staff
- func UpdatedByEQ(v int64) predicate.Staff
- func UpdatedByGT(v int64) predicate.Staff
- func UpdatedByGTE(v int64) predicate.Staff
- func UpdatedByIn(vs ...int64) predicate.Staff
- func UpdatedByLT(v int64) predicate.Staff
- func UpdatedByLTE(v int64) predicate.Staff
- func UpdatedByNEQ(v int64) predicate.Staff
- func UpdatedByNotIn(vs ...int64) predicate.Staff
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the staff type in the database. Label = "staff" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldUID holds the string denoting the uid field in the database. FieldUID = "uid" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldNickname holds the string denoting the nickname field in the database. FieldNickname = "nickname" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // Table holds the table name of the staff in the database. Table = "staff" )
Variables ¶
var ( // DefaultUID holds the default value on creation for the "uid" field. DefaultUID int64 // DefaultName holds the default value on creation for the "name" field. DefaultName string // DefaultPhone holds the default value on creation for the "phone" field. DefaultPhone string // DefaultEmail holds the default value on creation for the "email" field. DefaultEmail string // DefaultNickname holds the default value on creation for the "nickname" field. DefaultNickname string // DefaultAvatar holds the default value on creation for the "avatar" field. DefaultAvatar string // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultCreatedBy holds the default value on creation for the "created_by" field. DefaultCreatedBy int64 // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultUpdatedBy holds the default value on creation for the "updated_by" field. DefaultUpdatedBy int64 )
var Columns = []string{ FieldID, FieldUID, FieldName, FieldPhone, FieldEmail, FieldNickname, FieldAvatar, FieldCreatedAt, FieldCreatedBy, FieldUpdatedAt, FieldUpdatedBy, }
Columns holds all SQL columns for staff fields.
Functions ¶
func Avatar ¶
Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
func AvatarContains ¶
AvatarContains applies the Contains predicate on the "avatar" field.
func AvatarContainsFold ¶
AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.
func AvatarEqualFold ¶
AvatarEqualFold applies the EqualFold predicate on the "avatar" field.
func AvatarHasPrefix ¶
AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.
func AvatarHasSuffix ¶
AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.
func AvatarNotIn ¶
AvatarNotIn applies the NotIn predicate on the "avatar" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func Nickname ¶
Nickname applies equality check predicate on the "nickname" field. It's identical to NicknameEQ.
func NicknameContains ¶
NicknameContains applies the Contains predicate on the "nickname" field.
func NicknameContainsFold ¶
NicknameContainsFold applies the ContainsFold predicate on the "nickname" field.
func NicknameEQ ¶
NicknameEQ applies the EQ predicate on the "nickname" field.
func NicknameEqualFold ¶
NicknameEqualFold applies the EqualFold predicate on the "nickname" field.
func NicknameGT ¶
NicknameGT applies the GT predicate on the "nickname" field.
func NicknameGTE ¶
NicknameGTE applies the GTE predicate on the "nickname" field.
func NicknameHasPrefix ¶
NicknameHasPrefix applies the HasPrefix predicate on the "nickname" field.
func NicknameHasSuffix ¶
NicknameHasSuffix applies the HasSuffix predicate on the "nickname" field.
func NicknameIn ¶
NicknameIn applies the In predicate on the "nickname" field.
func NicknameLT ¶
NicknameLT applies the LT predicate on the "nickname" field.
func NicknameLTE ¶
NicknameLTE applies the LTE predicate on the "nickname" field.
func NicknameNEQ ¶
NicknameNEQ applies the NEQ predicate on the "nickname" field.
func NicknameNotIn ¶
NicknameNotIn applies the NotIn predicate on the "nickname" field.
func Phone ¶
Phone applies equality check predicate on the "phone" field. It's identical to PhoneEQ.
func PhoneContains ¶
PhoneContains applies the Contains predicate on the "phone" field.
func PhoneContainsFold ¶
PhoneContainsFold applies the ContainsFold predicate on the "phone" field.
func PhoneEqualFold ¶
PhoneEqualFold applies the EqualFold predicate on the "phone" field.
func PhoneHasPrefix ¶
PhoneHasPrefix applies the HasPrefix predicate on the "phone" field.
func PhoneHasSuffix ¶
PhoneHasSuffix applies the HasSuffix predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.