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 Comments(v string) predicate.User
- func CommentsContains(v string) predicate.User
- func CommentsContainsFold(v string) predicate.User
- func CommentsEQ(v string) predicate.User
- func CommentsEqualFold(v string) predicate.User
- func CommentsGT(v string) predicate.User
- func CommentsGTE(v string) predicate.User
- func CommentsHasPrefix(v string) predicate.User
- func CommentsHasSuffix(v string) predicate.User
- func CommentsIn(vs ...string) predicate.User
- func CommentsIsNil() predicate.User
- func CommentsLT(v string) predicate.User
- func CommentsLTE(v string) predicate.User
- func CommentsNEQ(v string) predicate.User
- func CommentsNotIn(vs ...string) predicate.User
- func CommentsNotNil() 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 int) predicate.User
- func CreatedByEQ(v int) predicate.User
- func CreatedByGT(v int) predicate.User
- func CreatedByGTE(v int) predicate.User
- func CreatedByIn(vs ...int) predicate.User
- func CreatedByLT(v int) predicate.User
- func CreatedByLTE(v int) predicate.User
- func CreatedByNEQ(v int) predicate.User
- func CreatedByNotIn(vs ...int) predicate.User
- func CreationTypeEQ(v CreationType) predicate.User
- func CreationTypeIn(vs ...CreationType) predicate.User
- func CreationTypeNEQ(v CreationType) predicate.User
- func CreationTypeNotIn(vs ...CreationType) predicate.User
- func CreationTypeValidator(ct CreationType) error
- 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 DisplayName(v string) predicate.User
- func DisplayNameContains(v string) predicate.User
- func DisplayNameContainsFold(v string) predicate.User
- func DisplayNameEQ(v string) predicate.User
- func DisplayNameEqualFold(v string) predicate.User
- func DisplayNameGT(v string) predicate.User
- func DisplayNameGTE(v string) predicate.User
- func DisplayNameHasPrefix(v string) predicate.User
- func DisplayNameHasSuffix(v string) predicate.User
- func DisplayNameIn(vs ...string) predicate.User
- func DisplayNameLT(v string) predicate.User
- func DisplayNameLTE(v string) predicate.User
- func DisplayNameNEQ(v string) predicate.User
- func DisplayNameNotIn(vs ...string) 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 HasDevices() predicate.User
- func HasDevicesWith(preds ...predicate.UserDevice) predicate.User
- func HasIdentities() predicate.User
- func HasIdentitiesWith(preds ...predicate.UserIdentity) predicate.User
- func HasLoginProfile() predicate.User
- func HasLoginProfileWith(preds ...predicate.UserLoginProfile) predicate.User
- func HasOauthClients() predicate.User
- func HasOauthClientsWith(preds ...predicate.OauthClient) predicate.User
- func HasOrgUser() predicate.User
- func HasOrgUserWith(preds ...predicate.OrgUser) predicate.User
- func HasOrgs() predicate.User
- func HasOrgsWith(preds ...predicate.Org) predicate.User
- func HasPasswords() predicate.User
- func HasPasswordsWith(preds ...predicate.UserPassword) predicate.User
- func HasPermissions() predicate.User
- func HasPermissionsWith(preds ...predicate.Permission) 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 Mobile(v string) predicate.User
- func MobileContains(v string) predicate.User
- func MobileContainsFold(v string) predicate.User
- func MobileEQ(v string) predicate.User
- func MobileEqualFold(v string) predicate.User
- func MobileGT(v string) predicate.User
- func MobileGTE(v string) predicate.User
- func MobileHasPrefix(v string) predicate.User
- func MobileHasSuffix(v string) predicate.User
- func MobileIn(vs ...string) predicate.User
- func MobileIsNil() predicate.User
- func MobileLT(v string) predicate.User
- func MobileLTE(v string) predicate.User
- func MobileNEQ(v string) predicate.User
- func MobileNotIn(vs ...string) predicate.User
- func MobileNotNil() predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func PrincipalName(v string) predicate.User
- func PrincipalNameContains(v string) predicate.User
- func PrincipalNameContainsFold(v string) predicate.User
- func PrincipalNameEQ(v string) predicate.User
- func PrincipalNameEqualFold(v string) predicate.User
- func PrincipalNameGT(v string) predicate.User
- func PrincipalNameGTE(v string) predicate.User
- func PrincipalNameHasPrefix(v string) predicate.User
- func PrincipalNameHasSuffix(v string) predicate.User
- func PrincipalNameIn(vs ...string) predicate.User
- func PrincipalNameLT(v string) predicate.User
- func PrincipalNameLTE(v string) predicate.User
- func PrincipalNameNEQ(v string) predicate.User
- func PrincipalNameNotIn(vs ...string) predicate.User
- func RegisterIP(v string) predicate.User
- func RegisterIPContains(v string) predicate.User
- func RegisterIPContainsFold(v string) predicate.User
- func RegisterIPEQ(v string) predicate.User
- func RegisterIPEqualFold(v string) predicate.User
- func RegisterIPGT(v string) predicate.User
- func RegisterIPGTE(v string) predicate.User
- func RegisterIPHasPrefix(v string) predicate.User
- func RegisterIPHasSuffix(v string) predicate.User
- func RegisterIPIn(vs ...string) predicate.User
- func RegisterIPLT(v string) predicate.User
- func RegisterIPLTE(v string) predicate.User
- func RegisterIPNEQ(v string) predicate.User
- func RegisterIPNotIn(vs ...string) predicate.User
- func StatusEQ(v typex.SimpleStatus) predicate.User
- func StatusIn(vs ...typex.SimpleStatus) predicate.User
- func StatusIsNil() predicate.User
- func StatusNEQ(v typex.SimpleStatus) predicate.User
- func StatusNotIn(vs ...typex.SimpleStatus) predicate.User
- func StatusNotNil() predicate.User
- func StatusValidator(s typex.SimpleStatus) error
- 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 UpdatedAtIsNil() 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 UpdatedAtNotNil() predicate.User
- func UpdatedBy(v int) predicate.User
- func UpdatedByEQ(v int) predicate.User
- func UpdatedByGT(v int) predicate.User
- func UpdatedByGTE(v int) predicate.User
- func UpdatedByIn(vs ...int) predicate.User
- func UpdatedByIsNil() predicate.User
- func UpdatedByLT(v int) predicate.User
- func UpdatedByLTE(v int) predicate.User
- func UpdatedByNEQ(v int) predicate.User
- func UpdatedByNotIn(vs ...int) predicate.User
- func UpdatedByNotNil() predicate.User
- func UserTypeEQ(v UserType) predicate.User
- func UserTypeIn(vs ...UserType) predicate.User
- func UserTypeNEQ(v UserType) predicate.User
- func UserTypeNotIn(vs ...UserType) predicate.User
- func UserTypeValidator(ut UserType) error
- func ValidColumn(column string) bool
- type CreationType
- type OrderOption
- func ByAvatar(opts ...sql.OrderTermOption) OrderOption
- func ByComments(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByCreationType(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDevices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDevicesCount(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIdentities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByIdentitiesCount(opts ...sql.OrderTermOption) OrderOption
- func ByLoginProfileField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMobile(opts ...sql.OrderTermOption) OrderOption
- func ByOauthClients(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOauthClientsCount(opts ...sql.OrderTermOption) OrderOption
- func ByOrgUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgUserCount(opts ...sql.OrderTermOption) OrderOption
- func ByOrgs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgsCount(opts ...sql.OrderTermOption) OrderOption
- func ByPasswords(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPasswordsCount(opts ...sql.OrderTermOption) OrderOption
- func ByPermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPermissionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalName(opts ...sql.OrderTermOption) OrderOption
- func ByRegisterIP(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByUserType(opts ...sql.OrderTermOption) OrderOption
- type UserType
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" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // 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" // FieldPrincipalName holds the string denoting the principal_name field in the database. FieldPrincipalName = "principal_name" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_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" // FieldUserType holds the string denoting the user_type field in the database. FieldUserType = "user_type" // FieldCreationType holds the string denoting the creation_type field in the database. FieldCreationType = "creation_type" // FieldRegisterIP holds the string denoting the register_ip field in the database. FieldRegisterIP = "register_ip" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldComments holds the string denoting the comments field in the database. FieldComments = "comments" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // EdgeIdentities holds the string denoting the identities edge name in mutations. EdgeIdentities = "identities" // EdgeLoginProfile holds the string denoting the login_profile edge name in mutations. EdgeLoginProfile = "login_profile" // EdgePasswords holds the string denoting the passwords edge name in mutations. EdgePasswords = "passwords" // EdgeDevices holds the string denoting the devices edge name in mutations. EdgeDevices = "devices" // EdgeOrgs holds the string denoting the orgs edge name in mutations. EdgeOrgs = "orgs" // EdgePermissions holds the string denoting the permissions edge name in mutations. EdgePermissions = "permissions" // EdgeOauthClients holds the string denoting the oauth_clients edge name in mutations. EdgeOauthClients = "oauth_clients" // EdgeOrgUser holds the string denoting the org_user edge name in mutations. EdgeOrgUser = "org_user" // Table holds the table name of the user in the database. Table = "user" // IdentitiesTable is the table that holds the identities relation/edge. IdentitiesTable = "user_identity" // IdentitiesInverseTable is the table name for the UserIdentity entity. // It exists in this package in order to avoid circular dependency with the "useridentity" package. IdentitiesInverseTable = "user_identity" // IdentitiesColumn is the table column denoting the identities relation/edge. IdentitiesColumn = "user_id" // LoginProfileTable is the table that holds the login_profile relation/edge. LoginProfileTable = "user_login_profile" // LoginProfileInverseTable is the table name for the UserLoginProfile entity. // It exists in this package in order to avoid circular dependency with the "userloginprofile" package. LoginProfileInverseTable = "user_login_profile" // LoginProfileColumn is the table column denoting the login_profile relation/edge. LoginProfileColumn = "user_id" // PasswordsTable is the table that holds the passwords relation/edge. PasswordsTable = "user_password" // PasswordsInverseTable is the table name for the UserPassword entity. // It exists in this package in order to avoid circular dependency with the "userpassword" package. PasswordsInverseTable = "user_password" // PasswordsColumn is the table column denoting the passwords relation/edge. PasswordsColumn = "user_id" // DevicesTable is the table that holds the devices relation/edge. DevicesTable = "user_device" // DevicesInverseTable is the table name for the UserDevice entity. // It exists in this package in order to avoid circular dependency with the "userdevice" package. DevicesInverseTable = "user_device" // DevicesColumn is the table column denoting the devices relation/edge. DevicesColumn = "user_id" // OrgsTable is the table that holds the orgs relation/edge. The primary key declared below. OrgsTable = "org_user" // OrgsInverseTable is the table name for the Org entity. // It exists in this package in order to avoid circular dependency with the "org" package. OrgsInverseTable = "org" // PermissionsTable is the table that holds the permissions relation/edge. PermissionsTable = "permission" // PermissionsInverseTable is the table name for the Permission entity. // It exists in this package in order to avoid circular dependency with the "permission" package. PermissionsInverseTable = "permission" // PermissionsColumn is the table column denoting the permissions relation/edge. PermissionsColumn = "user_id" // OauthClientsTable is the table that holds the oauth_clients relation/edge. OauthClientsTable = "oauth_client" // OauthClientsInverseTable is the table name for the OauthClient entity. // It exists in this package in order to avoid circular dependency with the "oauthclient" package. OauthClientsInverseTable = "oauth_client" // OauthClientsColumn is the table column denoting the oauth_clients relation/edge. OauthClientsColumn = "user_id" // OrgUserTable is the table that holds the org_user relation/edge. OrgUserTable = "org_user" // OrgUserInverseTable is the table name for the OrgUser entity. // It exists in this package in order to avoid circular dependency with the "orguser" package. OrgUserInverseTable = "org_user" // OrgUserColumn is the table column denoting the org_user relation/edge. OrgUserColumn = "user_id" )
Variables ¶
var ( Hooks [3]ent.Hook Interceptors [1]ent.Interceptor // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // MobileValidator is a validator for the "mobile" field. It is called by the builders before save. MobileValidator func(string) error // RegisterIPValidator is a validator for the "register_ip" field. It is called by the builders before save. RegisterIPValidator func(string) error // AvatarValidator is a validator for the "avatar" field. It is called by the builders before save. AvatarValidator func(string) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() int )
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/woocoos/knockout/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedBy, FieldCreatedAt, FieldUpdatedBy, FieldUpdatedAt, FieldDeletedAt, FieldPrincipalName, FieldDisplayName, FieldEmail, FieldMobile, FieldUserType, FieldCreationType, FieldRegisterIP, FieldStatus, FieldComments, FieldAvatar, }
Columns holds all SQL columns for user fields.
var ( // OrgsPrimaryKey and OrgsColumn2 are the table columns denoting the // primary key for the orgs relation (M2M). OrgsPrimaryKey = []string{"org_id", "user_id"} )
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 Comments ¶
Comments applies equality check predicate on the "comments" field. It's identical to CommentsEQ.
func CommentsContains ¶
CommentsContains applies the Contains predicate on the "comments" field.
func CommentsContainsFold ¶
CommentsContainsFold applies the ContainsFold predicate on the "comments" field.
func CommentsEQ ¶
CommentsEQ applies the EQ predicate on the "comments" field.
func CommentsEqualFold ¶
CommentsEqualFold applies the EqualFold predicate on the "comments" field.
func CommentsGT ¶
CommentsGT applies the GT predicate on the "comments" field.
func CommentsGTE ¶
CommentsGTE applies the GTE predicate on the "comments" field.
func CommentsHasPrefix ¶
CommentsHasPrefix applies the HasPrefix predicate on the "comments" field.
func CommentsHasSuffix ¶
CommentsHasSuffix applies the HasSuffix predicate on the "comments" field.
func CommentsIn ¶
CommentsIn applies the In predicate on the "comments" field.
func CommentsIsNil ¶
CommentsIsNil applies the IsNil predicate on the "comments" field.
func CommentsLT ¶
CommentsLT applies the LT predicate on the "comments" field.
func CommentsLTE ¶
CommentsLTE applies the LTE predicate on the "comments" field.
func CommentsNEQ ¶
CommentsNEQ applies the NEQ predicate on the "comments" field.
func CommentsNotIn ¶
CommentsNotIn applies the NotIn predicate on the "comments" field.
func CommentsNotNil ¶
CommentsNotNil applies the NotNil predicate on the "comments" 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 CreationTypeEQ ¶
func CreationTypeEQ(v CreationType) predicate.User
CreationTypeEQ applies the EQ predicate on the "creation_type" field.
func CreationTypeIn ¶
func CreationTypeIn(vs ...CreationType) predicate.User
CreationTypeIn applies the In predicate on the "creation_type" field.
func CreationTypeNEQ ¶
func CreationTypeNEQ(v CreationType) predicate.User
CreationTypeNEQ applies the NEQ predicate on the "creation_type" field.
func CreationTypeNotIn ¶
func CreationTypeNotIn(vs ...CreationType) predicate.User
CreationTypeNotIn applies the NotIn predicate on the "creation_type" field.
func CreationTypeValidator ¶
func CreationTypeValidator(ct CreationType) error
CreationTypeValidator is a validator for the "creation_type" field enum values. It is called by the builders before save.
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 DisplayName ¶
DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.
func DisplayNameContains ¶
DisplayNameContains applies the Contains predicate on the "display_name" field.
func DisplayNameContainsFold ¶
DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.
func DisplayNameEQ ¶
DisplayNameEQ applies the EQ predicate on the "display_name" field.
func DisplayNameEqualFold ¶
DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.
func DisplayNameGT ¶
DisplayNameGT applies the GT predicate on the "display_name" field.
func DisplayNameGTE ¶
DisplayNameGTE applies the GTE predicate on the "display_name" field.
func DisplayNameHasPrefix ¶
DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.
func DisplayNameHasSuffix ¶
DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.
func DisplayNameIn ¶
DisplayNameIn applies the In predicate on the "display_name" field.
func DisplayNameLT ¶
DisplayNameLT applies the LT predicate on the "display_name" field.
func DisplayNameLTE ¶
DisplayNameLTE applies the LTE predicate on the "display_name" field.
func DisplayNameNEQ ¶
DisplayNameNEQ applies the NEQ predicate on the "display_name" field.
func DisplayNameNotIn ¶
DisplayNameNotIn applies the NotIn predicate on the "display_name" 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 HasDevices ¶
HasDevices applies the HasEdge predicate on the "devices" edge.
func HasDevicesWith ¶
func HasDevicesWith(preds ...predicate.UserDevice) predicate.User
HasDevicesWith applies the HasEdge predicate on the "devices" edge with a given conditions (other predicates).
func HasIdentities ¶
HasIdentities applies the HasEdge predicate on the "identities" edge.
func HasIdentitiesWith ¶
func HasIdentitiesWith(preds ...predicate.UserIdentity) predicate.User
HasIdentitiesWith applies the HasEdge predicate on the "identities" edge with a given conditions (other predicates).
func HasLoginProfile ¶
HasLoginProfile applies the HasEdge predicate on the "login_profile" edge.
func HasLoginProfileWith ¶
func HasLoginProfileWith(preds ...predicate.UserLoginProfile) predicate.User
HasLoginProfileWith applies the HasEdge predicate on the "login_profile" edge with a given conditions (other predicates).
func HasOauthClients ¶
HasOauthClients applies the HasEdge predicate on the "oauth_clients" edge.
func HasOauthClientsWith ¶
func HasOauthClientsWith(preds ...predicate.OauthClient) predicate.User
HasOauthClientsWith applies the HasEdge predicate on the "oauth_clients" edge with a given conditions (other predicates).
func HasOrgUser ¶
HasOrgUser applies the HasEdge predicate on the "org_user" edge.
func HasOrgUserWith ¶
HasOrgUserWith applies the HasEdge predicate on the "org_user" edge with a given conditions (other predicates).
func HasOrgsWith ¶
HasOrgsWith applies the HasEdge predicate on the "orgs" edge with a given conditions (other predicates).
func HasPasswords ¶
HasPasswords applies the HasEdge predicate on the "passwords" edge.
func HasPasswordsWith ¶
func HasPasswordsWith(preds ...predicate.UserPassword) predicate.User
HasPasswordsWith applies the HasEdge predicate on the "passwords" edge with a given conditions (other predicates).
func HasPermissions ¶
HasPermissions applies the HasEdge predicate on the "permissions" edge.
func HasPermissionsWith ¶
func HasPermissionsWith(preds ...predicate.Permission) predicate.User
HasPermissionsWith applies the HasEdge predicate on the "permissions" edge with a given conditions (other predicates).
func Mobile ¶
Mobile applies equality check predicate on the "mobile" field. It's identical to MobileEQ.
func MobileContains ¶
MobileContains applies the Contains predicate on the "mobile" field.
func MobileContainsFold ¶
MobileContainsFold applies the ContainsFold predicate on the "mobile" field.
func MobileEqualFold ¶
MobileEqualFold applies the EqualFold predicate on the "mobile" field.
func MobileHasPrefix ¶
MobileHasPrefix applies the HasPrefix predicate on the "mobile" field.
func MobileHasSuffix ¶
MobileHasSuffix applies the HasSuffix predicate on the "mobile" field.
func MobileIsNil ¶
MobileIsNil applies the IsNil predicate on the "mobile" field.
func MobileNotIn ¶
MobileNotIn applies the NotIn predicate on the "mobile" field.
func MobileNotNil ¶
MobileNotNil applies the NotNil predicate on the "mobile" field.
func PrincipalName ¶
PrincipalName applies equality check predicate on the "principal_name" field. It's identical to PrincipalNameEQ.
func PrincipalNameContains ¶
PrincipalNameContains applies the Contains predicate on the "principal_name" field.
func PrincipalNameContainsFold ¶
PrincipalNameContainsFold applies the ContainsFold predicate on the "principal_name" field.
func PrincipalNameEQ ¶
PrincipalNameEQ applies the EQ predicate on the "principal_name" field.
func PrincipalNameEqualFold ¶
PrincipalNameEqualFold applies the EqualFold predicate on the "principal_name" field.
func PrincipalNameGT ¶
PrincipalNameGT applies the GT predicate on the "principal_name" field.
func PrincipalNameGTE ¶
PrincipalNameGTE applies the GTE predicate on the "principal_name" field.
func PrincipalNameHasPrefix ¶
PrincipalNameHasPrefix applies the HasPrefix predicate on the "principal_name" field.
func PrincipalNameHasSuffix ¶
PrincipalNameHasSuffix applies the HasSuffix predicate on the "principal_name" field.
func PrincipalNameIn ¶
PrincipalNameIn applies the In predicate on the "principal_name" field.
func PrincipalNameLT ¶
PrincipalNameLT applies the LT predicate on the "principal_name" field.
func PrincipalNameLTE ¶
PrincipalNameLTE applies the LTE predicate on the "principal_name" field.
func PrincipalNameNEQ ¶
PrincipalNameNEQ applies the NEQ predicate on the "principal_name" field.
func PrincipalNameNotIn ¶
PrincipalNameNotIn applies the NotIn predicate on the "principal_name" field.
func RegisterIP ¶
RegisterIP applies equality check predicate on the "register_ip" field. It's identical to RegisterIPEQ.
func RegisterIPContains ¶
RegisterIPContains applies the Contains predicate on the "register_ip" field.
func RegisterIPContainsFold ¶
RegisterIPContainsFold applies the ContainsFold predicate on the "register_ip" field.
func RegisterIPEQ ¶
RegisterIPEQ applies the EQ predicate on the "register_ip" field.
func RegisterIPEqualFold ¶
RegisterIPEqualFold applies the EqualFold predicate on the "register_ip" field.
func RegisterIPGT ¶
RegisterIPGT applies the GT predicate on the "register_ip" field.
func RegisterIPGTE ¶
RegisterIPGTE applies the GTE predicate on the "register_ip" field.
func RegisterIPHasPrefix ¶
RegisterIPHasPrefix applies the HasPrefix predicate on the "register_ip" field.
func RegisterIPHasSuffix ¶
RegisterIPHasSuffix applies the HasSuffix predicate on the "register_ip" field.
func RegisterIPIn ¶
RegisterIPIn applies the In predicate on the "register_ip" field.
func RegisterIPLT ¶
RegisterIPLT applies the LT predicate on the "register_ip" field.
func RegisterIPLTE ¶
RegisterIPLTE applies the LTE predicate on the "register_ip" field.
func RegisterIPNEQ ¶
RegisterIPNEQ applies the NEQ predicate on the "register_ip" field.
func RegisterIPNotIn ¶
RegisterIPNotIn applies the NotIn predicate on the "register_ip" field.
func StatusEQ ¶
func StatusEQ(v typex.SimpleStatus) predicate.User
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...typex.SimpleStatus) predicate.User
StatusIn applies the In predicate on the "status" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v typex.SimpleStatus) predicate.User
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...typex.SimpleStatus) predicate.User
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s typex.SimpleStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
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 UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil 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 UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil 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 UserTypeEQ ¶
UserTypeEQ applies the EQ predicate on the "user_type" field.
func UserTypeIn ¶
UserTypeIn applies the In predicate on the "user_type" field.
func UserTypeNEQ ¶
UserTypeNEQ applies the NEQ predicate on the "user_type" field.
func UserTypeNotIn ¶
UserTypeNotIn applies the NotIn predicate on the "user_type" field.
func UserTypeValidator ¶
UserTypeValidator is a validator for the "user_type" field enum values. It is called by the builders before save.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type CreationType ¶
type CreationType string
CreationType defines the type for the "creation_type" enum field.
const ( CreationTypeInvitation CreationType = "invitation" CreationTypeRegister CreationType = "register" CreationTypeManual CreationType = "manual" )
CreationType values.
func (CreationType) MarshalGQL ¶
func (e CreationType) MarshalGQL(w io.Writer)
MarshalGQL implements graphql.Marshaler interface.
func (CreationType) String ¶
func (ct CreationType) String() string
func (*CreationType) UnmarshalGQL ¶
func (e *CreationType) UnmarshalGQL(val interface{}) error
UnmarshalGQL implements graphql.Unmarshaler interface.
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAvatar ¶
func ByAvatar(opts ...sql.OrderTermOption) OrderOption
ByAvatar orders the results by the avatar field.
func ByComments ¶
func ByComments(opts ...sql.OrderTermOption) OrderOption
ByComments orders the results by the comments 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 ByCreationType ¶
func ByCreationType(opts ...sql.OrderTermOption) OrderOption
ByCreationType orders the results by the creation_type field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDevices ¶
func ByDevices(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDevices orders the results by devices terms.
func ByDevicesCount ¶
func ByDevicesCount(opts ...sql.OrderTermOption) OrderOption
ByDevicesCount orders the results by devices count.
func ByDisplayName ¶
func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
ByDisplayName orders the results by the display_name field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByIdentities ¶
func ByIdentities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByIdentities orders the results by identities terms.
func ByIdentitiesCount ¶
func ByIdentitiesCount(opts ...sql.OrderTermOption) OrderOption
ByIdentitiesCount orders the results by identities count.
func ByLoginProfileField ¶
func ByLoginProfileField(field string, opts ...sql.OrderTermOption) OrderOption
ByLoginProfileField orders the results by login_profile field.
func ByMobile ¶
func ByMobile(opts ...sql.OrderTermOption) OrderOption
ByMobile orders the results by the mobile field.
func ByOauthClients ¶
func ByOauthClients(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOauthClients orders the results by oauth_clients terms.
func ByOauthClientsCount ¶
func ByOauthClientsCount(opts ...sql.OrderTermOption) OrderOption
ByOauthClientsCount orders the results by oauth_clients count.
func ByOrgUser ¶
func ByOrgUser(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOrgUser orders the results by org_user terms.
func ByOrgUserCount ¶
func ByOrgUserCount(opts ...sql.OrderTermOption) OrderOption
ByOrgUserCount orders the results by org_user count.
func ByOrgs ¶
func ByOrgs(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOrgs orders the results by orgs terms.
func ByOrgsCount ¶
func ByOrgsCount(opts ...sql.OrderTermOption) OrderOption
ByOrgsCount orders the results by orgs count.
func ByPasswords ¶
func ByPasswords(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPasswords orders the results by passwords terms.
func ByPasswordsCount ¶
func ByPasswordsCount(opts ...sql.OrderTermOption) OrderOption
ByPasswordsCount orders the results by passwords count.
func ByPermissions ¶
func ByPermissions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPermissions orders the results by permissions terms.
func ByPermissionsCount ¶
func ByPermissionsCount(opts ...sql.OrderTermOption) OrderOption
ByPermissionsCount orders the results by permissions count.
func ByPrincipalName ¶
func ByPrincipalName(opts ...sql.OrderTermOption) OrderOption
ByPrincipalName orders the results by the principal_name field.
func ByRegisterIP ¶
func ByRegisterIP(opts ...sql.OrderTermOption) OrderOption
ByRegisterIP orders the results by the register_ip field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status 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 ByUserType ¶
func ByUserType(opts ...sql.OrderTermOption) OrderOption
ByUserType orders the results by the user_type field.
type UserType ¶
type UserType string
UserType defines the type for the "user_type" enum field.
func (UserType) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*UserType) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.