Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.User) predicate.User
- func Avatar(v string) predicate.User
- func AvatarContains(v string) predicate.User
- func AvatarContainsFold(v string) predicate.User
- func AvatarEQ(v string) predicate.User
- func AvatarEqualFold(v string) predicate.User
- func AvatarGT(v string) predicate.User
- func AvatarGTE(v string) predicate.User
- func AvatarHasPrefix(v string) predicate.User
- func AvatarHasSuffix(v string) predicate.User
- func AvatarIn(vs ...string) predicate.User
- func AvatarIsNil() predicate.User
- func AvatarLT(v string) predicate.User
- func AvatarLTE(v string) predicate.User
- func AvatarNEQ(v string) predicate.User
- func AvatarNotIn(vs ...string) predicate.User
- func AvatarNotNil() predicate.User
- func CreatedAt(v time.Time) predicate.User
- func CreatedAtEQ(v time.Time) predicate.User
- func CreatedAtGT(v time.Time) predicate.User
- func CreatedAtGTE(v time.Time) predicate.User
- func CreatedAtIn(vs ...time.Time) predicate.User
- func CreatedAtLT(v time.Time) predicate.User
- func CreatedAtLTE(v time.Time) predicate.User
- func CreatedAtNEQ(v time.Time) predicate.User
- func CreatedAtNotIn(vs ...time.Time) predicate.User
- func DeletedAt(v time.Time) predicate.User
- func DeletedAtEQ(v time.Time) predicate.User
- func DeletedAtGT(v time.Time) predicate.User
- func DeletedAtGTE(v time.Time) predicate.User
- func DeletedAtIn(vs ...time.Time) predicate.User
- func DeletedAtIsNil() predicate.User
- func DeletedAtLT(v time.Time) predicate.User
- func DeletedAtLTE(v time.Time) predicate.User
- func DeletedAtNEQ(v time.Time) predicate.User
- func DeletedAtNotIn(vs ...time.Time) predicate.User
- func DeletedAtNotNil() predicate.User
- func Email(v string) predicate.User
- func EmailContains(v string) predicate.User
- func EmailContainsFold(v string) predicate.User
- func EmailEQ(v string) predicate.User
- func EmailEqualFold(v string) predicate.User
- func EmailGT(v string) predicate.User
- func EmailGTE(v string) predicate.User
- func EmailHasPrefix(v string) predicate.User
- func EmailHasSuffix(v string) predicate.User
- func EmailIn(vs ...string) predicate.User
- func EmailLT(v string) predicate.User
- func EmailLTE(v string) predicate.User
- func EmailNEQ(v string) predicate.User
- func EmailNotIn(vs ...string) predicate.User
- func GroupUsers(v int) predicate.User
- func GroupUsersEQ(v int) predicate.User
- func GroupUsersIn(vs ...int) predicate.User
- func GroupUsersNEQ(v int) predicate.User
- func GroupUsersNotIn(vs ...int) predicate.User
- func HasDavAccounts() predicate.User
- func HasDavAccountsWith(preds ...predicate.DavAccount) predicate.User
- func HasEntities() predicate.User
- func HasEntitiesWith(preds ...predicate.Entity) predicate.User
- func HasFiles() predicate.User
- func HasFilesWith(preds ...predicate.File) predicate.User
- func HasFsevents() predicate.User
- func HasFseventsWith(preds ...predicate.FsEvent) predicate.User
- func HasGroup() predicate.User
- func HasGroupWith(preds ...predicate.Group) predicate.User
- func HasOauthGrants() predicate.User
- func HasOauthGrantsWith(preds ...predicate.OAuthGrant) predicate.User
- func HasPasskey() predicate.User
- func HasPasskeyWith(preds ...predicate.Passkey) predicate.User
- func HasShares() predicate.User
- func HasSharesWith(preds ...predicate.Share) predicate.User
- func HasTasks() predicate.User
- func HasTasksWith(preds ...predicate.Task) predicate.User
- func ID(id int) predicate.User
- func IDEQ(id int) predicate.User
- func IDGT(id int) predicate.User
- func IDGTE(id int) predicate.User
- func IDIn(ids ...int) predicate.User
- func IDLT(id int) predicate.User
- func IDLTE(id int) predicate.User
- func IDNEQ(id int) predicate.User
- func IDNotIn(ids ...int) predicate.User
- func Nick(v string) predicate.User
- func NickContains(v string) predicate.User
- func NickContainsFold(v string) predicate.User
- func NickEQ(v string) predicate.User
- func NickEqualFold(v string) predicate.User
- func NickGT(v string) predicate.User
- func NickGTE(v string) predicate.User
- func NickHasPrefix(v string) predicate.User
- func NickHasSuffix(v string) predicate.User
- func NickIn(vs ...string) predicate.User
- func NickLT(v string) predicate.User
- func NickLTE(v string) predicate.User
- func NickNEQ(v string) predicate.User
- func NickNotIn(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 SettingsIsNil() predicate.User
- func SettingsNotNil() predicate.User
- func StatusEQ(v Status) predicate.User
- func StatusIn(vs ...Status) predicate.User
- func StatusNEQ(v Status) predicate.User
- func StatusNotIn(vs ...Status) predicate.User
- func StatusValidator(s Status) error
- func Storage(v int64) predicate.User
- func StorageEQ(v int64) predicate.User
- func StorageGT(v int64) predicate.User
- func StorageGTE(v int64) predicate.User
- func StorageIn(vs ...int64) predicate.User
- func StorageLT(v int64) predicate.User
- func StorageLTE(v int64) predicate.User
- func StorageNEQ(v int64) predicate.User
- func StorageNotIn(vs ...int64) predicate.User
- func TwoFactorSecret(v string) predicate.User
- func TwoFactorSecretContains(v string) predicate.User
- func TwoFactorSecretContainsFold(v string) predicate.User
- func TwoFactorSecretEQ(v string) predicate.User
- func TwoFactorSecretEqualFold(v string) predicate.User
- func TwoFactorSecretGT(v string) predicate.User
- func TwoFactorSecretGTE(v string) predicate.User
- func TwoFactorSecretHasPrefix(v string) predicate.User
- func TwoFactorSecretHasSuffix(v string) predicate.User
- func TwoFactorSecretIn(vs ...string) predicate.User
- func TwoFactorSecretIsNil() predicate.User
- func TwoFactorSecretLT(v string) predicate.User
- func TwoFactorSecretLTE(v string) predicate.User
- func TwoFactorSecretNEQ(v string) predicate.User
- func TwoFactorSecretNotIn(vs ...string) predicate.User
- func TwoFactorSecretNotNil() predicate.User
- func UpdatedAt(v time.Time) predicate.User
- func UpdatedAtEQ(v time.Time) predicate.User
- func UpdatedAtGT(v time.Time) predicate.User
- func UpdatedAtGTE(v time.Time) predicate.User
- func UpdatedAtIn(vs ...time.Time) predicate.User
- func UpdatedAtLT(v time.Time) predicate.User
- func UpdatedAtLTE(v time.Time) predicate.User
- func UpdatedAtNEQ(v time.Time) predicate.User
- func UpdatedAtNotIn(vs ...time.Time) predicate.User
- func ValidColumn(column string) bool
- type OrderOption
- func ByAvatar(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDavAccounts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByDavAccountsCount(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByEntities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEntitiesCount(opts ...sql.OrderTermOption) OrderOption
- func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
- func ByFsevents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFseventsCount(opts ...sql.OrderTermOption) OrderOption
- func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByGroupUsers(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNick(opts ...sql.OrderTermOption) OrderOption
- func ByOauthGrants(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOauthGrantsCount(opts ...sql.OrderTermOption) OrderOption
- func ByPasskey(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByPasskeyCount(opts ...sql.OrderTermOption) OrderOption
- func ByPassword(opts ...sql.OrderTermOption) OrderOption
- func ByShares(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySharesCount(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByStorage(opts ...sql.OrderTermOption) OrderOption
- func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
- func ByTwoFactorSecret(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldEmail holds the string denoting the email field in the database. FieldEmail = "email" // FieldNick holds the string denoting the nick field in the database. FieldNick = "nick" // FieldPassword holds the string denoting the password field in the database. FieldPassword = "password" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldStorage holds the string denoting the storage field in the database. FieldStorage = "storage" // FieldTwoFactorSecret holds the string denoting the two_factor_secret field in the database. FieldTwoFactorSecret = "two_factor_secret" // FieldAvatar holds the string denoting the avatar field in the database. FieldAvatar = "avatar" // FieldSettings holds the string denoting the settings field in the database. FieldSettings = "settings" // FieldGroupUsers holds the string denoting the group_users field in the database. FieldGroupUsers = "group_users" // EdgeGroup holds the string denoting the group edge name in mutations. EdgeGroup = "group" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // EdgeDavAccounts holds the string denoting the dav_accounts edge name in mutations. EdgeDavAccounts = "dav_accounts" EdgeShares = "shares" // EdgePasskey holds the string denoting the passkey edge name in mutations. EdgePasskey = "passkey" // EdgeTasks holds the string denoting the tasks edge name in mutations. EdgeTasks = "tasks" // EdgeFsevents holds the string denoting the fsevents edge name in mutations. EdgeFsevents = "fsevents" // EdgeEntities holds the string denoting the entities edge name in mutations. EdgeEntities = "entities" // EdgeOauthGrants holds the string denoting the oauth_grants edge name in mutations. EdgeOauthGrants = "oauth_grants" // Table holds the table name of the user in the database. Table = "users" // GroupTable is the table that holds the group relation/edge. GroupTable = "users" // GroupInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. GroupInverseTable = "groups" // GroupColumn is the table column denoting the group relation/edge. GroupColumn = "group_users" // 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 = "owner_id" // DavAccountsTable is the table that holds the dav_accounts relation/edge. DavAccountsTable = "dav_accounts" // DavAccountsInverseTable is the table name for the DavAccount entity. // It exists in this package in order to avoid circular dependency with the "davaccount" package. DavAccountsInverseTable = "dav_accounts" // DavAccountsColumn is the table column denoting the dav_accounts relation/edge. DavAccountsColumn = "owner_id" SharesTable = "shares" // It exists in this package in order to avoid circular dependency with the "share" package. SharesInverseTable = "shares" SharesColumn = "user_shares" // PasskeyTable is the table that holds the passkey relation/edge. PasskeyTable = "passkeys" // PasskeyInverseTable is the table name for the Passkey entity. // It exists in this package in order to avoid circular dependency with the "passkey" package. PasskeyInverseTable = "passkeys" // PasskeyColumn is the table column denoting the passkey relation/edge. PasskeyColumn = "user_id" // TasksTable is the table that holds the tasks relation/edge. TasksTable = "tasks" // TasksInverseTable is the table name for the Task entity. // It exists in this package in order to avoid circular dependency with the "task" package. TasksInverseTable = "tasks" // TasksColumn is the table column denoting the tasks relation/edge. TasksColumn = "user_tasks" // FseventsTable is the table that holds the fsevents relation/edge. FseventsTable = "fs_events" // FseventsInverseTable is the table name for the FsEvent entity. // It exists in this package in order to avoid circular dependency with the "fsevent" package. FseventsInverseTable = "fs_events" // FseventsColumn is the table column denoting the fsevents relation/edge. FseventsColumn = "user_fsevent" // EntitiesTable is the table that holds the entities relation/edge. EntitiesTable = "entities" // EntitiesInverseTable is the table name for the Entity entity. // It exists in this package in order to avoid circular dependency with the "entity" package. EntitiesInverseTable = "entities" // EntitiesColumn is the table column denoting the entities relation/edge. EntitiesColumn = "created_by" // OauthGrantsTable is the table that holds the oauth_grants relation/edge. OauthGrantsTable = "oauth_grants" // OauthGrantsInverseTable is the table name for the OAuthGrant entity. // It exists in this package in order to avoid circular dependency with the "oauthgrant" package. OauthGrantsInverseTable = "oauth_grants" // OauthGrantsColumn is the table column denoting the oauth_grants relation/edge. OauthGrantsColumn = "user_id" )
const DefaultStatus = StatusActive
StatusActive is the default value of the Status enum.
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // 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 // EmailValidator is a validator for the "email" field. It is called by the builders before save. EmailValidator func(string) error // NickValidator is a validator for the "nick" field. It is called by the builders before save. NickValidator func(string) error // DefaultStorage holds the default value on creation for the "storage" field. DefaultStorage int64 // DefaultSettings holds the default value on creation for the "settings" field. DefaultSettings *types.UserSetting )
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/cloudreve/Cloudreve/v4/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldEmail, FieldNick, FieldPassword, FieldStatus, FieldStorage, FieldTwoFactorSecret, FieldAvatar, FieldSettings, FieldGroupUsers, }
Columns holds all SQL columns for user fields.
Functions ¶
func Avatar ¶
Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.
func AvatarContains ¶
AvatarContains applies the Contains predicate on the "avatar" field.
func AvatarContainsFold ¶
AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.
func AvatarEqualFold ¶
AvatarEqualFold applies the EqualFold predicate on the "avatar" field.
func AvatarHasPrefix ¶
AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.
func AvatarHasSuffix ¶
AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.
func AvatarIsNil ¶
AvatarIsNil applies the IsNil predicate on the "avatar" field.
func AvatarNotIn ¶
AvatarNotIn applies the NotIn predicate on the "avatar" field.
func AvatarNotNil ¶
AvatarNotNil applies the NotNil predicate on the "avatar" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Email ¶
Email applies equality check predicate on the "email" field. It's identical to EmailEQ.
func EmailContains ¶
EmailContains applies the Contains predicate on the "email" field.
func EmailContainsFold ¶
EmailContainsFold applies the ContainsFold predicate on the "email" field.
func EmailEqualFold ¶
EmailEqualFold applies the EqualFold predicate on the "email" field.
func EmailHasPrefix ¶
EmailHasPrefix applies the HasPrefix predicate on the "email" field.
func EmailHasSuffix ¶
EmailHasSuffix applies the HasSuffix predicate on the "email" field.
func EmailNotIn ¶
EmailNotIn applies the NotIn predicate on the "email" field.
func GroupUsers ¶
GroupUsers applies equality check predicate on the "group_users" field. It's identical to GroupUsersEQ.
func GroupUsersEQ ¶
GroupUsersEQ applies the EQ predicate on the "group_users" field.
func GroupUsersIn ¶
GroupUsersIn applies the In predicate on the "group_users" field.
func GroupUsersNEQ ¶
GroupUsersNEQ applies the NEQ predicate on the "group_users" field.
func GroupUsersNotIn ¶
GroupUsersNotIn applies the NotIn predicate on the "group_users" field.
func HasDavAccounts ¶
HasDavAccounts applies the HasEdge predicate on the "dav_accounts" edge.
func HasDavAccountsWith ¶
func HasDavAccountsWith(preds ...predicate.DavAccount) predicate.User
HasDavAccountsWith applies the HasEdge predicate on the "dav_accounts" edge with a given conditions (other predicates).
func HasEntities ¶
HasEntities applies the HasEdge predicate on the "entities" edge.
func HasEntitiesWith ¶
HasEntitiesWith applies the HasEdge predicate on the "entities" 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 HasFsevents ¶
HasFsevents applies the HasEdge predicate on the "fsevents" edge.
func HasFseventsWith ¶
HasFseventsWith applies the HasEdge predicate on the "fsevents" edge with a given conditions (other predicates).
func HasGroupWith ¶
HasGroupWith applies the HasEdge predicate on the "group" edge with a given conditions (other predicates).
func HasOauthGrants ¶
HasOauthGrants applies the HasEdge predicate on the "oauth_grants" edge.
func HasOauthGrantsWith ¶
func HasOauthGrantsWith(preds ...predicate.OAuthGrant) predicate.User
HasOauthGrantsWith applies the HasEdge predicate on the "oauth_grants" edge with a given conditions (other predicates).
func HasPasskey ¶
HasPasskey applies the HasEdge predicate on the "passkey" edge.
func HasPasskeyWith ¶
HasPasskeyWith applies the HasEdge predicate on the "passkey" edge with a given conditions (other predicates).
func HasSharesWith ¶
HasSharesWith applies the HasEdge predicate on the "shares" edge with a given conditions (other predicates).
func HasTasksWith ¶
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func NickContains ¶
NickContains applies the Contains predicate on the "nick" field.
func NickContainsFold ¶
NickContainsFold applies the ContainsFold predicate on the "nick" field.
func NickEqualFold ¶
NickEqualFold applies the EqualFold predicate on the "nick" field.
func NickHasPrefix ¶
NickHasPrefix applies the HasPrefix predicate on the "nick" field.
func NickHasSuffix ¶
NickHasSuffix applies the HasSuffix predicate on the "nick" 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 SettingsIsNil ¶
SettingsIsNil applies the IsNil predicate on the "settings" field.
func SettingsNotNil ¶
SettingsNotNil applies the NotNil predicate on the "settings" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func Storage ¶
Storage applies equality check predicate on the "storage" field. It's identical to StorageEQ.
func StorageGTE ¶
StorageGTE applies the GTE predicate on the "storage" field.
func StorageLTE ¶
StorageLTE applies the LTE predicate on the "storage" field.
func StorageNEQ ¶
StorageNEQ applies the NEQ predicate on the "storage" field.
func StorageNotIn ¶
StorageNotIn applies the NotIn predicate on the "storage" field.
func TwoFactorSecret ¶
TwoFactorSecret applies equality check predicate on the "two_factor_secret" field. It's identical to TwoFactorSecretEQ.
func TwoFactorSecretContains ¶
TwoFactorSecretContains applies the Contains predicate on the "two_factor_secret" field.
func TwoFactorSecretContainsFold ¶
TwoFactorSecretContainsFold applies the ContainsFold predicate on the "two_factor_secret" field.
func TwoFactorSecretEQ ¶
TwoFactorSecretEQ applies the EQ predicate on the "two_factor_secret" field.
func TwoFactorSecretEqualFold ¶
TwoFactorSecretEqualFold applies the EqualFold predicate on the "two_factor_secret" field.
func TwoFactorSecretGT ¶
TwoFactorSecretGT applies the GT predicate on the "two_factor_secret" field.
func TwoFactorSecretGTE ¶
TwoFactorSecretGTE applies the GTE predicate on the "two_factor_secret" field.
func TwoFactorSecretHasPrefix ¶
TwoFactorSecretHasPrefix applies the HasPrefix predicate on the "two_factor_secret" field.
func TwoFactorSecretHasSuffix ¶
TwoFactorSecretHasSuffix applies the HasSuffix predicate on the "two_factor_secret" field.
func TwoFactorSecretIn ¶
TwoFactorSecretIn applies the In predicate on the "two_factor_secret" field.
func TwoFactorSecretIsNil ¶
TwoFactorSecretIsNil applies the IsNil predicate on the "two_factor_secret" field.
func TwoFactorSecretLT ¶
TwoFactorSecretLT applies the LT predicate on the "two_factor_secret" field.
func TwoFactorSecretLTE ¶
TwoFactorSecretLTE applies the LTE predicate on the "two_factor_secret" field.
func TwoFactorSecretNEQ ¶
TwoFactorSecretNEQ applies the NEQ predicate on the "two_factor_secret" field.
func TwoFactorSecretNotIn ¶
TwoFactorSecretNotIn applies the NotIn predicate on the "two_factor_secret" field.
func TwoFactorSecretNotNil ¶
TwoFactorSecretNotNil applies the NotNil predicate on the "two_factor_secret" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func 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 ByAvatar ¶
func ByAvatar(opts ...sql.OrderTermOption) OrderOption
ByAvatar orders the results by the avatar field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDavAccounts ¶
func ByDavAccounts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByDavAccounts orders the results by dav_accounts terms.
func ByDavAccountsCount ¶
func ByDavAccountsCount(opts ...sql.OrderTermOption) OrderOption
ByDavAccountsCount orders the results by dav_accounts count.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByEmail ¶
func ByEmail(opts ...sql.OrderTermOption) OrderOption
ByEmail orders the results by the email field.
func ByEntities ¶
func ByEntities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEntities orders the results by entities terms.
func ByEntitiesCount ¶
func ByEntitiesCount(opts ...sql.OrderTermOption) OrderOption
ByEntitiesCount orders the results by entities 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 ByFsevents ¶
func ByFsevents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFsevents orders the results by fsevents terms.
func ByFseventsCount ¶
func ByFseventsCount(opts ...sql.OrderTermOption) OrderOption
ByFseventsCount orders the results by fsevents count.
func ByGroupField ¶
func ByGroupField(field string, opts ...sql.OrderTermOption) OrderOption
ByGroupField orders the results by group field.
func ByGroupUsers ¶
func ByGroupUsers(opts ...sql.OrderTermOption) OrderOption
ByGroupUsers orders the results by the group_users field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNick ¶
func ByNick(opts ...sql.OrderTermOption) OrderOption
ByNick orders the results by the nick field.
func ByOauthGrants ¶
func ByOauthGrants(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByOauthGrants orders the results by oauth_grants terms.
func ByOauthGrantsCount ¶
func ByOauthGrantsCount(opts ...sql.OrderTermOption) OrderOption
ByOauthGrantsCount orders the results by oauth_grants count.
func ByPasskey ¶
func ByPasskey(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPasskey orders the results by passkey terms.
func ByPasskeyCount ¶
func ByPasskeyCount(opts ...sql.OrderTermOption) OrderOption
ByPasskeyCount orders the results by passkey count.
func ByPassword ¶
func ByPassword(opts ...sql.OrderTermOption) OrderOption
ByPassword orders the results by the password field.
func ByShares ¶
func ByShares(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByShares orders the results by shares terms.
func BySharesCount ¶
func BySharesCount(opts ...sql.OrderTermOption) OrderOption
BySharesCount orders the results by shares count.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByStorage ¶
func ByStorage(opts ...sql.OrderTermOption) OrderOption
ByStorage orders the results by the storage field.
func ByTasks ¶
func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTasks orders the results by tasks terms.
func ByTasksCount ¶
func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
ByTasksCount orders the results by tasks count.
func ByTwoFactorSecret ¶
func ByTwoFactorSecret(opts ...sql.OrderTermOption) OrderOption
ByTwoFactorSecret orders the results by the two_factor_secret field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.