user

package
v4.0.0-...-5b82330 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: GPL-3.0 Imports: 7 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"
	// 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 holds the string denoting the shares edge name in mutations.
	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 is the table that holds the shares relation/edge.
	SharesTable = "shares"
	// SharesInverseTable is the table name for the Share entity.
	// It exists in this package in order to avoid circular dependency with the "share" package.
	SharesInverseTable = "shares"
	// SharesColumn is the table column denoting the shares relation/edge.
	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"
)
View Source
const DefaultStatus = StatusActive

StatusActive is the default value of the Status enum.

Variables

View Source
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"

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 Avatar

func Avatar(v string) predicate.User

Avatar applies equality check predicate on the "avatar" field. It's identical to AvatarEQ.

func AvatarContains

func AvatarContains(v string) predicate.User

AvatarContains applies the Contains predicate on the "avatar" field.

func AvatarContainsFold

func AvatarContainsFold(v string) predicate.User

AvatarContainsFold applies the ContainsFold predicate on the "avatar" field.

func AvatarEQ

func AvatarEQ(v string) predicate.User

AvatarEQ applies the EQ predicate on the "avatar" field.

func AvatarEqualFold

func AvatarEqualFold(v string) predicate.User

AvatarEqualFold applies the EqualFold predicate on the "avatar" field.

func AvatarGT

func AvatarGT(v string) predicate.User

AvatarGT applies the GT predicate on the "avatar" field.

func AvatarGTE

func AvatarGTE(v string) predicate.User

AvatarGTE applies the GTE predicate on the "avatar" field.

func AvatarHasPrefix

func AvatarHasPrefix(v string) predicate.User

AvatarHasPrefix applies the HasPrefix predicate on the "avatar" field.

func AvatarHasSuffix

func AvatarHasSuffix(v string) predicate.User

AvatarHasSuffix applies the HasSuffix predicate on the "avatar" field.

func AvatarIn

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

AvatarIn applies the In predicate on the "avatar" field.

func AvatarIsNil

func AvatarIsNil() predicate.User

AvatarIsNil applies the IsNil predicate on the "avatar" field.

func AvatarLT

func AvatarLT(v string) predicate.User

AvatarLT applies the LT predicate on the "avatar" field.

func AvatarLTE

func AvatarLTE(v string) predicate.User

AvatarLTE applies the LTE predicate on the "avatar" field.

func AvatarNEQ

func AvatarNEQ(v string) predicate.User

AvatarNEQ applies the NEQ predicate on the "avatar" field.

func AvatarNotIn

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

AvatarNotIn applies the NotIn predicate on the "avatar" field.

func AvatarNotNil

func AvatarNotNil() predicate.User

AvatarNotNil applies the NotNil predicate on the "avatar" 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 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 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 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 GroupUsers

func GroupUsers(v int) predicate.User

GroupUsers applies equality check predicate on the "group_users" field. It's identical to GroupUsersEQ.

func GroupUsersEQ

func GroupUsersEQ(v int) predicate.User

GroupUsersEQ applies the EQ predicate on the "group_users" field.

func GroupUsersIn

func GroupUsersIn(vs ...int) predicate.User

GroupUsersIn applies the In predicate on the "group_users" field.

func GroupUsersNEQ

func GroupUsersNEQ(v int) predicate.User

GroupUsersNEQ applies the NEQ predicate on the "group_users" field.

func GroupUsersNotIn

func GroupUsersNotIn(vs ...int) predicate.User

GroupUsersNotIn applies the NotIn predicate on the "group_users" field.

func HasDavAccounts

func HasDavAccounts() predicate.User

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

func HasEntities() predicate.User

HasEntities applies the HasEdge predicate on the "entities" edge.

func HasEntitiesWith

func HasEntitiesWith(preds ...predicate.Entity) predicate.User

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

func HasFiles

func HasFiles() predicate.User

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

func HasFilesWith

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

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

func HasFsevents

func HasFsevents() predicate.User

HasFsevents applies the HasEdge predicate on the "fsevents" edge.

func HasFseventsWith

func HasFseventsWith(preds ...predicate.FsEvent) predicate.User

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

func HasGroup

func HasGroup() predicate.User

HasGroup applies the HasEdge predicate on the "group" edge.

func HasGroupWith

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

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

func HasOauthGrants

func HasOauthGrants() predicate.User

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

func HasPasskey() predicate.User

HasPasskey applies the HasEdge predicate on the "passkey" edge.

func HasPasskeyWith

func HasPasskeyWith(preds ...predicate.Passkey) predicate.User

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

func HasShares

func HasShares() predicate.User

HasShares applies the HasEdge predicate on the "shares" edge.

func HasSharesWith

func HasSharesWith(preds ...predicate.Share) predicate.User

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

func HasTasks

func HasTasks() predicate.User

HasTasks applies the HasEdge predicate on the "tasks" edge.

func HasTasksWith

func HasTasksWith(preds ...predicate.Task) predicate.User

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

func ID

func ID(id int) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Nick

func Nick(v string) predicate.User

Nick applies equality check predicate on the "nick" field. It's identical to NickEQ.

func NickContains

func NickContains(v string) predicate.User

NickContains applies the Contains predicate on the "nick" field.

func NickContainsFold

func NickContainsFold(v string) predicate.User

NickContainsFold applies the ContainsFold predicate on the "nick" field.

func NickEQ

func NickEQ(v string) predicate.User

NickEQ applies the EQ predicate on the "nick" field.

func NickEqualFold

func NickEqualFold(v string) predicate.User

NickEqualFold applies the EqualFold predicate on the "nick" field.

func NickGT

func NickGT(v string) predicate.User

NickGT applies the GT predicate on the "nick" field.

func NickGTE

func NickGTE(v string) predicate.User

NickGTE applies the GTE predicate on the "nick" field.

func NickHasPrefix

func NickHasPrefix(v string) predicate.User

NickHasPrefix applies the HasPrefix predicate on the "nick" field.

func NickHasSuffix

func NickHasSuffix(v string) predicate.User

NickHasSuffix applies the HasSuffix predicate on the "nick" field.

func NickIn

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

NickIn applies the In predicate on the "nick" field.

func NickLT

func NickLT(v string) predicate.User

NickLT applies the LT predicate on the "nick" field.

func NickLTE

func NickLTE(v string) predicate.User

NickLTE applies the LTE predicate on the "nick" field.

func NickNEQ

func NickNEQ(v string) predicate.User

NickNEQ applies the NEQ predicate on the "nick" field.

func NickNotIn

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

NickNotIn applies the NotIn predicate on the "nick" 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 SettingsIsNil

func SettingsIsNil() predicate.User

SettingsIsNil applies the IsNil predicate on the "settings" field.

func SettingsNotNil

func SettingsNotNil() predicate.User

SettingsNotNil applies the NotNil predicate on the "settings" field.

func StatusEQ

func StatusEQ(v Status) predicate.User

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.User

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.User

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.User

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

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

func Storage

func Storage(v int64) predicate.User

Storage applies equality check predicate on the "storage" field. It's identical to StorageEQ.

func StorageEQ

func StorageEQ(v int64) predicate.User

StorageEQ applies the EQ predicate on the "storage" field.

func StorageGT

func StorageGT(v int64) predicate.User

StorageGT applies the GT predicate on the "storage" field.

func StorageGTE

func StorageGTE(v int64) predicate.User

StorageGTE applies the GTE predicate on the "storage" field.

func StorageIn

func StorageIn(vs ...int64) predicate.User

StorageIn applies the In predicate on the "storage" field.

func StorageLT

func StorageLT(v int64) predicate.User

StorageLT applies the LT predicate on the "storage" field.

func StorageLTE

func StorageLTE(v int64) predicate.User

StorageLTE applies the LTE predicate on the "storage" field.

func StorageNEQ

func StorageNEQ(v int64) predicate.User

StorageNEQ applies the NEQ predicate on the "storage" field.

func StorageNotIn

func StorageNotIn(vs ...int64) predicate.User

StorageNotIn applies the NotIn predicate on the "storage" field.

func TwoFactorSecret

func TwoFactorSecret(v string) predicate.User

TwoFactorSecret applies equality check predicate on the "two_factor_secret" field. It's identical to TwoFactorSecretEQ.

func TwoFactorSecretContains

func TwoFactorSecretContains(v string) predicate.User

TwoFactorSecretContains applies the Contains predicate on the "two_factor_secret" field.

func TwoFactorSecretContainsFold

func TwoFactorSecretContainsFold(v string) predicate.User

TwoFactorSecretContainsFold applies the ContainsFold predicate on the "two_factor_secret" field.

func TwoFactorSecretEQ

func TwoFactorSecretEQ(v string) predicate.User

TwoFactorSecretEQ applies the EQ predicate on the "two_factor_secret" field.

func TwoFactorSecretEqualFold

func TwoFactorSecretEqualFold(v string) predicate.User

TwoFactorSecretEqualFold applies the EqualFold predicate on the "two_factor_secret" field.

func TwoFactorSecretGT

func TwoFactorSecretGT(v string) predicate.User

TwoFactorSecretGT applies the GT predicate on the "two_factor_secret" field.

func TwoFactorSecretGTE

func TwoFactorSecretGTE(v string) predicate.User

TwoFactorSecretGTE applies the GTE predicate on the "two_factor_secret" field.

func TwoFactorSecretHasPrefix

func TwoFactorSecretHasPrefix(v string) predicate.User

TwoFactorSecretHasPrefix applies the HasPrefix predicate on the "two_factor_secret" field.

func TwoFactorSecretHasSuffix

func TwoFactorSecretHasSuffix(v string) predicate.User

TwoFactorSecretHasSuffix applies the HasSuffix predicate on the "two_factor_secret" field.

func TwoFactorSecretIn

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

TwoFactorSecretIn applies the In predicate on the "two_factor_secret" field.

func TwoFactorSecretIsNil

func TwoFactorSecretIsNil() predicate.User

TwoFactorSecretIsNil applies the IsNil predicate on the "two_factor_secret" field.

func TwoFactorSecretLT

func TwoFactorSecretLT(v string) predicate.User

TwoFactorSecretLT applies the LT predicate on the "two_factor_secret" field.

func TwoFactorSecretLTE

func TwoFactorSecretLTE(v string) predicate.User

TwoFactorSecretLTE applies the LTE predicate on the "two_factor_secret" field.

func TwoFactorSecretNEQ

func TwoFactorSecretNEQ(v string) predicate.User

TwoFactorSecretNEQ applies the NEQ predicate on the "two_factor_secret" field.

func TwoFactorSecretNotIn

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

TwoFactorSecretNotIn applies the NotIn predicate on the "two_factor_secret" field.

func TwoFactorSecretNotNil

func TwoFactorSecretNotNil() predicate.User

TwoFactorSecretNotNil applies the NotNil predicate on the "two_factor_secret" 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 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 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 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.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusActive       Status = "active"
	StatusInactive     Status = "inactive"
	StatusManualBanned Status = "manual_banned"
	StatusSysBanned    Status = "sys_banned"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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