user

package
v0.7.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const DefaultAuthProvider enums.AuthProvider = "CREDENTIALS"
View Source
const DefaultRole enums.Role = "USER"

Variables

View Source
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"}
)
View Source
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/datumforge/datum/internal/ent/generated/runtime"

Columns holds all SQL columns for user fields.

Functions

func And

func And(predicates ...predicate.User) predicate.User

And groups predicates with the AND operator between them.

func AuthProviderEQ added in v0.2.7

func AuthProviderEQ(v enums.AuthProvider) predicate.User

AuthProviderEQ applies the EQ predicate on the "auth_provider" field.

func AuthProviderIn added in v0.2.7

func AuthProviderIn(vs ...enums.AuthProvider) predicate.User

AuthProviderIn applies the In predicate on the "auth_provider" field.

func AuthProviderNEQ added in v0.2.7

func AuthProviderNEQ(v enums.AuthProvider) predicate.User

AuthProviderNEQ applies the NEQ predicate on the "auth_provider" field.

func AuthProviderNotIn added in v0.2.7

func AuthProviderNotIn(vs ...enums.AuthProvider) predicate.User

AuthProviderNotIn applies the NotIn predicate on the "auth_provider" field.

func AuthProviderValidator added in v0.2.7

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

func AvatarLocalFile(v string) predicate.User

AvatarLocalFile applies equality check predicate on the "avatar_local_file" field. It's identical to AvatarLocalFileEQ.

func AvatarLocalFileContains

func AvatarLocalFileContains(v string) predicate.User

AvatarLocalFileContains applies the Contains predicate on the "avatar_local_file" field.

func AvatarLocalFileContainsFold

func AvatarLocalFileContainsFold(v string) predicate.User

AvatarLocalFileContainsFold applies the ContainsFold predicate on the "avatar_local_file" field.

func AvatarLocalFileEQ

func AvatarLocalFileEQ(v string) predicate.User

AvatarLocalFileEQ applies the EQ predicate on the "avatar_local_file" field.

func AvatarLocalFileEqualFold

func AvatarLocalFileEqualFold(v string) predicate.User

AvatarLocalFileEqualFold applies the EqualFold predicate on the "avatar_local_file" field.

func AvatarLocalFileGT

func AvatarLocalFileGT(v string) predicate.User

AvatarLocalFileGT applies the GT predicate on the "avatar_local_file" field.

func AvatarLocalFileGTE

func AvatarLocalFileGTE(v string) predicate.User

AvatarLocalFileGTE applies the GTE predicate on the "avatar_local_file" field.

func AvatarLocalFileHasPrefix

func AvatarLocalFileHasPrefix(v string) predicate.User

AvatarLocalFileHasPrefix applies the HasPrefix predicate on the "avatar_local_file" field.

func AvatarLocalFileHasSuffix

func AvatarLocalFileHasSuffix(v string) predicate.User

AvatarLocalFileHasSuffix applies the HasSuffix predicate on the "avatar_local_file" field.

func AvatarLocalFileIn

func AvatarLocalFileIn(vs ...string) predicate.User

AvatarLocalFileIn applies the In predicate on the "avatar_local_file" field.

func AvatarLocalFileIsNil

func AvatarLocalFileIsNil() predicate.User

AvatarLocalFileIsNil applies the IsNil predicate on the "avatar_local_file" field.

func AvatarLocalFileLT

func AvatarLocalFileLT(v string) predicate.User

AvatarLocalFileLT applies the LT predicate on the "avatar_local_file" field.

func AvatarLocalFileLTE

func AvatarLocalFileLTE(v string) predicate.User

AvatarLocalFileLTE applies the LTE predicate on the "avatar_local_file" field.

func AvatarLocalFileNEQ

func AvatarLocalFileNEQ(v string) predicate.User

AvatarLocalFileNEQ applies the NEQ predicate on the "avatar_local_file" field.

func AvatarLocalFileNotIn

func AvatarLocalFileNotIn(vs ...string) predicate.User

AvatarLocalFileNotIn applies the NotIn predicate on the "avatar_local_file" field.

func AvatarLocalFileNotNil

func AvatarLocalFileNotNil() predicate.User

AvatarLocalFileNotNil applies the NotNil predicate on the "avatar_local_file" field.

func AvatarRemoteURL

func AvatarRemoteURL(v string) predicate.User

AvatarRemoteURL applies equality check predicate on the "avatar_remote_url" field. It's identical to AvatarRemoteURLEQ.

func AvatarRemoteURLContains

func AvatarRemoteURLContains(v string) predicate.User

AvatarRemoteURLContains applies the Contains predicate on the "avatar_remote_url" field.

func AvatarRemoteURLContainsFold

func AvatarRemoteURLContainsFold(v string) predicate.User

AvatarRemoteURLContainsFold applies the ContainsFold predicate on the "avatar_remote_url" field.

func AvatarRemoteURLEQ

func AvatarRemoteURLEQ(v string) predicate.User

AvatarRemoteURLEQ applies the EQ predicate on the "avatar_remote_url" field.

func AvatarRemoteURLEqualFold

func AvatarRemoteURLEqualFold(v string) predicate.User

AvatarRemoteURLEqualFold applies the EqualFold predicate on the "avatar_remote_url" field.

func AvatarRemoteURLGT

func AvatarRemoteURLGT(v string) predicate.User

AvatarRemoteURLGT applies the GT predicate on the "avatar_remote_url" field.

func AvatarRemoteURLGTE

func AvatarRemoteURLGTE(v string) predicate.User

AvatarRemoteURLGTE applies the GTE predicate on the "avatar_remote_url" field.

func AvatarRemoteURLHasPrefix

func AvatarRemoteURLHasPrefix(v string) predicate.User

AvatarRemoteURLHasPrefix applies the HasPrefix predicate on the "avatar_remote_url" field.

func AvatarRemoteURLHasSuffix

func AvatarRemoteURLHasSuffix(v string) predicate.User

AvatarRemoteURLHasSuffix applies the HasSuffix predicate on the "avatar_remote_url" field.

func AvatarRemoteURLIn

func AvatarRemoteURLIn(vs ...string) predicate.User

AvatarRemoteURLIn applies the In predicate on the "avatar_remote_url" field.

func AvatarRemoteURLIsNil

func AvatarRemoteURLIsNil() predicate.User

AvatarRemoteURLIsNil applies the IsNil predicate on the "avatar_remote_url" field.

func AvatarRemoteURLLT

func AvatarRemoteURLLT(v string) predicate.User

AvatarRemoteURLLT applies the LT predicate on the "avatar_remote_url" field.

func AvatarRemoteURLLTE

func AvatarRemoteURLLTE(v string) predicate.User

AvatarRemoteURLLTE applies the LTE predicate on the "avatar_remote_url" field.

func AvatarRemoteURLNEQ

func AvatarRemoteURLNEQ(v string) predicate.User

AvatarRemoteURLNEQ applies the NEQ predicate on the "avatar_remote_url" field.

func AvatarRemoteURLNotIn

func AvatarRemoteURLNotIn(vs ...string) predicate.User

AvatarRemoteURLNotIn applies the NotIn predicate on the "avatar_remote_url" field.

func AvatarRemoteURLNotNil

func AvatarRemoteURLNotNil() predicate.User

AvatarRemoteURLNotNil applies the NotNil predicate on the "avatar_remote_url" field.

func AvatarUpdatedAt

func AvatarUpdatedAt(v time.Time) predicate.User

AvatarUpdatedAt applies equality check predicate on the "avatar_updated_at" field. It's identical to AvatarUpdatedAtEQ.

func AvatarUpdatedAtEQ

func AvatarUpdatedAtEQ(v time.Time) predicate.User

AvatarUpdatedAtEQ applies the EQ predicate on the "avatar_updated_at" field.

func AvatarUpdatedAtGT

func AvatarUpdatedAtGT(v time.Time) predicate.User

AvatarUpdatedAtGT applies the GT predicate on the "avatar_updated_at" field.

func AvatarUpdatedAtGTE

func AvatarUpdatedAtGTE(v time.Time) predicate.User

AvatarUpdatedAtGTE applies the GTE predicate on the "avatar_updated_at" field.

func AvatarUpdatedAtIn

func AvatarUpdatedAtIn(vs ...time.Time) predicate.User

AvatarUpdatedAtIn applies the In predicate on the "avatar_updated_at" field.

func AvatarUpdatedAtIsNil

func AvatarUpdatedAtIsNil() predicate.User

AvatarUpdatedAtIsNil applies the IsNil predicate on the "avatar_updated_at" field.

func AvatarUpdatedAtLT

func AvatarUpdatedAtLT(v time.Time) predicate.User

AvatarUpdatedAtLT applies the LT predicate on the "avatar_updated_at" field.

func AvatarUpdatedAtLTE

func AvatarUpdatedAtLTE(v time.Time) predicate.User

AvatarUpdatedAtLTE applies the LTE predicate on the "avatar_updated_at" field.

func AvatarUpdatedAtNEQ

func AvatarUpdatedAtNEQ(v time.Time) predicate.User

AvatarUpdatedAtNEQ applies the NEQ predicate on the "avatar_updated_at" field.

func AvatarUpdatedAtNotIn

func AvatarUpdatedAtNotIn(vs ...time.Time) predicate.User

AvatarUpdatedAtNotIn applies the NotIn predicate on the "avatar_updated_at" field.

func AvatarUpdatedAtNotNil

func AvatarUpdatedAtNotNil() predicate.User

AvatarUpdatedAtNotNil applies the NotNil predicate on the "avatar_updated_at" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.User

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.User

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.User

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.User

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.User

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtIsNil added in v0.3.4

func CreatedAtIsNil() predicate.User

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.User

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.User

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.User

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.User

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedAtNotNil added in v0.3.4

func CreatedAtNotNil() predicate.User

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v string) predicate.User

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.User

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.User

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.User

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.User

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.User

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.User

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.User

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.User

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.User

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.User

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.User

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.User

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.User

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.User

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.User

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.User

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.User

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.User

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.User

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.User

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.User

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.User

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.User

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.User

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.User

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.User

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DeletedBy

func DeletedBy(v string) predicate.User

DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.

func DeletedByContains

func DeletedByContains(v string) predicate.User

DeletedByContains applies the Contains predicate on the "deleted_by" field.

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.User

DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.

func DeletedByEQ

func DeletedByEQ(v string) predicate.User

DeletedByEQ applies the EQ predicate on the "deleted_by" field.

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.User

DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.

func DeletedByGT

func DeletedByGT(v string) predicate.User

DeletedByGT applies the GT predicate on the "deleted_by" field.

func DeletedByGTE

func DeletedByGTE(v string) predicate.User

DeletedByGTE applies the GTE predicate on the "deleted_by" field.

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.User

DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.User

DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.

func DeletedByIn

func DeletedByIn(vs ...string) predicate.User

DeletedByIn applies the In predicate on the "deleted_by" field.

func DeletedByIsNil

func DeletedByIsNil() predicate.User

DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.

func DeletedByLT

func DeletedByLT(v string) predicate.User

DeletedByLT applies the LT predicate on the "deleted_by" field.

func DeletedByLTE

func DeletedByLTE(v string) predicate.User

DeletedByLTE applies the LTE predicate on the "deleted_by" field.

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.User

DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.

func DeletedByNotIn

func DeletedByNotIn(vs ...string) predicate.User

DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.

func DeletedByNotNil

func DeletedByNotNil() predicate.User

DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.

func DisplayName

func DisplayName(v string) predicate.User

DisplayName applies equality check predicate on the "display_name" field. It's identical to DisplayNameEQ.

func DisplayNameContains

func DisplayNameContains(v string) predicate.User

DisplayNameContains applies the Contains predicate on the "display_name" field.

func DisplayNameContainsFold

func DisplayNameContainsFold(v string) predicate.User

DisplayNameContainsFold applies the ContainsFold predicate on the "display_name" field.

func DisplayNameEQ

func DisplayNameEQ(v string) predicate.User

DisplayNameEQ applies the EQ predicate on the "display_name" field.

func DisplayNameEqualFold

func DisplayNameEqualFold(v string) predicate.User

DisplayNameEqualFold applies the EqualFold predicate on the "display_name" field.

func DisplayNameGT

func DisplayNameGT(v string) predicate.User

DisplayNameGT applies the GT predicate on the "display_name" field.

func DisplayNameGTE

func DisplayNameGTE(v string) predicate.User

DisplayNameGTE applies the GTE predicate on the "display_name" field.

func DisplayNameHasPrefix

func DisplayNameHasPrefix(v string) predicate.User

DisplayNameHasPrefix applies the HasPrefix predicate on the "display_name" field.

func DisplayNameHasSuffix

func DisplayNameHasSuffix(v string) predicate.User

DisplayNameHasSuffix applies the HasSuffix predicate on the "display_name" field.

func DisplayNameIn

func DisplayNameIn(vs ...string) predicate.User

DisplayNameIn applies the In predicate on the "display_name" field.

func DisplayNameLT

func DisplayNameLT(v string) predicate.User

DisplayNameLT applies the LT predicate on the "display_name" field.

func DisplayNameLTE

func DisplayNameLTE(v string) predicate.User

DisplayNameLTE applies the LTE predicate on the "display_name" field.

func DisplayNameNEQ

func DisplayNameNEQ(v string) predicate.User

DisplayNameNEQ applies the NEQ predicate on the "display_name" field.

func DisplayNameNotIn

func DisplayNameNotIn(vs ...string) predicate.User

DisplayNameNotIn applies the NotIn predicate on the "display_name" field.

func Email

func Email(v string) predicate.User

Email applies equality check predicate on the "email" field. It's identical to EmailEQ.

func EmailContains

func EmailContains(v string) predicate.User

EmailContains applies the Contains predicate on the "email" field.

func EmailContainsFold

func EmailContainsFold(v string) predicate.User

EmailContainsFold applies the ContainsFold predicate on the "email" field.

func EmailEQ

func EmailEQ(v string) predicate.User

EmailEQ applies the EQ predicate on the "email" field.

func EmailEqualFold

func EmailEqualFold(v string) predicate.User

EmailEqualFold applies the EqualFold predicate on the "email" field.

func EmailGT

func EmailGT(v string) predicate.User

EmailGT applies the GT predicate on the "email" field.

func EmailGTE

func EmailGTE(v string) predicate.User

EmailGTE applies the GTE predicate on the "email" field.

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.User

EmailHasPrefix applies the HasPrefix predicate on the "email" field.

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.User

EmailHasSuffix applies the HasSuffix predicate on the "email" field.

func EmailIn

func EmailIn(vs ...string) predicate.User

EmailIn applies the In predicate on the "email" field.

func EmailLT

func EmailLT(v string) predicate.User

EmailLT applies the LT predicate on the "email" field.

func EmailLTE

func EmailLTE(v string) predicate.User

EmailLTE applies the LTE predicate on the "email" field.

func EmailNEQ

func EmailNEQ(v string) predicate.User

EmailNEQ applies the NEQ predicate on the "email" field.

func EmailNotIn

func EmailNotIn(vs ...string) predicate.User

EmailNotIn applies the NotIn predicate on the "email" field.

func FirstName

func FirstName(v string) predicate.User

FirstName applies equality check predicate on the "first_name" field. It's identical to FirstNameEQ.

func FirstNameContains

func FirstNameContains(v string) predicate.User

FirstNameContains applies the Contains predicate on the "first_name" field.

func FirstNameContainsFold

func FirstNameContainsFold(v string) predicate.User

FirstNameContainsFold applies the ContainsFold predicate on the "first_name" field.

func FirstNameEQ

func FirstNameEQ(v string) predicate.User

FirstNameEQ applies the EQ predicate on the "first_name" field.

func FirstNameEqualFold

func FirstNameEqualFold(v string) predicate.User

FirstNameEqualFold applies the EqualFold predicate on the "first_name" field.

func FirstNameGT

func FirstNameGT(v string) predicate.User

FirstNameGT applies the GT predicate on the "first_name" field.

func FirstNameGTE

func FirstNameGTE(v string) predicate.User

FirstNameGTE applies the GTE predicate on the "first_name" field.

func FirstNameHasPrefix

func FirstNameHasPrefix(v string) predicate.User

FirstNameHasPrefix applies the HasPrefix predicate on the "first_name" field.

func FirstNameHasSuffix

func FirstNameHasSuffix(v string) predicate.User

FirstNameHasSuffix applies the HasSuffix predicate on the "first_name" field.

func FirstNameIn

func FirstNameIn(vs ...string) predicate.User

FirstNameIn applies the In predicate on the "first_name" field.

func FirstNameIsNil added in v0.5.2

func FirstNameIsNil() predicate.User

FirstNameIsNil applies the IsNil predicate on the "first_name" field.

func FirstNameLT

func FirstNameLT(v string) predicate.User

FirstNameLT applies the LT predicate on the "first_name" field.

func FirstNameLTE

func FirstNameLTE(v string) predicate.User

FirstNameLTE applies the LTE predicate on the "first_name" field.

func FirstNameNEQ

func FirstNameNEQ(v string) predicate.User

FirstNameNEQ applies the NEQ predicate on the "first_name" field.

func FirstNameNotIn

func FirstNameNotIn(vs ...string) predicate.User

FirstNameNotIn applies the NotIn predicate on the "first_name" field.

func FirstNameNotNil added in v0.5.2

func FirstNameNotNil() predicate.User

FirstNameNotNil applies the NotNil predicate on the "first_name" field.

func HasEmailVerificationTokens added in v0.2.2

func HasEmailVerificationTokens() predicate.User

HasEmailVerificationTokens applies the HasEdge predicate on the "email_verification_tokens" edge.

func HasEmailVerificationTokensWith added in v0.2.2

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 HasEvents added in v0.5.0

func HasEvents() predicate.User

HasEvents applies the HasEdge predicate on the "events" edge.

func HasEventsWith added in v0.5.0

func HasEventsWith(preds ...predicate.Event) predicate.User

HasEventsWith applies the HasEdge predicate on the "events" edge with a given conditions (other predicates).

func HasFiles added in v0.5.0

func HasFiles() predicate.User

HasFiles applies the HasEdge predicate on the "files" edge.

func HasFilesWith added in v0.5.0

func HasFilesWith(preds ...predicate.File) predicate.User

HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).

func HasGroupMemberships added in v0.2.4

func HasGroupMemberships() predicate.User

HasGroupMemberships applies the HasEdge predicate on the "group_memberships" edge.

func HasGroupMembershipsWith added in v0.2.4

func HasGroupMembershipsWith(preds ...predicate.GroupMembership) predicate.User

HasGroupMembershipsWith applies the HasEdge predicate on the "group_memberships" edge with a given conditions (other predicates).

func HasGroups

func HasGroups() predicate.User

HasGroups applies the HasEdge predicate on the "groups" edge.

func HasGroupsWith

func HasGroupsWith(preds ...predicate.Group) predicate.User

HasGroupsWith applies the HasEdge predicate on the "groups" edge with a given conditions (other predicates).

func HasOrgMemberships added in v0.2.4

func HasOrgMemberships() predicate.User

HasOrgMemberships applies the HasEdge predicate on the "org_memberships" edge.

func HasOrgMembershipsWith added in v0.2.4

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

func HasOrganizations() predicate.User

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 added in v0.2.4

func HasPasswordResetTokens() predicate.User

HasPasswordResetTokens applies the HasEdge predicate on the "password_reset_tokens" edge.

func HasPasswordResetTokensWith added in v0.2.4

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

func HasPersonalAccessTokens() predicate.User

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

func HasSetting() predicate.User

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 added in v0.3.6

func HasTfaSettings() predicate.User

HasTfaSettings applies the HasEdge predicate on the "tfa_settings" edge.

func HasTfaSettingsWith added in v0.3.6

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 added in v0.3.0

func HasWebauthn() predicate.User

HasWebauthn applies the HasEdge predicate on the "webauthn" edge.

func HasWebauthnWith added in v0.3.0

func HasWebauthnWith(preds ...predicate.Webauthn) predicate.User

HasWebauthnWith applies the HasEdge predicate on the "webauthn" edge with a given conditions (other predicates).

func ID

func ID(id string) predicate.User

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.User

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.User

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func LastName

func LastName(v string) predicate.User

LastName applies equality check predicate on the "last_name" field. It's identical to LastNameEQ.

func LastNameContains

func LastNameContains(v string) predicate.User

LastNameContains applies the Contains predicate on the "last_name" field.

func LastNameContainsFold

func LastNameContainsFold(v string) predicate.User

LastNameContainsFold applies the ContainsFold predicate on the "last_name" field.

func LastNameEQ

func LastNameEQ(v string) predicate.User

LastNameEQ applies the EQ predicate on the "last_name" field.

func LastNameEqualFold

func LastNameEqualFold(v string) predicate.User

LastNameEqualFold applies the EqualFold predicate on the "last_name" field.

func LastNameGT

func LastNameGT(v string) predicate.User

LastNameGT applies the GT predicate on the "last_name" field.

func LastNameGTE

func LastNameGTE(v string) predicate.User

LastNameGTE applies the GTE predicate on the "last_name" field.

func LastNameHasPrefix

func LastNameHasPrefix(v string) predicate.User

LastNameHasPrefix applies the HasPrefix predicate on the "last_name" field.

func LastNameHasSuffix

func LastNameHasSuffix(v string) predicate.User

LastNameHasSuffix applies the HasSuffix predicate on the "last_name" field.

func LastNameIn

func LastNameIn(vs ...string) predicate.User

LastNameIn applies the In predicate on the "last_name" field.

func LastNameIsNil added in v0.5.2

func LastNameIsNil() predicate.User

LastNameIsNil applies the IsNil predicate on the "last_name" field.

func LastNameLT

func LastNameLT(v string) predicate.User

LastNameLT applies the LT predicate on the "last_name" field.

func LastNameLTE

func LastNameLTE(v string) predicate.User

LastNameLTE applies the LTE predicate on the "last_name" field.

func LastNameNEQ

func LastNameNEQ(v string) predicate.User

LastNameNEQ applies the NEQ predicate on the "last_name" field.

func LastNameNotIn

func LastNameNotIn(vs ...string) predicate.User

LastNameNotIn applies the NotIn predicate on the "last_name" field.

func LastNameNotNil added in v0.5.2

func LastNameNotNil() predicate.User

LastNameNotNil applies the NotNil predicate on the "last_name" field.

func LastSeen

func LastSeen(v time.Time) predicate.User

LastSeen applies equality check predicate on the "last_seen" field. It's identical to LastSeenEQ.

func LastSeenEQ

func LastSeenEQ(v time.Time) predicate.User

LastSeenEQ applies the EQ predicate on the "last_seen" field.

func LastSeenGT

func LastSeenGT(v time.Time) predicate.User

LastSeenGT applies the GT predicate on the "last_seen" field.

func LastSeenGTE

func LastSeenGTE(v time.Time) predicate.User

LastSeenGTE applies the GTE predicate on the "last_seen" field.

func LastSeenIn

func LastSeenIn(vs ...time.Time) predicate.User

LastSeenIn applies the In predicate on the "last_seen" field.

func LastSeenIsNil

func LastSeenIsNil() predicate.User

LastSeenIsNil applies the IsNil predicate on the "last_seen" field.

func LastSeenLT

func LastSeenLT(v time.Time) predicate.User

LastSeenLT applies the LT predicate on the "last_seen" field.

func LastSeenLTE

func LastSeenLTE(v time.Time) predicate.User

LastSeenLTE applies the LTE predicate on the "last_seen" field.

func LastSeenNEQ

func LastSeenNEQ(v time.Time) predicate.User

LastSeenNEQ applies the NEQ predicate on the "last_seen" field.

func LastSeenNotIn

func LastSeenNotIn(vs ...time.Time) predicate.User

LastSeenNotIn applies the NotIn predicate on the "last_seen" field.

func LastSeenNotNil

func LastSeenNotNil() predicate.User

LastSeenNotNil applies the NotNil predicate on the "last_seen" field.

func MappingID added in v0.5.0

func MappingID(v string) predicate.User

MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.

func MappingIDContains added in v0.5.0

func MappingIDContains(v string) predicate.User

MappingIDContains applies the Contains predicate on the "mapping_id" field.

func MappingIDContainsFold added in v0.5.0

func MappingIDContainsFold(v string) predicate.User

MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.

func MappingIDEQ added in v0.5.0

func MappingIDEQ(v string) predicate.User

MappingIDEQ applies the EQ predicate on the "mapping_id" field.

func MappingIDEqualFold added in v0.5.0

func MappingIDEqualFold(v string) predicate.User

MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.

func MappingIDGT added in v0.5.0

func MappingIDGT(v string) predicate.User

MappingIDGT applies the GT predicate on the "mapping_id" field.

func MappingIDGTE added in v0.5.0

func MappingIDGTE(v string) predicate.User

MappingIDGTE applies the GTE predicate on the "mapping_id" field.

func MappingIDHasPrefix added in v0.5.0

func MappingIDHasPrefix(v string) predicate.User

MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.

func MappingIDHasSuffix added in v0.5.0

func MappingIDHasSuffix(v string) predicate.User

MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.

func MappingIDIn added in v0.5.0

func MappingIDIn(vs ...string) predicate.User

MappingIDIn applies the In predicate on the "mapping_id" field.

func MappingIDLT added in v0.5.0

func MappingIDLT(v string) predicate.User

MappingIDLT applies the LT predicate on the "mapping_id" field.

func MappingIDLTE added in v0.5.0

func MappingIDLTE(v string) predicate.User

MappingIDLTE applies the LTE predicate on the "mapping_id" field.

func MappingIDNEQ added in v0.5.0

func MappingIDNEQ(v string) predicate.User

MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.

func MappingIDNotIn added in v0.5.0

func MappingIDNotIn(vs ...string) predicate.User

MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.User) predicate.User

Or groups predicates with the OR operator between them.

func Password

func Password(v string) predicate.User

Password applies equality check predicate on the "password" field. It's identical to PasswordEQ.

func PasswordContains

func PasswordContains(v string) predicate.User

PasswordContains applies the Contains predicate on the "password" field.

func PasswordContainsFold

func PasswordContainsFold(v string) predicate.User

PasswordContainsFold applies the ContainsFold predicate on the "password" field.

func PasswordEQ

func PasswordEQ(v string) predicate.User

PasswordEQ applies the EQ predicate on the "password" field.

func PasswordEqualFold

func PasswordEqualFold(v string) predicate.User

PasswordEqualFold applies the EqualFold predicate on the "password" field.

func PasswordGT

func PasswordGT(v string) predicate.User

PasswordGT applies the GT predicate on the "password" field.

func PasswordGTE

func PasswordGTE(v string) predicate.User

PasswordGTE applies the GTE predicate on the "password" field.

func PasswordHasPrefix

func PasswordHasPrefix(v string) predicate.User

PasswordHasPrefix applies the HasPrefix predicate on the "password" field.

func PasswordHasSuffix

func PasswordHasSuffix(v string) predicate.User

PasswordHasSuffix applies the HasSuffix predicate on the "password" field.

func PasswordIn

func PasswordIn(vs ...string) predicate.User

PasswordIn applies the In predicate on the "password" field.

func PasswordIsNil

func PasswordIsNil() predicate.User

PasswordIsNil applies the IsNil predicate on the "password" field.

func PasswordLT

func PasswordLT(v string) predicate.User

PasswordLT applies the LT predicate on the "password" field.

func PasswordLTE

func PasswordLTE(v string) predicate.User

PasswordLTE applies the LTE predicate on the "password" field.

func PasswordNEQ

func PasswordNEQ(v string) predicate.User

PasswordNEQ applies the NEQ predicate on the "password" field.

func PasswordNotIn

func PasswordNotIn(vs ...string) predicate.User

PasswordNotIn applies the NotIn predicate on the "password" field.

func PasswordNotNil

func PasswordNotNil() predicate.User

PasswordNotNil applies the NotNil predicate on the "password" field.

func RoleEQ added in v0.5.0

func RoleEQ(v enums.Role) predicate.User

RoleEQ applies the EQ predicate on the "role" field.

func RoleIn added in v0.5.0

func RoleIn(vs ...enums.Role) predicate.User

RoleIn applies the In predicate on the "role" field.

func RoleIsNil added in v0.5.0

func RoleIsNil() predicate.User

RoleIsNil applies the IsNil predicate on the "role" field.

func RoleNEQ added in v0.5.0

func RoleNEQ(v enums.Role) predicate.User

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn added in v0.5.0

func RoleNotIn(vs ...enums.Role) predicate.User

RoleNotIn applies the NotIn predicate on the "role" field.

func RoleNotNil added in v0.5.0

func RoleNotNil() predicate.User

RoleNotNil applies the NotNil predicate on the "role" field.

func RoleValidator added in v0.5.0

func RoleValidator(r enums.Role) error

RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.

func Sub

func Sub(v string) predicate.User

Sub applies equality check predicate on the "sub" field. It's identical to SubEQ.

func SubContains

func SubContains(v string) predicate.User

SubContains applies the Contains predicate on the "sub" field.

func SubContainsFold

func SubContainsFold(v string) predicate.User

SubContainsFold applies the ContainsFold predicate on the "sub" field.

func SubEQ

func SubEQ(v string) predicate.User

SubEQ applies the EQ predicate on the "sub" field.

func SubEqualFold

func SubEqualFold(v string) predicate.User

SubEqualFold applies the EqualFold predicate on the "sub" field.

func SubGT

func SubGT(v string) predicate.User

SubGT applies the GT predicate on the "sub" field.

func SubGTE

func SubGTE(v string) predicate.User

SubGTE applies the GTE predicate on the "sub" field.

func SubHasPrefix

func SubHasPrefix(v string) predicate.User

SubHasPrefix applies the HasPrefix predicate on the "sub" field.

func SubHasSuffix

func SubHasSuffix(v string) predicate.User

SubHasSuffix applies the HasSuffix predicate on the "sub" field.

func SubIn

func SubIn(vs ...string) predicate.User

SubIn applies the In predicate on the "sub" field.

func SubIsNil

func SubIsNil() predicate.User

SubIsNil applies the IsNil predicate on the "sub" field.

func SubLT

func SubLT(v string) predicate.User

SubLT applies the LT predicate on the "sub" field.

func SubLTE

func SubLTE(v string) predicate.User

SubLTE applies the LTE predicate on the "sub" field.

func SubNEQ

func SubNEQ(v string) predicate.User

SubNEQ applies the NEQ predicate on the "sub" field.

func SubNotIn

func SubNotIn(vs ...string) predicate.User

SubNotIn applies the NotIn predicate on the "sub" field.

func SubNotNil

func SubNotNil() predicate.User

SubNotNil applies the NotNil predicate on the "sub" field.

func TagsIsNil added in v0.5.2

func TagsIsNil() predicate.User

TagsIsNil applies the IsNil predicate on the "tags" field.

func TagsNotNil added in v0.5.2

func TagsNotNil() predicate.User

TagsNotNil applies the NotNil predicate on the "tags" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.User

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.User

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.User

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.User

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.User

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil added in v0.3.4

func UpdatedAtIsNil() predicate.User

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.User

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.User

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.User

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.User

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil added in v0.3.4

func UpdatedAtNotNil() predicate.User

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v string) predicate.User

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.User

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.User

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.User

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.User

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.User

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.User

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.User

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.User

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.User

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.User

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.User

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.User

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.User

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.User

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.User

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the User queries.

func ByAuthProvider added in v0.2.7

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 added in v0.2.2

func ByEmailVerificationTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByEmailVerificationTokens orders the results by email_verification_tokens terms.

func ByEmailVerificationTokensCount added in v0.2.2

func ByEmailVerificationTokensCount(opts ...sql.OrderTermOption) OrderOption

ByEmailVerificationTokensCount orders the results by email_verification_tokens count.

func ByEvents added in v0.5.0

func ByEvents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByEvents orders the results by events terms.

func ByEventsCount added in v0.5.0

func ByEventsCount(opts ...sql.OrderTermOption) OrderOption

ByEventsCount orders the results by events count.

func ByFiles added in v0.5.0

func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFiles orders the results by files terms.

func ByFilesCount added in v0.5.0

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 added in v0.2.4

func ByGroupMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByGroupMemberships orders the results by group_memberships terms.

func ByGroupMembershipsCount added in v0.2.4

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 added in v0.5.0

func ByMappingID(opts ...sql.OrderTermOption) OrderOption

ByMappingID orders the results by the mapping_id field.

func ByOrgMemberships added in v0.2.4

func ByOrgMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByOrgMemberships orders the results by org_memberships terms.

func ByOrgMembershipsCount added in v0.2.4

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 added in v0.2.4

func ByPasswordResetTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByPasswordResetTokens orders the results by password_reset_tokens terms.

func ByPasswordResetTokensCount added in v0.2.4

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 added in v0.5.0

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 added in v0.3.6

func ByTfaSettings(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTfaSettings orders the results by tfa_settings terms.

func ByTfaSettingsCount added in v0.3.6

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 added in v0.3.0

func ByWebauthn(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByWebauthn orders the results by webauthn terms.

func ByWebauthnCount added in v0.3.0

func ByWebauthnCount(opts ...sql.OrderTermOption) OrderOption

ByWebauthnCount orders the results by webauthn count.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL