Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Admin) predicate.Admin
- func CreateTime(v time.Time) predicate.Admin
- func CreateTimeEQ(v time.Time) predicate.Admin
- func CreateTimeGT(v time.Time) predicate.Admin
- func CreateTimeGTE(v time.Time) predicate.Admin
- func CreateTimeIn(vs ...time.Time) predicate.Admin
- func CreateTimeLT(v time.Time) predicate.Admin
- func CreateTimeLTE(v time.Time) predicate.Admin
- func CreateTimeNEQ(v time.Time) predicate.Admin
- func CreateTimeNotIn(vs ...time.Time) predicate.Admin
- func HasUser() predicate.Admin
- func HasUserWith(preds ...predicate.User) predicate.Admin
- func ID(id int) predicate.Admin
- func IDEQ(id int) predicate.Admin
- func IDGT(id int) predicate.Admin
- func IDGTE(id int) predicate.Admin
- func IDIn(ids ...int) predicate.Admin
- func IDLT(id int) predicate.Admin
- func IDLTE(id int) predicate.Admin
- func IDNEQ(id int) predicate.Admin
- func IDNotIn(ids ...int) predicate.Admin
- func Not(p predicate.Admin) predicate.Admin
- func Or(predicates ...predicate.Admin) predicate.Admin
- func PhoneNumber(v string) predicate.Admin
- func PhoneNumberContains(v string) predicate.Admin
- func PhoneNumberContainsFold(v string) predicate.Admin
- func PhoneNumberEQ(v string) predicate.Admin
- func PhoneNumberEqualFold(v string) predicate.Admin
- func PhoneNumberGT(v string) predicate.Admin
- func PhoneNumberGTE(v string) predicate.Admin
- func PhoneNumberHasPrefix(v string) predicate.Admin
- func PhoneNumberHasSuffix(v string) predicate.Admin
- func PhoneNumberIn(vs ...string) predicate.Admin
- func PhoneNumberLT(v string) predicate.Admin
- func PhoneNumberLTE(v string) predicate.Admin
- func PhoneNumberNEQ(v string) predicate.Admin
- func PhoneNumberNotIn(vs ...string) predicate.Admin
- func UpdateTime(v time.Time) predicate.Admin
- func UpdateTimeEQ(v time.Time) predicate.Admin
- func UpdateTimeGT(v time.Time) predicate.Admin
- func UpdateTimeGTE(v time.Time) predicate.Admin
- func UpdateTimeIn(vs ...time.Time) predicate.Admin
- func UpdateTimeLT(v time.Time) predicate.Admin
- func UpdateTimeLTE(v time.Time) predicate.Admin
- func UpdateTimeNEQ(v time.Time) predicate.Admin
- func UpdateTimeNotIn(vs ...time.Time) predicate.Admin
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the admin type in the database. Label = "admin" // 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" // FieldPhoneNumber holds the string denoting the phone_number field in the database. FieldPhoneNumber = "phone_number" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the admin in the database. Table = "admins" // UserTable is the table that holds the user relation/edge. UserTable = "admins" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_admin" )
Variables ¶
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 // PhoneNumberValidator is a validator for the "phone_number" field. It is called by the builders before save. PhoneNumberValidator func(string) error )
var Columns = []string{ FieldID, FieldCreateTime, FieldUpdateTime, FieldPhoneNumber, }
Columns holds all SQL columns for admin fields.
var ForeignKeys = []string{
"user_admin",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "admins" table and are not defined as standalone fields in the schema.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func PhoneNumber ¶
PhoneNumber applies equality check predicate on the "phone_number" field. It's identical to PhoneNumberEQ.
func PhoneNumberContains ¶
PhoneNumberContains applies the Contains predicate on the "phone_number" field.
func PhoneNumberContainsFold ¶
PhoneNumberContainsFold applies the ContainsFold predicate on the "phone_number" field.
func PhoneNumberEQ ¶
PhoneNumberEQ applies the EQ predicate on the "phone_number" field.
func PhoneNumberEqualFold ¶
PhoneNumberEqualFold applies the EqualFold predicate on the "phone_number" field.
func PhoneNumberGT ¶
PhoneNumberGT applies the GT predicate on the "phone_number" field.
func PhoneNumberGTE ¶
PhoneNumberGTE applies the GTE predicate on the "phone_number" field.
func PhoneNumberHasPrefix ¶
PhoneNumberHasPrefix applies the HasPrefix predicate on the "phone_number" field.
func PhoneNumberHasSuffix ¶
PhoneNumberHasSuffix applies the HasSuffix predicate on the "phone_number" field.
func PhoneNumberIn ¶
PhoneNumberIn applies the In predicate on the "phone_number" field.
func PhoneNumberLT ¶
PhoneNumberLT applies the LT predicate on the "phone_number" field.
func PhoneNumberLTE ¶
PhoneNumberLTE applies the LTE predicate on the "phone_number" field.
func PhoneNumberNEQ ¶
PhoneNumberNEQ applies the NEQ predicate on the "phone_number" field.
func PhoneNumberNotIn ¶
PhoneNumberNotIn applies the NotIn predicate on the "phone_number" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.