Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func AuthProviderEQ(v enums.AuthProvider) predicate.User
- func AuthProviderIn(vs ...enums.AuthProvider) predicate.User
- func AuthProviderNEQ(v enums.AuthProvider) predicate.User
- func AuthProviderNotIn(vs ...enums.AuthProvider) predicate.User
- func AuthProviderValidator(ap enums.AuthProvider) error
- func AvatarLocalFile(v string) predicate.User
- func AvatarLocalFileContains(v string) predicate.User
- func AvatarLocalFileContainsFold(v string) predicate.User
- func AvatarLocalFileEQ(v string) predicate.User
- func AvatarLocalFileEqualFold(v string) predicate.User
- func AvatarLocalFileGT(v string) predicate.User
- func AvatarLocalFileGTE(v string) predicate.User
- func AvatarLocalFileHasPrefix(v string) predicate.User
- func AvatarLocalFileHasSuffix(v string) predicate.User
- func AvatarLocalFileIn(vs ...string) predicate.User
- func AvatarLocalFileIsNil() predicate.User
- func AvatarLocalFileLT(v string) predicate.User
- func AvatarLocalFileLTE(v string) predicate.User
- func AvatarLocalFileNEQ(v string) predicate.User
- func AvatarLocalFileNotIn(vs ...string) predicate.User
- func AvatarLocalFileNotNil() predicate.User
- func AvatarRemoteURL(v string) predicate.User
- func AvatarRemoteURLContains(v string) predicate.User
- func AvatarRemoteURLContainsFold(v string) predicate.User
- func AvatarRemoteURLEQ(v string) predicate.User
- func AvatarRemoteURLEqualFold(v string) predicate.User
- func AvatarRemoteURLGT(v string) predicate.User
- func AvatarRemoteURLGTE(v string) predicate.User
- func AvatarRemoteURLHasPrefix(v string) predicate.User
- func AvatarRemoteURLHasSuffix(v string) predicate.User
- func AvatarRemoteURLIn(vs ...string) predicate.User
- func AvatarRemoteURLIsNil() predicate.User
- func AvatarRemoteURLLT(v string) predicate.User
- func AvatarRemoteURLLTE(v string) predicate.User
- func AvatarRemoteURLNEQ(v string) predicate.User
- func AvatarRemoteURLNotIn(vs ...string) predicate.User
- func AvatarRemoteURLNotNil() predicate.User
- func AvatarUpdatedAt(v time.Time) predicate.User
- func AvatarUpdatedAtEQ(v time.Time) predicate.User
- func AvatarUpdatedAtGT(v time.Time) predicate.User
- func AvatarUpdatedAtGTE(v time.Time) predicate.User
- func AvatarUpdatedAtIn(vs ...time.Time) predicate.User
- func AvatarUpdatedAtIsNil() predicate.User
- func AvatarUpdatedAtLT(v time.Time) predicate.User
- func AvatarUpdatedAtLTE(v time.Time) predicate.User
- func AvatarUpdatedAtNEQ(v time.Time) predicate.User
- func AvatarUpdatedAtNotIn(vs ...time.Time) predicate.User
- func AvatarUpdatedAtNotNil() 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 CreatedAtIsNil() 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 CreatedAtNotNil() predicate.User
- func CreatedBy(v string) predicate.User
- func CreatedByContains(v string) predicate.User
- func CreatedByContainsFold(v string) predicate.User
- func CreatedByEQ(v string) predicate.User
- func CreatedByEqualFold(v string) predicate.User
- func CreatedByGT(v string) predicate.User
- func CreatedByGTE(v string) predicate.User
- func CreatedByHasPrefix(v string) predicate.User
- func CreatedByHasSuffix(v string) predicate.User
- func CreatedByIn(vs ...string) predicate.User
- func CreatedByIsNil() predicate.User
- func CreatedByLT(v string) predicate.User
- func CreatedByLTE(v string) predicate.User
- func CreatedByNEQ(v string) predicate.User
- func CreatedByNotIn(vs ...string) predicate.User
- func CreatedByNotNil() predicate.User
- func DeletedAt(v time.Time) predicate.User
- func DeletedAtEQ(v time.Time) predicate.User
- func DeletedAtGT(v time.Time) predicate.User
- func DeletedAtGTE(v time.Time) predicate.User
- func DeletedAtIn(vs ...time.Time) predicate.User
- func DeletedAtIsNil() predicate.User
- func DeletedAtLT(v time.Time) predicate.User
- func DeletedAtLTE(v time.Time) predicate.User
- func DeletedAtNEQ(v time.Time) predicate.User
- func DeletedAtNotIn(vs ...time.Time) predicate.User
- func DeletedAtNotNil() predicate.User
- func DeletedBy(v string) predicate.User
- func DeletedByContains(v string) predicate.User
- func DeletedByContainsFold(v string) predicate.User
- func DeletedByEQ(v string) predicate.User
- func DeletedByEqualFold(v string) predicate.User
- func DeletedByGT(v string) predicate.User
- func DeletedByGTE(v string) predicate.User
- func DeletedByHasPrefix(v string) predicate.User
- func DeletedByHasSuffix(v string) predicate.User
- func DeletedByIn(vs ...string) predicate.User
- func DeletedByIsNil() predicate.User
- func DeletedByLT(v string) predicate.User
- func DeletedByLTE(v string) predicate.User
- func DeletedByNEQ(v string) predicate.User
- func DeletedByNotIn(vs ...string) predicate.User
- func DeletedByNotNil() 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 EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(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 HasEmailVerificationTokens() predicate.User
- func HasEmailVerificationTokensWith(preds ...predicate.EmailVerificationToken) predicate.User
- func HasEvents() predicate.User
- func HasEventsWith(preds ...predicate.Event) predicate.User
- func HasFiles() predicate.User
- func HasFilesWith(preds ...predicate.File) predicate.User
- func HasGroupMemberships() predicate.User
- func HasGroupMembershipsWith(preds ...predicate.GroupMembership) predicate.User
- func HasGroups() predicate.User
- func HasGroupsWith(preds ...predicate.Group) predicate.User
- func HasOrgMemberships() predicate.User
- func HasOrgMembershipsWith(preds ...predicate.OrgMembership) predicate.User
- func HasOrganizations() predicate.User
- func HasOrganizationsWith(preds ...predicate.Organization) predicate.User
- func HasPasswordResetTokens() predicate.User
- func HasPasswordResetTokensWith(preds ...predicate.PasswordResetToken) predicate.User
- func HasPersonalAccessTokens() predicate.User
- func HasPersonalAccessTokensWith(preds ...predicate.PersonalAccessToken) predicate.User
- func HasSetting() predicate.User
- func HasSettingWith(preds ...predicate.UserSetting) predicate.User
- func HasTfaSettings() predicate.User
- func HasTfaSettingsWith(preds ...predicate.TFASetting) predicate.User
- func HasWebauthn() predicate.User
- func HasWebauthnWith(preds ...predicate.Webauthn) predicate.User
- func ID(id string) predicate.User
- func IDContainsFold(id string) predicate.User
- func IDEQ(id string) predicate.User
- func IDEqualFold(id string) predicate.User
- func IDGT(id string) predicate.User
- func IDGTE(id string) predicate.User
- func IDIn(ids ...string) predicate.User
- func IDLT(id string) predicate.User
- func IDLTE(id string) predicate.User
- func IDNEQ(id string) predicate.User
- func IDNotIn(ids ...string) 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 LastSeen(v time.Time) predicate.User
- func LastSeenEQ(v time.Time) predicate.User
- func LastSeenGT(v time.Time) predicate.User
- func LastSeenGTE(v time.Time) predicate.User
- func LastSeenIn(vs ...time.Time) predicate.User
- func LastSeenIsNil() predicate.User
- func LastSeenLT(v time.Time) predicate.User
- func LastSeenLTE(v time.Time) predicate.User
- func LastSeenNEQ(v time.Time) predicate.User
- func LastSeenNotIn(vs ...time.Time) predicate.User
- func LastSeenNotNil() predicate.User
- func MappingID(v string) predicate.User
- func MappingIDContains(v string) predicate.User
- func MappingIDContainsFold(v string) predicate.User
- func MappingIDEQ(v string) predicate.User
- func MappingIDEqualFold(v string) predicate.User
- func MappingIDGT(v string) predicate.User
- func MappingIDGTE(v string) predicate.User
- func MappingIDHasPrefix(v string) predicate.User
- func MappingIDHasSuffix(v string) predicate.User
- func MappingIDIn(vs ...string) predicate.User
- func MappingIDLT(v string) predicate.User
- func MappingIDLTE(v string) predicate.User
- func MappingIDNEQ(v string) predicate.User
- func MappingIDNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func Password(v string) predicate.User
- func PasswordContains(v string) predicate.User
- func PasswordContainsFold(v string) predicate.User
- func PasswordEQ(v string) predicate.User
- func PasswordEqualFold(v string) predicate.User
- func PasswordGT(v string) predicate.User
- func PasswordGTE(v string) predicate.User
- func PasswordHasPrefix(v string) predicate.User
- func PasswordHasSuffix(v string) predicate.User
- func PasswordIn(vs ...string) predicate.User
- func PasswordIsNil() predicate.User
- func PasswordLT(v string) predicate.User
- func PasswordLTE(v string) predicate.User
- func PasswordNEQ(v string) predicate.User
- func PasswordNotIn(vs ...string) predicate.User
- func PasswordNotNil() predicate.User
- func RoleEQ(v enums.Role) predicate.User
- func RoleIn(vs ...enums.Role) predicate.User
- func RoleIsNil() predicate.User
- func RoleNEQ(v enums.Role) predicate.User
- func RoleNotIn(vs ...enums.Role) predicate.User
- func RoleNotNil() predicate.User
- func RoleValidator(r enums.Role) error
- func Sub(v string) predicate.User
- func SubContains(v string) predicate.User
- func SubContainsFold(v string) predicate.User
- func SubEQ(v string) predicate.User
- func SubEqualFold(v string) predicate.User
- func SubGT(v string) predicate.User
- func SubGTE(v string) predicate.User
- func SubHasPrefix(v string) predicate.User
- func SubHasSuffix(v string) predicate.User
- func SubIn(vs ...string) predicate.User
- func SubIsNil() predicate.User
- func SubLT(v string) predicate.User
- func SubLTE(v string) predicate.User
- func SubNEQ(v string) predicate.User
- func SubNotIn(vs ...string) predicate.User
- func SubNotNil() predicate.User
- func TagsIsNil() predicate.User
- func TagsNotNil() predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func 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 string) predicate.User
- func UpdatedByContains(v string) predicate.User
- func UpdatedByContainsFold(v string) predicate.User
- func UpdatedByEQ(v string) predicate.User
- func UpdatedByEqualFold(v string) predicate.User
- func UpdatedByGT(v string) predicate.User
- func UpdatedByGTE(v string) predicate.User
- func UpdatedByHasPrefix(v string) predicate.User
- func UpdatedByHasSuffix(v string) predicate.User
- func UpdatedByIn(vs ...string) predicate.User
- func UpdatedByIsNil() predicate.User
- func UpdatedByLT(v string) predicate.User
- func UpdatedByLTE(v string) predicate.User
- func UpdatedByNEQ(v string) predicate.User
- func UpdatedByNotIn(vs ...string) predicate.User
- func UpdatedByNotNil() predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByAuthProvider(opts ...sql.OrderTermOption) OrderOption
- func ByAvatarLocalFile(opts ...sql.OrderTermOption) OrderOption
- func ByAvatarRemoteURL(opts ...sql.OrderTermOption) OrderOption
- func ByAvatarUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayName(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByEmailVerificationTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEmailVerificationTokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEventsCount(opts ...sql.OrderTermOption) OrderOption
- func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
- func ByFirstName(opts ...sql.OrderTermOption) OrderOption
- func ByGroupMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupMembershipsCount(opts ...sql.OrderTermOption) OrderOption
- func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastName(opts ...sql.OrderTermOption) OrderOption
- func ByLastSeen(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(opts ...sql.OrderTermOption) OrderOption
- func ByOrgMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrgMembershipsCount(opts ...sql.OrderTermOption) OrderOption
- func ByOrganizations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOrganizationsCount(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByPasswordResetTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPasswordResetTokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByPersonalAccessTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPersonalAccessTokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByRole(opts ...sql.OrderTermOption) OrderOption
- func BySettingField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySub(opts ...sql.OrderTermOption) OrderOption
- func ByTfaSettings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTfaSettingsCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByWebauthn(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByWebauthnCount(opts ...sql.OrderTermOption) OrderOption
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" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldDeletedBy holds the string denoting the deleted_by field in the database. FieldDeletedBy = "deleted_by" // FieldMappingID holds the string denoting the mapping_id field in the database. FieldMappingID = "mapping_id" // FieldTags holds the string denoting the tags field in the database. FieldTags = "tags" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldFirstName holds the string denoting the first_name field in the database. FieldFirstName = "first_name" // FieldLastName holds the string denoting the last_name field in the database. FieldLastName = "last_name" // FieldDisplayName holds the string denoting the display_name field in the database. FieldDisplayName = "display_name" // FieldAvatarRemoteURL holds the string denoting the avatar_remote_url field in the database. FieldAvatarRemoteURL = "avatar_remote_url" // FieldAvatarLocalFile holds the string denoting the avatar_local_file field in the database. FieldAvatarLocalFile = "avatar_local_file" // FieldAvatarUpdatedAt holds the string denoting the avatar_updated_at field in the database. FieldAvatarUpdatedAt = "avatar_updated_at" // FieldLastSeen holds the string denoting the last_seen field in the database. FieldLastSeen = "last_seen" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldSub holds the string denoting the sub field in the database. FieldSub = "sub" // FieldAuthProvider holds the string denoting the auth_provider field in the database. FieldAuthProvider = "auth_provider" // FieldRole holds the string denoting the role field in the database. FieldRole = "role" // EdgePersonalAccessTokens holds the string denoting the personal_access_tokens edge name in mutations. EdgePersonalAccessTokens = "personal_access_tokens" // EdgeTfaSettings holds the string denoting the tfa_settings edge name in mutations. EdgeTfaSettings = "tfa_settings" // EdgeSetting holds the string denoting the setting edge name in mutations. EdgeSetting = "setting" // EdgeEmailVerificationTokens holds the string denoting the email_verification_tokens edge name in mutations. EdgeEmailVerificationTokens = "email_verification_tokens" // EdgePasswordResetTokens holds the string denoting the password_reset_tokens edge name in mutations. EdgePasswordResetTokens = "password_reset_tokens" // EdgeGroups holds the string denoting the groups edge name in mutations. EdgeGroups = "groups" // EdgeOrganizations holds the string denoting the organizations edge name in mutations. EdgeOrganizations = "organizations" // EdgeWebauthn holds the string denoting the webauthn edge name in mutations. EdgeWebauthn = "webauthn" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // EdgeEvents holds the string denoting the events edge name in mutations. EdgeEvents = "events" // EdgeGroupMemberships holds the string denoting the group_memberships edge name in mutations. EdgeGroupMemberships = "group_memberships" // EdgeOrgMemberships holds the string denoting the org_memberships edge name in mutations. EdgeOrgMemberships = "org_memberships" // Table holds the table name of the user in the database. Table = "users" // PersonalAccessTokensTable is the table that holds the personal_access_tokens relation/edge. PersonalAccessTokensTable = "personal_access_tokens" // PersonalAccessTokensInverseTable is the table name for the PersonalAccessToken entity. // It exists in this package in order to avoid circular dependency with the "personalaccesstoken" package. PersonalAccessTokensInverseTable = "personal_access_tokens" // PersonalAccessTokensColumn is the table column denoting the personal_access_tokens relation/edge. PersonalAccessTokensColumn = "owner_id" // TfaSettingsTable is the table that holds the tfa_settings relation/edge. TfaSettingsTable = "tfa_settings" // TfaSettingsInverseTable is the table name for the TFASetting entity. // It exists in this package in order to avoid circular dependency with the "tfasetting" package. TfaSettingsInverseTable = "tfa_settings" // TfaSettingsColumn is the table column denoting the tfa_settings relation/edge. TfaSettingsColumn = "owner_id" // SettingTable is the table that holds the setting relation/edge. SettingTable = "user_settings" // SettingInverseTable is the table name for the UserSetting entity. // It exists in this package in order to avoid circular dependency with the "usersetting" package. SettingInverseTable = "user_settings" // SettingColumn is the table column denoting the setting relation/edge. SettingColumn = "user_id" // EmailVerificationTokensTable is the table that holds the email_verification_tokens relation/edge. EmailVerificationTokensTable = "email_verification_tokens" // EmailVerificationTokensInverseTable is the table name for the EmailVerificationToken entity. // It exists in this package in order to avoid circular dependency with the "emailverificationtoken" package. EmailVerificationTokensInverseTable = "email_verification_tokens" // EmailVerificationTokensColumn is the table column denoting the email_verification_tokens relation/edge. EmailVerificationTokensColumn = "owner_id" // PasswordResetTokensTable is the table that holds the password_reset_tokens relation/edge. PasswordResetTokensTable = "password_reset_tokens" // PasswordResetTokensInverseTable is the table name for the PasswordResetToken entity. // It exists in this package in order to avoid circular dependency with the "passwordresettoken" package. PasswordResetTokensInverseTable = "password_reset_tokens" // PasswordResetTokensColumn is the table column denoting the password_reset_tokens relation/edge. PasswordResetTokensColumn = "owner_id" // GroupsTable is the table that holds the groups relation/edge. The primary key declared below. GroupsTable = "group_memberships" // GroupsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupsInverseTable = "groups" // OrganizationsTable is the table that holds the organizations relation/edge. The primary key declared below. OrganizationsTable = "org_memberships" // OrganizationsInverseTable is the table name for the Organization entity. // It exists in this package in order to avoid circular dependency with the "organization" package. OrganizationsInverseTable = "organizations" // WebauthnTable is the table that holds the webauthn relation/edge. WebauthnTable = "webauthns" // WebauthnInverseTable is the table name for the Webauthn entity. // It exists in this package in order to avoid circular dependency with the "webauthn" package. WebauthnInverseTable = "webauthns" // WebauthnColumn is the table column denoting the webauthn relation/edge. WebauthnColumn = "owner_id" // FilesTable is the table that holds the files relation/edge. FilesTable = "files" // FilesInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. FilesInverseTable = "files" // FilesColumn is the table column denoting the files relation/edge. FilesColumn = "user_files" // EventsTable is the table that holds the events relation/edge. The primary key declared below. EventsTable = "user_events" // EventsInverseTable is the table name for the Event entity. // It exists in this package in order to avoid circular dependency with the "event" package. EventsInverseTable = "events" // GroupMembershipsTable is the table that holds the group_memberships relation/edge. GroupMembershipsTable = "group_memberships" // GroupMembershipsInverseTable is the table name for the GroupMembership entity. // It exists in this package in order to avoid circular dependency with the "groupmembership" package. GroupMembershipsInverseTable = "group_memberships" // GroupMembershipsColumn is the table column denoting the group_memberships relation/edge. GroupMembershipsColumn = "user_id" // OrgMembershipsTable is the table that holds the org_memberships relation/edge. OrgMembershipsTable = "org_memberships" // OrgMembershipsInverseTable is the table name for the OrgMembership entity. // It exists in this package in order to avoid circular dependency with the "orgmembership" package. OrgMembershipsInverseTable = "org_memberships" // OrgMembershipsColumn is the table column denoting the org_memberships relation/edge. OrgMembershipsColumn = "user_id" )
const DefaultAuthProvider enums.AuthProvider = "CREDENTIALS"
const DefaultRole enums.Role = "USER"
Variables ¶
var ( // GroupsPrimaryKey and GroupsColumn2 are the table columns denoting the // primary key for the groups relation (M2M). GroupsPrimaryKey = []string{"user_id", "group_id"} // OrganizationsPrimaryKey and OrganizationsColumn2 are the table columns denoting the // primary key for the organizations relation (M2M). OrganizationsPrimaryKey = []string{"user_id", "organization_id"} // EventsPrimaryKey and EventsColumn2 are the table columns denoting the // primary key for the events relation (M2M). EventsPrimaryKey = []string{"user_id", "event_id"} )
var ( Hooks [5]ent.Hook Interceptors [2]ent.Interceptor Policy ent.Policy // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultMappingID holds the default value on creation for the "mapping_id" field. DefaultMappingID func() string // DefaultTags holds the default value on creation for the "tags" field. DefaultTags []string // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // FirstNameValidator is a validator for the "first_name" field. It is called by the builders before save. FirstNameValidator func(string) error // LastNameValidator is a validator for the "last_name" field. It is called by the builders before save. LastNameValidator func(string) error // DisplayNameValidator is a validator for the "display_name" field. It is called by the builders before save. DisplayNameValidator func(string) error // AvatarRemoteURLValidator is a validator for the "avatar_remote_url" field. It is called by the builders before save. AvatarRemoteURLValidator func(string) error // AvatarLocalFileValidator is a validator for the "avatar_local_file" field. It is called by the builders before save. AvatarLocalFileValidator func(string) error // UpdateDefaultAvatarUpdatedAt holds the default value on update for the "avatar_updated_at" field. UpdateDefaultAvatarUpdatedAt func() time.Time // UpdateDefaultLastSeen holds the default value on update for the "last_seen" field. UpdateDefaultLastSeen func() time.Time // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
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/theopenlane/core/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldMappingID, FieldTags, FieldEmail, FieldFirstName, FieldLastName, FieldDisplayName, FieldAvatarRemoteURL, FieldAvatarLocalFile, FieldAvatarUpdatedAt, FieldLastSeen, FieldPassword, FieldSub, FieldAuthProvider, FieldRole, }
Columns holds all SQL columns for user fields.
Functions ¶
func AuthProviderEQ ¶
func AuthProviderEQ(v enums.AuthProvider) predicate.User
AuthProviderEQ applies the EQ predicate on the "auth_provider" field.
func AuthProviderIn ¶
func AuthProviderIn(vs ...enums.AuthProvider) predicate.User
AuthProviderIn applies the In predicate on the "auth_provider" field.
func AuthProviderNEQ ¶
func AuthProviderNEQ(v enums.AuthProvider) predicate.User
AuthProviderNEQ applies the NEQ predicate on the "auth_provider" field.
func AuthProviderNotIn ¶
func AuthProviderNotIn(vs ...enums.AuthProvider) predicate.User
AuthProviderNotIn applies the NotIn predicate on the "auth_provider" field.
func AuthProviderValidator ¶
func AuthProviderValidator(ap enums.AuthProvider) error
AuthProviderValidator is a validator for the "auth_provider" field enum values. It is called by the builders before save.
func AvatarLocalFile ¶
AvatarLocalFile applies equality check predicate on the "avatar_local_file" field. It's identical to AvatarLocalFileEQ.
func AvatarLocalFileContains ¶
AvatarLocalFileContains applies the Contains predicate on the "avatar_local_file" field.
func AvatarLocalFileContainsFold ¶
AvatarLocalFileContainsFold applies the ContainsFold predicate on the "avatar_local_file" field.
func AvatarLocalFileEQ ¶
AvatarLocalFileEQ applies the EQ predicate on the "avatar_local_file" field.
func AvatarLocalFileEqualFold ¶
AvatarLocalFileEqualFold applies the EqualFold predicate on the "avatar_local_file" field.
func AvatarLocalFileGT ¶
AvatarLocalFileGT applies the GT predicate on the "avatar_local_file" field.
func AvatarLocalFileGTE ¶
AvatarLocalFileGTE applies the GTE predicate on the "avatar_local_file" field.
func AvatarLocalFileHasPrefix ¶
AvatarLocalFileHasPrefix applies the HasPrefix predicate on the "avatar_local_file" field.
func AvatarLocalFileHasSuffix ¶
AvatarLocalFileHasSuffix applies the HasSuffix predicate on the "avatar_local_file" field.
func AvatarLocalFileIn ¶
AvatarLocalFileIn applies the In predicate on the "avatar_local_file" field.
func AvatarLocalFileIsNil ¶
AvatarLocalFileIsNil applies the IsNil predicate on the "avatar_local_file" field.
func AvatarLocalFileLT ¶
AvatarLocalFileLT applies the LT predicate on the "avatar_local_file" field.
func AvatarLocalFileLTE ¶
AvatarLocalFileLTE applies the LTE predicate on the "avatar_local_file" field.
func AvatarLocalFileNEQ ¶
AvatarLocalFileNEQ applies the NEQ predicate on the "avatar_local_file" field.
func AvatarLocalFileNotIn ¶
AvatarLocalFileNotIn applies the NotIn predicate on the "avatar_local_file" field.
func AvatarLocalFileNotNil ¶
AvatarLocalFileNotNil applies the NotNil predicate on the "avatar_local_file" field.
func AvatarRemoteURL ¶
AvatarRemoteURL applies equality check predicate on the "avatar_remote_url" field. It's identical to AvatarRemoteURLEQ.
func AvatarRemoteURLContains ¶
AvatarRemoteURLContains applies the Contains predicate on the "avatar_remote_url" field.
func AvatarRemoteURLContainsFold ¶
AvatarRemoteURLContainsFold applies the ContainsFold predicate on the "avatar_remote_url" field.
func AvatarRemoteURLEQ ¶
AvatarRemoteURLEQ applies the EQ predicate on the "avatar_remote_url" field.
func AvatarRemoteURLEqualFold ¶
AvatarRemoteURLEqualFold applies the EqualFold predicate on the "avatar_remote_url" field.
func AvatarRemoteURLGT ¶
AvatarRemoteURLGT applies the GT predicate on the "avatar_remote_url" field.
func AvatarRemoteURLGTE ¶
AvatarRemoteURLGTE applies the GTE predicate on the "avatar_remote_url" field.
func AvatarRemoteURLHasPrefix ¶
AvatarRemoteURLHasPrefix applies the HasPrefix predicate on the "avatar_remote_url" field.
func AvatarRemoteURLHasSuffix ¶
AvatarRemoteURLHasSuffix applies the HasSuffix predicate on the "avatar_remote_url" field.
func AvatarRemoteURLIn ¶
AvatarRemoteURLIn applies the In predicate on the "avatar_remote_url" field.
func AvatarRemoteURLIsNil ¶
AvatarRemoteURLIsNil applies the IsNil predicate on the "avatar_remote_url" field.
func AvatarRemoteURLLT ¶
AvatarRemoteURLLT applies the LT predicate on the "avatar_remote_url" field.
func AvatarRemoteURLLTE ¶
AvatarRemoteURLLTE applies the LTE predicate on the "avatar_remote_url" field.
func AvatarRemoteURLNEQ ¶
AvatarRemoteURLNEQ applies the NEQ predicate on the "avatar_remote_url" field.
func AvatarRemoteURLNotIn ¶
AvatarRemoteURLNotIn applies the NotIn predicate on the "avatar_remote_url" field.
func AvatarRemoteURLNotNil ¶
AvatarRemoteURLNotNil applies the NotNil predicate on the "avatar_remote_url" field.
func AvatarUpdatedAt ¶
AvatarUpdatedAt applies equality check predicate on the "avatar_updated_at" field. It's identical to AvatarUpdatedAtEQ.
func AvatarUpdatedAtEQ ¶
AvatarUpdatedAtEQ applies the EQ predicate on the "avatar_updated_at" field.
func AvatarUpdatedAtGT ¶
AvatarUpdatedAtGT applies the GT predicate on the "avatar_updated_at" field.
func AvatarUpdatedAtGTE ¶
AvatarUpdatedAtGTE applies the GTE predicate on the "avatar_updated_at" field.
func AvatarUpdatedAtIn ¶
AvatarUpdatedAtIn applies the In predicate on the "avatar_updated_at" field.
func AvatarUpdatedAtIsNil ¶
AvatarUpdatedAtIsNil applies the IsNil predicate on the "avatar_updated_at" field.
func AvatarUpdatedAtLT ¶
AvatarUpdatedAtLT applies the LT predicate on the "avatar_updated_at" field.
func AvatarUpdatedAtLTE ¶
AvatarUpdatedAtLTE applies the LTE predicate on the "avatar_updated_at" field.
func AvatarUpdatedAtNEQ ¶
AvatarUpdatedAtNEQ applies the NEQ predicate on the "avatar_updated_at" field.
func AvatarUpdatedAtNotIn ¶
AvatarUpdatedAtNotIn applies the NotIn predicate on the "avatar_updated_at" field.
func AvatarUpdatedAtNotNil ¶
AvatarUpdatedAtNotNil applies the NotNil predicate on the "avatar_updated_at" 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 CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil 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 CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold 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 CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
DeletedByNotNil applies the NotNil predicate on the "deleted_by" 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 EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" 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 HasEmailVerificationTokens ¶
HasEmailVerificationTokens applies the HasEdge predicate on the "email_verification_tokens" edge.
func HasEmailVerificationTokensWith ¶
func HasEmailVerificationTokensWith(preds ...predicate.EmailVerificationToken) predicate.User
HasEmailVerificationTokensWith applies the HasEdge predicate on the "email_verification_tokens" edge with a given conditions (other predicates).
func HasEventsWith ¶
HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).
func HasFilesWith ¶
HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func HasGroupMemberships ¶
HasGroupMemberships applies the HasEdge predicate on the "group_memberships" edge.
func HasGroupMembershipsWith ¶
func HasGroupMembershipsWith(preds ...predicate.GroupMembership) predicate.User
HasGroupMembershipsWith applies the HasEdge predicate on the "group_memberships" edge with a given conditions (other predicates).
func HasGroupsWith ¶
HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).
func HasOrgMemberships ¶
HasOrgMemberships applies the HasEdge predicate on the "org_memberships" edge.
func HasOrgMembershipsWith ¶
func HasOrgMembershipsWith(preds ...predicate.OrgMembership) predicate.User
HasOrgMembershipsWith applies the HasEdge predicate on the "org_memberships" edge with a given conditions (other predicates).
func HasOrganizations ¶
HasOrganizations applies the HasEdge predicate on the "organizations" edge.
func HasOrganizationsWith ¶
func HasOrganizationsWith(preds ...predicate.Organization) predicate.User
HasOrganizationsWith applies the HasEdge predicate on the "organizations" edge with a given conditions (other predicates).
func HasPasswordResetTokens ¶
HasPasswordResetTokens applies the HasEdge predicate on the "password_reset_tokens" edge.
func HasPasswordResetTokensWith ¶
func HasPasswordResetTokensWith(preds ...predicate.PasswordResetToken) predicate.User
HasPasswordResetTokensWith applies the HasEdge predicate on the "password_reset_tokens" edge with a given conditions (other predicates).
func HasPersonalAccessTokens ¶
HasPersonalAccessTokens applies the HasEdge predicate on the "personal_access_tokens" edge.
func HasPersonalAccessTokensWith ¶
func HasPersonalAccessTokensWith(preds ...predicate.PersonalAccessToken) predicate.User
HasPersonalAccessTokensWith applies the HasEdge predicate on the "personal_access_tokens" edge with a given conditions (other predicates).
func HasSetting ¶
HasSetting applies the HasEdge predicate on the "setting" edge.
func HasSettingWith ¶
func HasSettingWith(preds ...predicate.UserSetting) predicate.User
HasSettingWith applies the HasEdge predicate on the "setting" edge with a given conditions (other predicates).
func HasTfaSettings ¶
HasTfaSettings applies the HasEdge predicate on the "tfa_settings" edge.
func HasTfaSettingsWith ¶
func HasTfaSettingsWith(preds ...predicate.TFASetting) predicate.User
HasTfaSettingsWith applies the HasEdge predicate on the "tfa_settings" edge with a given conditions (other predicates).
func HasWebauthn ¶
HasWebauthn applies the HasEdge predicate on the "webauthn" edge.
func HasWebauthnWith ¶
HasWebauthnWith applies the HasEdge predicate on the "webauthn" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID 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 LastSeen ¶
LastSeen applies equality check predicate on the "last_seen" field. It's identical to LastSeenEQ.
func LastSeenEQ ¶
LastSeenEQ applies the EQ predicate on the "last_seen" field.
func LastSeenGT ¶
LastSeenGT applies the GT predicate on the "last_seen" field.
func LastSeenGTE ¶
LastSeenGTE applies the GTE predicate on the "last_seen" field.
func LastSeenIn ¶
LastSeenIn applies the In predicate on the "last_seen" field.
func LastSeenIsNil ¶
LastSeenIsNil applies the IsNil predicate on the "last_seen" field.
func LastSeenLT ¶
LastSeenLT applies the LT predicate on the "last_seen" field.
func LastSeenLTE ¶
LastSeenLTE applies the LTE predicate on the "last_seen" field.
func LastSeenNEQ ¶
LastSeenNEQ applies the NEQ predicate on the "last_seen" field.
func LastSeenNotIn ¶
LastSeenNotIn applies the NotIn predicate on the "last_seen" field.
func LastSeenNotNil ¶
LastSeenNotNil applies the NotNil predicate on the "last_seen" field.
func MappingID ¶
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶
MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func Password ¶
Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.
func PasswordContains ¶
PasswordContains applies the Contains predicate on the "password" field.
func PasswordContainsFold ¶
PasswordContainsFold applies the ContainsFold predicate on the "password" field.
func PasswordEQ ¶
PasswordEQ applies the EQ predicate on the "password" field.
func PasswordEqualFold ¶
PasswordEqualFold applies the EqualFold predicate on the "password" field.
func PasswordGT ¶
PasswordGT applies the GT predicate on the "password" field.
func PasswordGTE ¶
PasswordGTE applies the GTE predicate on the "password" field.
func PasswordHasPrefix ¶
PasswordHasPrefix applies the HasPrefix predicate on the "password" field.
func PasswordHasSuffix ¶
PasswordHasSuffix applies the HasSuffix predicate on the "password" field.
func PasswordIn ¶
PasswordIn applies the In predicate on the "password" field.
func PasswordIsNil ¶
PasswordIsNil applies the IsNil predicate on the "password" field.
func PasswordLT ¶
PasswordLT applies the LT predicate on the "password" field.
func PasswordLTE ¶
PasswordLTE applies the LTE predicate on the "password" field.
func PasswordNEQ ¶
PasswordNEQ applies the NEQ predicate on the "password" field.
func PasswordNotIn ¶
PasswordNotIn applies the NotIn predicate on the "password" field.
func PasswordNotNil ¶
PasswordNotNil applies the NotNil predicate on the "password" field.
func RoleNotNil ¶
RoleNotNil applies the NotNil predicate on the "role" field.
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
func SubContains ¶
SubContains applies the Contains predicate on the "sub" field.
func SubContainsFold ¶
SubContainsFold applies the ContainsFold predicate on the "sub" field.
func SubEqualFold ¶
SubEqualFold applies the EqualFold predicate on the "sub" field.
func SubHasPrefix ¶
SubHasPrefix applies the HasPrefix predicate on the "sub" field.
func SubHasSuffix ¶
SubHasSuffix applies the HasSuffix predicate on the "sub" field.
func TagsNotNil ¶
TagsNotNil applies the NotNil predicate on the "tags" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func 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 UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold 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 UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix 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 ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the User queries.
func ByAuthProvider ¶
func ByAuthProvider(opts ...sql.OrderTermOption) OrderOption
ByAuthProvider orders the results by the auth_provider field.
func ByAvatarLocalFile ¶
func ByAvatarLocalFile(opts ...sql.OrderTermOption) OrderOption
ByAvatarLocalFile orders the results by the avatar_local_file field.
func ByAvatarRemoteURL ¶
func ByAvatarRemoteURL(opts ...sql.OrderTermOption) OrderOption
ByAvatarRemoteURL orders the results by the avatar_remote_url field.
func ByAvatarUpdatedAt ¶
func ByAvatarUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByAvatarUpdatedAt orders the results by the avatar_updated_at field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByDeletedBy ¶
func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
ByDeletedBy orders the results by the deleted_by field.
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 ByEmailVerificationTokens ¶
func ByEmailVerificationTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEmailVerificationTokens orders the results by email_verification_tokens terms.
func ByEmailVerificationTokensCount ¶
func ByEmailVerificationTokensCount(opts ...sql.OrderTermOption) OrderOption
ByEmailVerificationTokensCount orders the results by email_verification_tokens count.
func ByEvents ¶
func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEvents orders the results by events terms.
func ByEventsCount ¶
func ByEventsCount(opts ...sql.OrderTermOption) OrderOption
ByEventsCount orders the results by events count.
func ByFiles ¶
func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFiles orders the results by files terms.
func ByFilesCount ¶
func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
ByFilesCount orders the results by files count.
func ByFirstName ¶
func ByFirstName(opts ...sql.OrderTermOption) OrderOption
ByFirstName orders the results by the first_name field.
func ByGroupMemberships ¶
func ByGroupMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGroupMemberships orders the results by group_memberships terms.
func ByGroupMembershipsCount ¶
func ByGroupMembershipsCount(opts ...sql.OrderTermOption) OrderOption
ByGroupMembershipsCount orders the results by group_memberships count.
func ByGroups ¶
func ByGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByGroups orders the results by groups terms.
func ByGroupsCount ¶
func ByGroupsCount(opts ...sql.OrderTermOption) OrderOption
ByGroupsCount orders the results by groups count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastName ¶
func ByLastName(opts ...sql.OrderTermOption) OrderOption
ByLastName orders the results by the last_name field.
func ByLastSeen ¶
func ByLastSeen(opts ...sql.OrderTermOption) OrderOption
ByLastSeen orders the results by the last_seen field.
func ByMappingID ¶
func ByMappingID(opts ...sql.OrderTermOption) OrderOption
ByMappingID orders the results by the mapping_id field.
func ByOrgMemberships ¶
func ByOrgMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOrgMemberships orders the results by org_memberships terms.
func ByOrgMembershipsCount ¶
func ByOrgMembershipsCount(opts ...sql.OrderTermOption) OrderOption
ByOrgMembershipsCount orders the results by org_memberships count.
func ByOrganizations ¶
func ByOrganizations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOrganizations orders the results by organizations terms.
func ByOrganizationsCount ¶
func ByOrganizationsCount(opts ...sql.OrderTermOption) OrderOption
ByOrganizationsCount orders the results by organizations count.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func ByPasswordResetTokens ¶
func ByPasswordResetTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPasswordResetTokens orders the results by password_reset_tokens terms.
func ByPasswordResetTokensCount ¶
func ByPasswordResetTokensCount(opts ...sql.OrderTermOption) OrderOption
ByPasswordResetTokensCount orders the results by password_reset_tokens count.
func ByPersonalAccessTokens ¶
func ByPersonalAccessTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPersonalAccessTokens orders the results by personal_access_tokens terms.
func ByPersonalAccessTokensCount ¶
func ByPersonalAccessTokensCount(opts ...sql.OrderTermOption) OrderOption
ByPersonalAccessTokensCount orders the results by personal_access_tokens count.
func ByRole ¶
func ByRole(opts ...sql.OrderTermOption) OrderOption
ByRole orders the results by the role field.
func BySettingField ¶
func BySettingField(field string, opts ...sql.OrderTermOption) OrderOption
BySettingField orders the results by setting field.
func BySub ¶
func BySub(opts ...sql.OrderTermOption) OrderOption
BySub orders the results by the sub field.
func ByTfaSettings ¶
func ByTfaSettings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTfaSettings orders the results by tfa_settings terms.
func ByTfaSettingsCount ¶
func ByTfaSettingsCount(opts ...sql.OrderTermOption) OrderOption
ByTfaSettingsCount orders the results by tfa_settings count.
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 ByWebauthn ¶
func ByWebauthn(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByWebauthn orders the results by webauthn terms.
func ByWebauthnCount ¶
func ByWebauthnCount(opts ...sql.OrderTermOption) OrderOption
ByWebauthnCount orders the results by webauthn count.