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 CitizenshipID(v int) predicate.User
- func CitizenshipIDEQ(v int) predicate.User
- func CitizenshipIDIn(vs ...int) predicate.User
- func CitizenshipIDIsNil() predicate.User
- func CitizenshipIDNEQ(v int) predicate.User
- func CitizenshipIDNotIn(vs ...int) predicate.User
- func CitizenshipIDNotNil() 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 FirstName(v string) predicate.User
- func FirstNameContains(v string) predicate.User
- func FirstNameContainsFold(v string) predicate.User
- func FirstNameEQ(v string) predicate.User
- func FirstNameEqualFold(v string) predicate.User
- func FirstNameGT(v string) predicate.User
- func FirstNameGTE(v string) predicate.User
- func FirstNameHasPrefix(v string) predicate.User
- func FirstNameHasSuffix(v string) predicate.User
- func FirstNameIn(vs ...string) predicate.User
- func FirstNameIsNil() predicate.User
- func FirstNameLT(v string) predicate.User
- func FirstNameLTE(v string) predicate.User
- func FirstNameNEQ(v string) predicate.User
- func FirstNameNotIn(vs ...string) predicate.User
- func FirstNameNotNil() 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 HasAddresses() predicate.User
- func HasAddressesWith(preds ...predicate.UserAddr) predicate.User
- func HasCitizenship() predicate.User
- func HasCitizenshipWith(preds ...predicate.Country) 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 HasUserQuota() predicate.User
- func HasUserQuotaWith(preds ...predicate.Quota) 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 Lang(v string) predicate.User
- func LangContains(v string) predicate.User
- func LangContainsFold(v string) predicate.User
- func LangEQ(v string) predicate.User
- func LangEqualFold(v string) predicate.User
- func LangGT(v string) predicate.User
- func LangGTE(v string) predicate.User
- func LangHasPrefix(v string) predicate.User
- func LangHasSuffix(v string) predicate.User
- func LangIn(vs ...string) predicate.User
- func LangIsNil() predicate.User
- func LangLT(v string) predicate.User
- func LangLTE(v string) predicate.User
- func LangNEQ(v string) predicate.User
- func LangNotIn(vs ...string) predicate.User
- func LangNotNil() predicate.User
- func LastName(v string) predicate.User
- func LastNameContains(v string) predicate.User
- func LastNameContainsFold(v string) predicate.User
- func LastNameEQ(v string) predicate.User
- func LastNameEqualFold(v string) predicate.User
- func LastNameGT(v string) predicate.User
- func LastNameGTE(v string) predicate.User
- func LastNameHasPrefix(v string) predicate.User
- func LastNameHasSuffix(v string) predicate.User
- func LastNameIn(vs ...string) predicate.User
- func LastNameIsNil() predicate.User
- func LastNameLT(v string) predicate.User
- func LastNameLTE(v string) predicate.User
- func LastNameNEQ(v string) predicate.User
- func LastNameNotIn(vs ...string) predicate.User
- func LastNameNotNil() predicate.User
- func MiddleName(v string) predicate.User
- func MiddleNameContains(v string) predicate.User
- func MiddleNameContainsFold(v string) predicate.User
- func MiddleNameEQ(v string) predicate.User
- func MiddleNameEqualFold(v string) predicate.User
- func MiddleNameGT(v string) predicate.User
- func MiddleNameGTE(v string) predicate.User
- func MiddleNameHasPrefix(v string) predicate.User
- func MiddleNameHasSuffix(v string) predicate.User
- func MiddleNameIn(vs ...string) predicate.User
- func MiddleNameIsNil() predicate.User
- func MiddleNameLT(v string) predicate.User
- func MiddleNameLTE(v string) predicate.User
- func MiddleNameNEQ(v string) predicate.User
- func MiddleNameNotIn(vs ...string) predicate.User
- func MiddleNameNotNil() 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 types.UserStatus) predicate.User
- func StatusIn(vs ...types.UserStatus) predicate.User
- func StatusIsNil() predicate.User
- func StatusNEQ(v types.UserStatus) predicate.User
- func StatusNotIn(vs ...types.UserStatus) predicate.User
- func StatusNotNil() predicate.User
- func StatusValidator(s types.UserStatus) 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 Gender
- type OrderOption
- func ByAddresses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAddressesCount(opts ...sql.OrderTermOption) OrderOption
- func ByAvatar(opts ...sql.OrderTermOption) OrderOption
- func ByCitizenshipField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCitizenshipID(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 ByFirstName(opts ...sql.OrderTermOption) OrderOption
- func ByGender(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 ByLang(opts ...sql.OrderTermOption) OrderOption
- func ByLastName(opts ...sql.OrderTermOption) OrderOption
- func ByLoginProfileField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMiddleName(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 ByUserQuota(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUserQuotaCount(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" // 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" // FieldGender holds the string denoting the gender field in the database. FieldGender = "gender" // FieldCitizenshipID holds the string denoting the citizenship_id field in the database. FieldCitizenshipID = "citizenship_id" // FieldFirstName holds the string denoting the first_name field in the database. FieldFirstName = "first_name" // FieldMiddleName holds the string denoting the middle_name field in the database. FieldMiddleName = "middle_name" // FieldLastName holds the string denoting the last_name field in the database. FieldLastName = "last_name" // FieldLang holds the string denoting the lang field in the database. FieldLang = "lang" // 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" // EdgeAddresses holds the string denoting the addresses edge name in mutations. EdgeAddresses = "addresses" // EdgeCitizenship holds the string denoting the citizenship edge name in mutations. EdgeCitizenship = "citizenship" // EdgeUserQuota holds the string denoting the user_quota edge name in mutations. EdgeUserQuota = "user_quota" // 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" // AddressesTable is the table that holds the addresses relation/edge. AddressesTable = "user_addr" // AddressesInverseTable is the table name for the UserAddr entity. // It exists in this package in order to avoid circular dependency with the "useraddr" package. AddressesInverseTable = "user_addr" // AddressesColumn is the table column denoting the addresses relation/edge. AddressesColumn = "user_id" // CitizenshipTable is the table that holds the citizenship relation/edge. CitizenshipTable = "user" // CitizenshipInverseTable is the table name for the Country entity. // It exists in this package in order to avoid circular dependency with the "country" package. CitizenshipInverseTable = "country" // CitizenshipColumn is the table column denoting the citizenship relation/edge. CitizenshipColumn = "citizenship_id" // UserQuotaTable is the table that holds the user_quota relation/edge. UserQuotaTable = "quota" // UserQuotaInverseTable is the table name for the Quota entity. // It exists in this package in order to avoid circular dependency with the "quota" package. UserQuotaInverseTable = "quota" // UserQuotaColumn is the table column denoting the user_quota relation/edge. UserQuotaColumn = "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" )
const DefaultGender = GenderPrivacy
GenderPrivacy is the default value of the Gender enum.
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 // 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 // FirstNameValidator is a validator for the "first_name" field. It is called by the builders before save. FirstNameValidator func(string) error // MiddleNameValidator is a validator for the "middle_name" field. It is called by the builders before save. MiddleNameValidator func(string) error // LastNameValidator is a validator for the "last_name" field. It is called by the builders before save. LastNameValidator func(string) error )
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, FieldUserType, FieldCreationType, FieldRegisterIP, FieldStatus, FieldComments, FieldAvatar, FieldGender, FieldCitizenshipID, FieldFirstName, FieldMiddleName, FieldLastName, FieldLang, }
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 CitizenshipID ¶
CitizenshipID applies equality check predicate on the "citizenship_id" field. It's identical to CitizenshipIDEQ.
func CitizenshipIDEQ ¶
CitizenshipIDEQ applies the EQ predicate on the "citizenship_id" field.
func CitizenshipIDIn ¶
CitizenshipIDIn applies the In predicate on the "citizenship_id" field.
func CitizenshipIDIsNil ¶
CitizenshipIDIsNil applies the IsNil predicate on the "citizenship_id" field.
func CitizenshipIDNEQ ¶
CitizenshipIDNEQ applies the NEQ predicate on the "citizenship_id" field.
func CitizenshipIDNotIn ¶
CitizenshipIDNotIn applies the NotIn predicate on the "citizenship_id" field.
func CitizenshipIDNotNil ¶
CitizenshipIDNotNil applies the NotNil predicate on the "citizenship_id" 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 FirstName ¶
FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.
func FirstNameContains ¶
FirstNameContains applies the Contains predicate on the "first_name" field.
func FirstNameContainsFold ¶
FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.
func FirstNameEQ ¶
FirstNameEQ applies the EQ predicate on the "first_name" field.
func FirstNameEqualFold ¶
FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.
func FirstNameGT ¶
FirstNameGT applies the GT predicate on the "first_name" field.
func FirstNameGTE ¶
FirstNameGTE applies the GTE predicate on the "first_name" field.
func FirstNameHasPrefix ¶
FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.
func FirstNameHasSuffix ¶
FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.
func FirstNameIn ¶
FirstNameIn applies the In predicate on the "first_name" field.
func FirstNameIsNil ¶
FirstNameIsNil applies the IsNil predicate on the "first_name" field.
func FirstNameLT ¶
FirstNameLT applies the LT predicate on the "first_name" field.
func FirstNameLTE ¶
FirstNameLTE applies the LTE predicate on the "first_name" field.
func FirstNameNEQ ¶
FirstNameNEQ applies the NEQ predicate on the "first_name" field.
func FirstNameNotIn ¶
FirstNameNotIn applies the NotIn predicate on the "first_name" field.
func FirstNameNotNil ¶
FirstNameNotNil applies the NotNil predicate on the "first_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 HasAddresses ¶
HasAddresses applies the HasEdge predicate on the "addresses" edge.
func HasAddressesWith ¶
HasAddressesWith applies the HasEdge predicate on the "addresses" edge with a given conditions (other predicates).
func HasCitizenship ¶
HasCitizenship applies the HasEdge predicate on the "citizenship" edge.
func HasCitizenshipWith ¶
HasCitizenshipWith applies the HasEdge predicate on the "citizenship" edge with a given conditions (other predicates).
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 HasUserQuota ¶
HasUserQuota applies the HasEdge predicate on the "user_quota" edge.
func HasUserQuotaWith ¶
HasUserQuotaWith applies the HasEdge predicate on the "user_quota" edge with a given conditions (other predicates).
func LangContains ¶
LangContains applies the Contains predicate on the "lang" field.
func LangContainsFold ¶
LangContainsFold applies the ContainsFold predicate on the "lang" field.
func LangEqualFold ¶
LangEqualFold applies the EqualFold predicate on the "lang" field.
func LangHasPrefix ¶
LangHasPrefix applies the HasPrefix predicate on the "lang" field.
func LangHasSuffix ¶
LangHasSuffix applies the HasSuffix predicate on the "lang" field.
func LangNotNil ¶
LangNotNil applies the NotNil predicate on the "lang" field.
func LastName ¶
LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.
func LastNameContains ¶
LastNameContains applies the Contains predicate on the "last_name" field.
func LastNameContainsFold ¶
LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.
func LastNameEQ ¶
LastNameEQ applies the EQ predicate on the "last_name" field.
func LastNameEqualFold ¶
LastNameEqualFold applies the EqualFold predicate on the "last_name" field.
func LastNameGT ¶
LastNameGT applies the GT predicate on the "last_name" field.
func LastNameGTE ¶
LastNameGTE applies the GTE predicate on the "last_name" field.
func LastNameHasPrefix ¶
LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.
func LastNameHasSuffix ¶
LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.
func LastNameIn ¶
LastNameIn applies the In predicate on the "last_name" field.
func LastNameIsNil ¶
LastNameIsNil applies the IsNil predicate on the "last_name" field.
func LastNameLT ¶
LastNameLT applies the LT predicate on the "last_name" field.
func LastNameLTE ¶
LastNameLTE applies the LTE predicate on the "last_name" field.
func LastNameNEQ ¶
LastNameNEQ applies the NEQ predicate on the "last_name" field.
func LastNameNotIn ¶
LastNameNotIn applies the NotIn predicate on the "last_name" field.
func LastNameNotNil ¶
LastNameNotNil applies the NotNil predicate on the "last_name" field.
func MiddleName ¶
MiddleName applies equality check predicate on the "middle_name" field. It's identical to MiddleNameEQ.
func MiddleNameContains ¶
MiddleNameContains applies the Contains predicate on the "middle_name" field.
func MiddleNameContainsFold ¶
MiddleNameContainsFold applies the ContainsFold predicate on the "middle_name" field.
func MiddleNameEQ ¶
MiddleNameEQ applies the EQ predicate on the "middle_name" field.
func MiddleNameEqualFold ¶
MiddleNameEqualFold applies the EqualFold predicate on the "middle_name" field.
func MiddleNameGT ¶
MiddleNameGT applies the GT predicate on the "middle_name" field.
func MiddleNameGTE ¶
MiddleNameGTE applies the GTE predicate on the "middle_name" field.
func MiddleNameHasPrefix ¶
MiddleNameHasPrefix applies the HasPrefix predicate on the "middle_name" field.
func MiddleNameHasSuffix ¶
MiddleNameHasSuffix applies the HasSuffix predicate on the "middle_name" field.
func MiddleNameIn ¶
MiddleNameIn applies the In predicate on the "middle_name" field.
func MiddleNameIsNil ¶
MiddleNameIsNil applies the IsNil predicate on the "middle_name" field.
func MiddleNameLT ¶
MiddleNameLT applies the LT predicate on the "middle_name" field.
func MiddleNameLTE ¶
MiddleNameLTE applies the LTE predicate on the "middle_name" field.
func MiddleNameNEQ ¶
MiddleNameNEQ applies the NEQ predicate on the "middle_name" field.
func MiddleNameNotIn ¶
MiddleNameNotIn applies the NotIn predicate on the "middle_name" field.
func MiddleNameNotNil ¶
MiddleNameNotNil applies the NotNil predicate on the "middle_name" 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 types.UserStatus) predicate.User
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...types.UserStatus) 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 types.UserStatus) predicate.User
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...types.UserStatus) 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 types.UserStatus) 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 Gender ¶
type Gender string
Gender defines the type for the "gender" enum field.
const ( GenderPrivacy Gender = "privacy" GenderMale Gender = "male" GenderFemale Gender = "female" )
Gender values.
func (Gender) MarshalGQL ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Gender) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAddresses ¶
func ByAddresses(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAddresses orders the results by addresses terms.
func ByAddressesCount ¶
func ByAddressesCount(opts ...sql.OrderTermOption) OrderOption
ByAddressesCount orders the results by addresses count.
func ByAvatar ¶
func ByAvatar(opts ...sql.OrderTermOption) OrderOption
ByAvatar orders the results by the avatar field.
func ByCitizenshipField ¶
func ByCitizenshipField(field string, opts ...sql.OrderTermOption) OrderOption
ByCitizenshipField orders the results by citizenship field.
func ByCitizenshipID ¶
func ByCitizenshipID(opts ...sql.OrderTermOption) OrderOption
ByCitizenshipID orders the results by the citizenship_id 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 ByFirstName ¶
func ByFirstName(opts ...sql.OrderTermOption) OrderOption
ByFirstName orders the results by the first_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 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 ByLang ¶
func ByLang(opts ...sql.OrderTermOption) OrderOption
ByLang orders the results by the lang field.
func ByLastName ¶
func ByLastName(opts ...sql.OrderTermOption) OrderOption
ByLastName orders the results by the last_name field.
func ByLoginProfileField ¶
func ByLoginProfileField(field string, opts ...sql.OrderTermOption) OrderOption
ByLoginProfileField orders the results by login_profile field.
func ByMiddleName ¶
func ByMiddleName(opts ...sql.OrderTermOption) OrderOption
ByMiddleName orders the results by the middle_name 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 ByUserQuota ¶
func ByUserQuota(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUserQuota orders the results by user_quota terms.
func ByUserQuotaCount ¶
func ByUserQuotaCount(opts ...sql.OrderTermOption) OrderOption
ByUserQuotaCount orders the results by user_quota count.
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.