Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func Avatar(v string) predicate.User
- func AvatarContains(v string) predicate.User
- func AvatarContainsFold(v string) predicate.User
- func AvatarEQ(v string) predicate.User
- func AvatarEqualFold(v string) predicate.User
- func AvatarGT(v string) predicate.User
- func AvatarGTE(v string) predicate.User
- func AvatarHasPrefix(v string) predicate.User
- func AvatarHasSuffix(v string) predicate.User
- func AvatarIn(vs ...string) predicate.User
- func AvatarIsNil() predicate.User
- func AvatarLT(v string) predicate.User
- func AvatarLTE(v string) predicate.User
- func AvatarNEQ(v string) predicate.User
- func AvatarNotIn(vs ...string) predicate.User
- func AvatarNotNil() predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func CreatedBy(v int64) predicate.User
- func CreatedByEQ(v int64) predicate.User
- func CreatedByGT(v int64) predicate.User
- func CreatedByGTE(v int64) predicate.User
- func CreatedByIn(vs ...int64) predicate.User
- func CreatedByIsNil() predicate.User
- func CreatedByLT(v int64) predicate.User
- func CreatedByLTE(v int64) predicate.User
- func CreatedByNEQ(v int64) predicate.User
- func CreatedByNotIn(vs ...int64) predicate.User
- func CreatedByNotNil() predicate.User
- func DeletedAt(v time.Time) predicate.User
- func DeletedAtEQ(v time.Time) predicate.User
- func DeletedAtGT(v time.Time) predicate.User
- func DeletedAtGTE(v time.Time) predicate.User
- func DeletedAtIn(vs ...time.Time) predicate.User
- func DeletedAtIsNil() predicate.User
- func DeletedAtLT(v time.Time) predicate.User
- func DeletedAtLTE(v time.Time) predicate.User
- func DeletedAtNEQ(v time.Time) predicate.User
- func DeletedAtNotIn(vs ...time.Time) predicate.User
- func DeletedAtNotNil() 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 FullName(v string) predicate.User
- func FullNameContains(v string) predicate.User
- func FullNameContainsFold(v string) predicate.User
- func FullNameEQ(v string) predicate.User
- func FullNameEqualFold(v string) predicate.User
- func FullNameGT(v string) predicate.User
- func FullNameGTE(v string) predicate.User
- func FullNameHasPrefix(v string) predicate.User
- func FullNameHasSuffix(v string) predicate.User
- func FullNameIn(vs ...string) predicate.User
- func FullNameIsNil() predicate.User
- func FullNameLT(v string) predicate.User
- func FullNameLTE(v string) predicate.User
- func FullNameNEQ(v string) predicate.User
- func FullNameNotIn(vs ...string) predicate.User
- func FullNameNotNil() predicate.User
- func GenderEQ(v Gender) predicate.User
- func GenderIn(vs ...Gender) predicate.User
- func GenderNEQ(v Gender) predicate.User
- func GenderNotIn(vs ...Gender) predicate.User
- func GenderValidator(ge Gender) error
- func HasAccounts() predicate.User
- func HasAccountsWith(preds ...predicate.UserAccount) predicate.User
- func HasUserDepartments() predicate.User
- func HasUserDepartmentsWith(preds ...predicate.UserDepartment) predicate.User
- func HasUserRoles() predicate.User
- func HasUserRolesWith(preds ...predicate.UserRole) predicate.User
- func HasUserTenants() predicate.User
- func HasUserTenantsWith(preds ...predicate.UserTenant) predicate.User
- func ID(id int64) predicate.User
- func IDEQ(id int64) predicate.User
- func IDGT(id int64) predicate.User
- func IDGTE(id int64) predicate.User
- func IDIn(ids ...int64) predicate.User
- func IDLT(id int64) predicate.User
- func IDLTE(id int64) predicate.User
- func IDNEQ(id int64) predicate.User
- func IDNotIn(ids ...int64) predicate.User
- func Language(v string) predicate.User
- func LanguageContains(v string) predicate.User
- func LanguageContainsFold(v string) predicate.User
- func LanguageEQ(v string) predicate.User
- func LanguageEqualFold(v string) predicate.User
- func LanguageGT(v string) predicate.User
- func LanguageGTE(v string) predicate.User
- func LanguageHasPrefix(v string) predicate.User
- func LanguageHasSuffix(v string) predicate.User
- func LanguageIn(vs ...string) predicate.User
- func LanguageLT(v string) predicate.User
- func LanguageLTE(v string) predicate.User
- func LanguageNEQ(v string) predicate.User
- func LanguageNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Password(v string) predicate.User
- func PasswordContains(v string) predicate.User
- func PasswordContainsFold(v string) predicate.User
- func PasswordEQ(v string) predicate.User
- func PasswordEqualFold(v string) predicate.User
- func PasswordGT(v string) predicate.User
- func PasswordGTE(v string) predicate.User
- func PasswordHasPrefix(v string) predicate.User
- func PasswordHasSuffix(v string) predicate.User
- func PasswordIn(vs ...string) predicate.User
- func PasswordIsNil() predicate.User
- func PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func PasswordNotNil() 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 StatusEQ(v Status) predicate.User
- func StatusIn(vs ...Status) predicate.User
- func StatusNEQ(v Status) predicate.User
- func StatusNotIn(vs ...Status) predicate.User
- func StatusValidator(s Status) error
- func Timezone(v string) predicate.User
- func TimezoneContains(v string) predicate.User
- func TimezoneContainsFold(v string) predicate.User
- func TimezoneEQ(v string) predicate.User
- func TimezoneEqualFold(v string) predicate.User
- func TimezoneGT(v string) predicate.User
- func TimezoneGTE(v string) predicate.User
- func TimezoneHasPrefix(v string) predicate.User
- func TimezoneHasSuffix(v string) predicate.User
- func TimezoneIn(vs ...string) predicate.User
- func TimezoneLT(v string) predicate.User
- func TimezoneLTE(v string) predicate.User
- func TimezoneNEQ(v string) predicate.User
- func TimezoneNotIn(vs ...string) predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func UpdatedBy(v int64) predicate.User
- func UpdatedByEQ(v int64) predicate.User
- func UpdatedByGT(v int64) predicate.User
- func UpdatedByGTE(v int64) predicate.User
- func UpdatedByIn(vs ...int64) predicate.User
- func UpdatedByIsNil() predicate.User
- func UpdatedByLT(v int64) predicate.User
- func UpdatedByLTE(v int64) predicate.User
- func UpdatedByNEQ(v int64) predicate.User
- func UpdatedByNotIn(vs ...int64) predicate.User
- func UpdatedByNotNil() 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
- type Gender
- type OrderOption
- func ByAccounts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAccountsCount(opts ...sql.OrderTermOption) OrderOption
- func ByAvatar(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFullName(opts ...sql.OrderTermOption) OrderOption
- func ByGender(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLanguage(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByPhone(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTimezone(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByUserDepartments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUserDepartmentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUserRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUserRolesCount(opts ...sql.OrderTermOption) OrderOption
- func ByUserTenants(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUserTenantsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
- type Status
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" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldPhone holds the string denoting the phone field in the database. FieldPhone = "phone" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldFullName holds the string denoting the full_name field in the database. FieldFullName = "full_name" // FieldGender holds the string denoting the gender field in the database. FieldGender = "gender" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // FieldLanguage holds the string denoting the language field in the database. FieldLanguage = "language" // FieldTimezone holds the string denoting the timezone field in the database. FieldTimezone = "timezone" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // EdgeAccounts holds the string denoting the accounts edge name in mutations. EdgeAccounts = "accounts" // EdgeUserTenants holds the string denoting the user_tenants edge name in mutations. EdgeUserTenants = "user_tenants" // EdgeUserDepartments holds the string denoting the user_departments edge name in mutations. EdgeUserDepartments = "user_departments" // EdgeUserRoles holds the string denoting the user_roles edge name in mutations. EdgeUserRoles = "user_roles" // Table holds the table name of the user in the database. Table = "users" // AccountsTable is the table that holds the accounts relation/edge. AccountsTable = "user_accounts" // AccountsInverseTable is the table name for the UserAccount entity. // It exists in this package in order to avoid circular dependency with the "useraccount" package. AccountsInverseTable = "user_accounts" // AccountsColumn is the table column denoting the accounts relation/edge. AccountsColumn = "user_id" // UserTenantsTable is the table that holds the user_tenants relation/edge. UserTenantsTable = "user_tenants" // UserTenantsInverseTable is the table name for the UserTenant entity. // It exists in this package in order to avoid circular dependency with the "usertenant" package. UserTenantsInverseTable = "user_tenants" // UserTenantsColumn is the table column denoting the user_tenants relation/edge. UserTenantsColumn = "user_id" // UserDepartmentsTable is the table that holds the user_departments relation/edge. UserDepartmentsTable = "user_departments" // UserDepartmentsInverseTable is the table name for the UserDepartment entity. // It exists in this package in order to avoid circular dependency with the "userdepartment" package. UserDepartmentsInverseTable = "user_departments" // UserDepartmentsColumn is the table column denoting the user_departments relation/edge. UserDepartmentsColumn = "user_id" // UserRolesTable is the table that holds the user_roles relation/edge. UserRolesTable = "user_roles" // UserRolesInverseTable is the table name for the UserRole entity. // It exists in this package in order to avoid circular dependency with the "userrole" package. UserRolesInverseTable = "user_roles" // UserRolesColumn is the table column denoting the user_roles relation/edge. UserRolesColumn = "user_id" )
const DefaultGender = GenderUNKNOWN
GenderUNKNOWN is the default value of the Gender enum.
const DefaultStatus = StatusPENDING
StatusPENDING is the default value of the Status enum.
Variables ¶
var ( Hooks [1]ent.Hook // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // PhoneValidator is a validator for the "phone" field. It is called by the builders before save. PhoneValidator func(string) error // DefaultLanguage holds the default value on creation for the "language" field. DefaultLanguage string // LanguageValidator is a validator for the "language" field. It is called by the builders before save. LanguageValidator func(string) error // DefaultTimezone holds the default value on creation for the "timezone" field. DefaultTimezone string // TimezoneValidator is a validator for the "timezone" field. It is called by the builders before save. TimezoneValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // 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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() int64 )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/yc-alpha/admin/ent/runtime"
var Columns = []string{ FieldID, FieldUsername, FieldEmail, FieldPhone, FieldPassword, FieldStatus, FieldFullName, FieldGender, FieldAvatar, FieldLanguage, FieldTimezone, FieldCreatedBy, FieldUpdatedBy, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for user 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 AvatarIsNil ¶
AvatarIsNil applies the IsNil predicate on the "avatar" field.
func AvatarNotIn ¶
AvatarNotIn applies the NotIn predicate on the "avatar" field.
func AvatarNotNil ¶
AvatarNotNil applies the NotNil 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 CreatedByIsNil ¶
CreatedByIsNil applies the IsNil 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 CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" 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 FullName ¶
FullName applies equality check predicate on the "full_name" field. It's identical to FullNameEQ.
func FullNameContains ¶
FullNameContains applies the Contains predicate on the "full_name" field.
func FullNameContainsFold ¶
FullNameContainsFold applies the ContainsFold predicate on the "full_name" field.
func FullNameEQ ¶
FullNameEQ applies the EQ predicate on the "full_name" field.
func FullNameEqualFold ¶
FullNameEqualFold applies the EqualFold predicate on the "full_name" field.
func FullNameGT ¶
FullNameGT applies the GT predicate on the "full_name" field.
func FullNameGTE ¶
FullNameGTE applies the GTE predicate on the "full_name" field.
func FullNameHasPrefix ¶
FullNameHasPrefix applies the HasPrefix predicate on the "full_name" field.
func FullNameHasSuffix ¶
FullNameHasSuffix applies the HasSuffix predicate on the "full_name" field.
func FullNameIn ¶
FullNameIn applies the In predicate on the "full_name" field.
func FullNameIsNil ¶
FullNameIsNil applies the IsNil predicate on the "full_name" field.
func FullNameLT ¶
FullNameLT applies the LT predicate on the "full_name" field.
func FullNameLTE ¶
FullNameLTE applies the LTE predicate on the "full_name" field.
func FullNameNEQ ¶
FullNameNEQ applies the NEQ predicate on the "full_name" field.
func FullNameNotIn ¶
FullNameNotIn applies the NotIn predicate on the "full_name" field.
func FullNameNotNil ¶
FullNameNotNil applies the NotNil predicate on the "full_name" field.
func GenderNotIn ¶
GenderNotIn applies the NotIn predicate on the "gender" field.
func GenderValidator ¶
GenderValidator is a validator for the "gender" field enum values. It is called by the builders before save.
func HasAccounts ¶
HasAccounts applies the HasEdge predicate on the "accounts" edge.
func HasAccountsWith ¶
func HasAccountsWith(preds ...predicate.UserAccount) predicate.User
HasAccountsWith applies the HasEdge predicate on the "accounts" edge with a given conditions (other predicates).
func HasUserDepartments ¶
HasUserDepartments applies the HasEdge predicate on the "user_departments" edge.
func HasUserDepartmentsWith ¶
func HasUserDepartmentsWith(preds ...predicate.UserDepartment) predicate.User
HasUserDepartmentsWith applies the HasEdge predicate on the "user_departments" edge with a given conditions (other predicates).
func HasUserRoles ¶
HasUserRoles applies the HasEdge predicate on the "user_roles" edge.
func HasUserRolesWith ¶
HasUserRolesWith applies the HasEdge predicate on the "user_roles" edge with a given conditions (other predicates).
func HasUserTenants ¶
HasUserTenants applies the HasEdge predicate on the "user_tenants" edge.
func HasUserTenantsWith ¶
func HasUserTenantsWith(preds ...predicate.UserTenant) predicate.User
HasUserTenantsWith applies the HasEdge predicate on the "user_tenants" edge with a given conditions (other predicates).
func Language ¶
Language applies equality check predicate on the "language" field. It's identical to LanguageEQ.
func LanguageContains ¶
LanguageContains applies the Contains predicate on the "language" field.
func LanguageContainsFold ¶
LanguageContainsFold applies the ContainsFold predicate on the "language" field.
func LanguageEQ ¶
LanguageEQ applies the EQ predicate on the "language" field.
func LanguageEqualFold ¶
LanguageEqualFold applies the EqualFold predicate on the "language" field.
func LanguageGT ¶
LanguageGT applies the GT predicate on the "language" field.
func LanguageGTE ¶
LanguageGTE applies the GTE predicate on the "language" field.
func LanguageHasPrefix ¶
LanguageHasPrefix applies the HasPrefix predicate on the "language" field.
func LanguageHasSuffix ¶
LanguageHasSuffix applies the HasSuffix predicate on the "language" field.
func LanguageIn ¶
LanguageIn applies the In predicate on the "language" field.
func LanguageLT ¶
LanguageLT applies the LT predicate on the "language" field.
func LanguageLTE ¶
LanguageLTE applies the LTE predicate on the "language" field.
func LanguageNEQ ¶
LanguageNEQ applies the NEQ predicate on the "language" field.
func LanguageNotIn ¶
LanguageNotIn applies the NotIn predicate on the "language" field.
func Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordIsNil ¶
PasswordIsNil applies the IsNil predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func PasswordNotNil ¶
PasswordNotNil applies the NotNil predicate on the "password" 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 StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func Timezone ¶
Timezone applies equality check predicate on the "timezone" field. It's identical to TimezoneEQ.
func TimezoneContains ¶
TimezoneContains applies the Contains predicate on the "timezone" field.
func TimezoneContainsFold ¶
TimezoneContainsFold applies the ContainsFold predicate on the "timezone" field.
func TimezoneEQ ¶
TimezoneEQ applies the EQ predicate on the "timezone" field.
func TimezoneEqualFold ¶
TimezoneEqualFold applies the EqualFold predicate on the "timezone" field.
func TimezoneGT ¶
TimezoneGT applies the GT predicate on the "timezone" field.
func TimezoneGTE ¶
TimezoneGTE applies the GTE predicate on the "timezone" field.
func TimezoneHasPrefix ¶
TimezoneHasPrefix applies the HasPrefix predicate on the "timezone" field.
func TimezoneHasSuffix ¶
TimezoneHasSuffix applies the HasSuffix predicate on the "timezone" field.
func TimezoneIn ¶
TimezoneIn applies the In predicate on the "timezone" field.
func TimezoneLT ¶
TimezoneLT applies the LT predicate on the "timezone" field.
func TimezoneLTE ¶
TimezoneLTE applies the LTE predicate on the "timezone" field.
func TimezoneNEQ ¶
TimezoneNEQ applies the NEQ predicate on the "timezone" field.
func TimezoneNotIn ¶
TimezoneNotIn applies the NotIn predicate on the "timezone" 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 UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil 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 UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 ¶
type Gender ¶
type Gender string
Gender defines the type for the "gender" enum field.
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAccounts ¶
func ByAccounts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAccounts orders the results by accounts terms.
func ByAccountsCount ¶
func ByAccountsCount(opts ...sql.OrderTermOption) OrderOption
ByAccountsCount orders the results by accounts count.
func ByAvatar ¶
func ByAvatar(opts ...sql.OrderTermOption) OrderOption
ByAvatar orders the results by the avatar field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByFullName ¶
func ByFullName(opts ...sql.OrderTermOption) OrderOption
ByFullName orders the results by the full_name field.
func ByGender ¶
func ByGender(opts ...sql.OrderTermOption) OrderOption
ByGender orders the results by the gender field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLanguage ¶
func ByLanguage(opts ...sql.OrderTermOption) OrderOption
ByLanguage orders the results by the language field.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func ByPhone ¶
func ByPhone(opts ...sql.OrderTermOption) OrderOption
ByPhone orders the results by the phone field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTimezone ¶
func ByTimezone(opts ...sql.OrderTermOption) OrderOption
ByTimezone orders the results by the timezone field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.
func ByUserDepartments ¶
func ByUserDepartments(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUserDepartments orders the results by user_departments terms.
func ByUserDepartmentsCount ¶
func ByUserDepartmentsCount(opts ...sql.OrderTermOption) OrderOption
ByUserDepartmentsCount orders the results by user_departments count.
func ByUserRoles ¶
func ByUserRoles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUserRoles orders the results by user_roles terms.
func ByUserRolesCount ¶
func ByUserRolesCount(opts ...sql.OrderTermOption) OrderOption
ByUserRolesCount orders the results by user_roles count.
func ByUserTenants ¶
func ByUserTenants(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUserTenants orders the results by user_tenants terms.
func ByUserTenantsCount ¶
func ByUserTenantsCount(opts ...sql.OrderTermOption) OrderOption
ByUserTenantsCount orders the results by user_tenants count.
func ByUsername ¶
func ByUsername(opts ...sql.OrderTermOption) OrderOption
ByUsername orders the results by the username field.