Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func CreateTime(v time.Time) predicate.User
- func CreateTimeEQ(v time.Time) predicate.User
- func CreateTimeGT(v time.Time) predicate.User
- func CreateTimeGTE(v time.Time) predicate.User
- func CreateTimeIn(vs ...time.Time) predicate.User
- func CreateTimeLT(v time.Time) predicate.User
- func CreateTimeLTE(v time.Time) predicate.User
- func CreateTimeNEQ(v time.Time) predicate.User
- func CreateTimeNotIn(vs ...time.Time) predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailIsNil() predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func EmailNotNil() predicate.User
- func HasBelong() predicate.User
- func HasBelongWith(preds ...predicate.Tenant) predicate.User
- func HasPolicys() predicate.User
- func HasPolicysWith(preds ...predicate.AuthzPolicy) predicate.User
- func HasRoles() predicate.User
- func HasRolesWith(preds ...predicate.Role) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Passwd(v string) predicate.User
- func PasswdContains(v string) predicate.User
- func PasswdContainsFold(v string) predicate.User
- func PasswdEQ(v string) predicate.User
- func PasswdEqualFold(v string) predicate.User
- func PasswdGT(v string) predicate.User
- func PasswdGTE(v string) predicate.User
- func PasswdHasPrefix(v string) predicate.User
- func PasswdHasSuffix(v string) predicate.User
- func PasswdIn(vs ...string) predicate.User
- func PasswdLT(v string) predicate.User
- func PasswdLTE(v string) predicate.User
- func PasswdNEQ(v string) predicate.User
- func PasswdNotIn(vs ...string) predicate.User
- func Phone(v string) predicate.User
- func PhoneContains(v string) predicate.User
- func PhoneContainsFold(v string) predicate.User
- func PhoneEQ(v string) predicate.User
- func PhoneEqualFold(v string) predicate.User
- func PhoneGT(v string) predicate.User
- func PhoneGTE(v string) predicate.User
- func PhoneHasPrefix(v string) predicate.User
- func PhoneHasSuffix(v string) predicate.User
- func PhoneIn(vs ...string) predicate.User
- func PhoneIsNil() predicate.User
- func PhoneLT(v string) predicate.User
- func PhoneLTE(v string) predicate.User
- func PhoneNEQ(v string) predicate.User
- func PhoneNotIn(vs ...string) predicate.User
- func PhoneNotNil() predicate.User
- func Status(v string) predicate.User
- func StatusContains(v string) predicate.User
- func StatusContainsFold(v string) predicate.User
- func StatusEQ(v string) predicate.User
- func StatusEqualFold(v string) predicate.User
- func StatusGT(v string) predicate.User
- func StatusGTE(v string) predicate.User
- func StatusHasPrefix(v string) predicate.User
- func StatusHasSuffix(v string) predicate.User
- func StatusIn(vs ...string) predicate.User
- func StatusLT(v string) predicate.User
- func StatusLTE(v string) predicate.User
- func StatusNEQ(v string) predicate.User
- func StatusNotIn(vs ...string) predicate.User
- func TenantName(v string) predicate.User
- func TenantNameContains(v string) predicate.User
- func TenantNameContainsFold(v string) predicate.User
- func TenantNameEQ(v string) predicate.User
- func TenantNameEqualFold(v string) predicate.User
- func TenantNameGT(v string) predicate.User
- func TenantNameGTE(v string) predicate.User
- func TenantNameHasPrefix(v string) predicate.User
- func TenantNameHasSuffix(v string) predicate.User
- func TenantNameIn(vs ...string) predicate.User
- func TenantNameIsNil() predicate.User
- func TenantNameLT(v string) predicate.User
- func TenantNameLTE(v string) predicate.User
- func TenantNameNEQ(v string) predicate.User
- func TenantNameNotIn(vs ...string) predicate.User
- func TenantNameNotNil() predicate.User
- func UpdateTime(v time.Time) predicate.User
- func UpdateTimeEQ(v time.Time) predicate.User
- func UpdateTimeGT(v time.Time) predicate.User
- func UpdateTimeGTE(v time.Time) predicate.User
- func UpdateTimeIn(vs ...time.Time) predicate.User
- func UpdateTimeIsNil() predicate.User
- func UpdateTimeLT(v time.Time) predicate.User
- func UpdateTimeLTE(v time.Time) predicate.User
- func UpdateTimeNEQ(v time.Time) predicate.User
- func UpdateTimeNotIn(vs ...time.Time) predicate.User
- func UpdateTimeNotNil() predicate.User
- func Username(v string) predicate.User
- func UsernameContains(v string) predicate.User
- func UsernameContainsFold(v string) predicate.User
- func UsernameEQ(v string) predicate.User
- func UsernameEqualFold(v string) predicate.User
- func UsernameGT(v string) predicate.User
- func UsernameGTE(v string) predicate.User
- func UsernameHasPrefix(v string) predicate.User
- func UsernameHasSuffix(v string) predicate.User
- func UsernameIn(vs ...string) predicate.User
- func UsernameLT(v string) predicate.User
- func UsernameLTE(v string) predicate.User
- func UsernameNEQ(v string) predicate.User
- func UsernameNotIn(vs ...string) predicate.User
- func ValidColumn(column string) bool
Constants ¶
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" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldTenantName holds the string denoting the tenant_name field in the database. FieldTenantName = "tenant_name" // FieldPasswd holds the string denoting the passwd field in the database. FieldPasswd = "passwd" // 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" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // 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" // EdgePolicys holds the string denoting the policys edge name in mutations. EdgePolicys = "policys" // EdgeRoles holds the string denoting the roles edge name in mutations. EdgeRoles = "roles" // EdgeBelong holds the string denoting the belong edge name in mutations. EdgeBelong = "belong" // Table holds the table name of the user in the database. Table = "users" // PolicysTable is the table that holds the policys relation/edge. PolicysTable = "authz_policies" // PolicysInverseTable is the table name for the AuthzPolicy entity. // It exists in this package in order to avoid circular dependency with the "authzpolicy" package. PolicysInverseTable = "authz_policies" // PolicysColumn is the table column denoting the policys relation/edge. PolicysColumn = "user_policys" // RolesTable is the table that holds the roles relation/edge. The primary key declared below. RolesTable = "user_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" // BelongTable is the table that holds the belong relation/edge. BelongTable = "users" // BelongInverseTable is the table name for the Tenant entity. // It exists in this package in order to avoid circular dependency with the "tenant" package. BelongInverseTable = "tenants" // BelongColumn is the table column denoting the belong relation/edge. BelongColumn = "tenant_users" )
Variables ¶
var ( // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // PasswdValidator is a validator for the "passwd" field. It is called by the builders before save. PasswdValidator func(string) error // PhoneValidator is a validator for the "phone" field. It is called by the builders before save. PhoneValidator func(string) error // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // StatusValidator is a validator for the "status" field. It is called by the builders before save. StatusValidator func(string) error // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time )
var Columns = []string{ FieldID, FieldUsername, FieldTenantName, FieldPasswd, FieldPhone, FieldEmail, FieldStatus, FieldCreateTime, FieldUpdateTime, }
Columns holds all SQL columns for user fields.
var ForeignKeys = []string{
"tenant_users",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "users" table and are not defined as standalone fields in the schema.
var ( // RolesPrimaryKey and RolesColumn2 are the table columns denoting the // primary key for the roles relation (M2M). RolesPrimaryKey = []string{"user_id", "role_id"} )
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 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 EmailIsNil ¶
EmailIsNil applies the IsNil predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func EmailNotNil ¶
EmailNotNil applies the NotNil predicate on the "email" field.
func HasBelongWith ¶
HasBelongWith applies the HasEdge predicate on the "belong" edge with a given conditions (other predicates).
func HasPolicys ¶
HasPolicys applies the HasEdge predicate on the "policys" edge.
func HasPolicysWith ¶
func HasPolicysWith(preds ...predicate.AuthzPolicy) predicate.User
HasPolicysWith applies the HasEdge predicate on the "policys" edge with a given conditions (other predicates).
func HasRolesWith ¶
HasRolesWith applies the HasEdge predicate on the "roles" edge with a given conditions (other predicates).
func Passwd ¶
Passwd applies equality check predicate on the "passwd" field. It's identical to PasswdEQ.
func PasswdContains ¶
PasswdContains applies the Contains predicate on the "passwd" field.
func PasswdContainsFold ¶
PasswdContainsFold applies the ContainsFold predicate on the "passwd" field.
func PasswdEqualFold ¶
PasswdEqualFold applies the EqualFold predicate on the "passwd" field.
func PasswdHasPrefix ¶
PasswdHasPrefix applies the HasPrefix predicate on the "passwd" field.
func PasswdHasSuffix ¶
PasswdHasSuffix applies the HasSuffix predicate on the "passwd" field.
func PasswdNotIn ¶
PasswdNotIn applies the NotIn predicate on the "passwd" 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 PhoneIsNil ¶
PhoneIsNil applies the IsNil predicate on the "phone" field.
func PhoneNotIn ¶
PhoneNotIn applies the NotIn predicate on the "phone" field.
func PhoneNotNil ¶
PhoneNotNil applies the NotNil predicate on the "phone" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func TenantName ¶
TenantName applies equality check predicate on the "tenant_name" field. It's identical to TenantNameEQ.
func TenantNameContains ¶
TenantNameContains applies the Contains predicate on the "tenant_name" field.
func TenantNameContainsFold ¶
TenantNameContainsFold applies the ContainsFold predicate on the "tenant_name" field.
func TenantNameEQ ¶
TenantNameEQ applies the EQ predicate on the "tenant_name" field.
func TenantNameEqualFold ¶
TenantNameEqualFold applies the EqualFold predicate on the "tenant_name" field.
func TenantNameGT ¶
TenantNameGT applies the GT predicate on the "tenant_name" field.
func TenantNameGTE ¶
TenantNameGTE applies the GTE predicate on the "tenant_name" field.
func TenantNameHasPrefix ¶
TenantNameHasPrefix applies the HasPrefix predicate on the "tenant_name" field.
func TenantNameHasSuffix ¶
TenantNameHasSuffix applies the HasSuffix predicate on the "tenant_name" field.
func TenantNameIn ¶
TenantNameIn applies the In predicate on the "tenant_name" field.
func TenantNameIsNil ¶
TenantNameIsNil applies the IsNil predicate on the "tenant_name" field.
func TenantNameLT ¶
TenantNameLT applies the LT predicate on the "tenant_name" field.
func TenantNameLTE ¶
TenantNameLTE applies the LTE predicate on the "tenant_name" field.
func TenantNameNEQ ¶
TenantNameNEQ applies the NEQ predicate on the "tenant_name" field.
func TenantNameNotIn ¶
TenantNameNotIn applies the NotIn predicate on the "tenant_name" field.
func TenantNameNotNil ¶
TenantNameNotNil applies the NotNil predicate on the "tenant_name" 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 UpdateTimeIsNil ¶
UpdateTimeIsNil applies the IsNil 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 UpdateTimeNotNil ¶
UpdateTimeNotNil applies the NotNil predicate on the "update_time" field.
func Username ¶
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
UsernameIn applies the In predicate on the "username" field.
func UsernameLT ¶
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
UsernameNotIn applies the NotIn predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
This section is empty.