user

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 5 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"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldAvatarURL holds the string denoting the avatar_url field in the database.
	FieldAvatarURL = "avatar_url"
	// FieldPasswordHash holds the string denoting the password_hash field in the database.
	FieldPasswordHash = "password_hash"
	// FieldIsPlatformAdmin holds the string denoting the is_platform_admin field in the database.
	FieldIsPlatformAdmin = "is_platform_admin"
	// FieldActive holds the string denoting the active field in the database.
	FieldActive = "active"
	// FieldLastLoginAt holds the string denoting the last_login_at field in the database.
	FieldLastLoginAt = "last_login_at"
	// FieldFederationID holds the string denoting the federation_id field in the database.
	FieldFederationID = "federation_id"
	// EdgeMemberships holds the string denoting the memberships edge name in mutations.
	EdgeMemberships = "memberships"
	// EdgeOauthAccounts holds the string denoting the oauth_accounts edge name in mutations.
	EdgeOauthAccounts = "oauth_accounts"
	// EdgeRefreshTokens holds the string denoting the refresh_tokens edge name in mutations.
	EdgeRefreshTokens = "refresh_tokens"
	// EdgeAPIKeys holds the string denoting the api_keys edge name in mutations.
	EdgeAPIKeys = "api_keys"
	// EdgeOauthApps holds the string denoting the oauth_apps edge name in mutations.
	EdgeOauthApps = "oauth_apps"
	// EdgeOauthTokens holds the string denoting the oauth_tokens edge name in mutations.
	EdgeOauthTokens = "oauth_tokens"
	// EdgeOauthAuthCodes holds the string denoting the oauth_auth_codes edge name in mutations.
	EdgeOauthAuthCodes = "oauth_auth_codes"
	// EdgeOauthConsents holds the string denoting the oauth_consents edge name in mutations.
	EdgeOauthConsents = "oauth_consents"
	// EdgeCreatedServiceAccounts holds the string denoting the created_service_accounts edge name in mutations.
	EdgeCreatedServiceAccounts = "created_service_accounts"
	// Table holds the table name of the user in the database.
	Table = "cf_users"
	// MembershipsTable is the table that holds the memberships relation/edge.
	MembershipsTable = "cf_memberships"
	// MembershipsInverseTable is the table name for the Membership entity.
	// It exists in this package in order to avoid circular dependency with the "membership" package.
	MembershipsInverseTable = "cf_memberships"
	// MembershipsColumn is the table column denoting the memberships relation/edge.
	MembershipsColumn = "user_id"
	// OauthAccountsTable is the table that holds the oauth_accounts relation/edge.
	OauthAccountsTable = "cf_oauth_accounts"
	// OauthAccountsInverseTable is the table name for the OAuthAccount entity.
	// It exists in this package in order to avoid circular dependency with the "oauthaccount" package.
	OauthAccountsInverseTable = "cf_oauth_accounts"
	// OauthAccountsColumn is the table column denoting the oauth_accounts relation/edge.
	OauthAccountsColumn = "user_id"
	// RefreshTokensTable is the table that holds the refresh_tokens relation/edge.
	RefreshTokensTable = "cf_refresh_tokens"
	// RefreshTokensInverseTable is the table name for the RefreshToken entity.
	// It exists in this package in order to avoid circular dependency with the "refreshtoken" package.
	RefreshTokensInverseTable = "cf_refresh_tokens"
	// RefreshTokensColumn is the table column denoting the refresh_tokens relation/edge.
	RefreshTokensColumn = "user_id"
	// APIKeysTable is the table that holds the api_keys relation/edge.
	APIKeysTable = "cf_api_keys"
	// APIKeysInverseTable is the table name for the APIKey entity.
	// It exists in this package in order to avoid circular dependency with the "apikey" package.
	APIKeysInverseTable = "cf_api_keys"
	// APIKeysColumn is the table column denoting the api_keys relation/edge.
	APIKeysColumn = "user_api_keys"
	// OauthAppsTable is the table that holds the oauth_apps relation/edge.
	OauthAppsTable = "cf_oauth_apps"
	// OauthAppsInverseTable is the table name for the OAuthApp entity.
	// It exists in this package in order to avoid circular dependency with the "oauthapp" package.
	OauthAppsInverseTable = "cf_oauth_apps"
	// OauthAppsColumn is the table column denoting the oauth_apps relation/edge.
	OauthAppsColumn = "owner_id"
	// OauthTokensTable is the table that holds the oauth_tokens relation/edge.
	OauthTokensTable = "cf_oauth_tokens"
	// OauthTokensInverseTable is the table name for the OAuthToken entity.
	// It exists in this package in order to avoid circular dependency with the "oauthtoken" package.
	OauthTokensInverseTable = "cf_oauth_tokens"
	// OauthTokensColumn is the table column denoting the oauth_tokens relation/edge.
	OauthTokensColumn = "user_id"
	// OauthAuthCodesTable is the table that holds the oauth_auth_codes relation/edge.
	OauthAuthCodesTable = "cf_oauth_auth_codes"
	// OauthAuthCodesInverseTable is the table name for the OAuthAuthCode entity.
	// It exists in this package in order to avoid circular dependency with the "oauthauthcode" package.
	OauthAuthCodesInverseTable = "cf_oauth_auth_codes"
	// OauthAuthCodesColumn is the table column denoting the oauth_auth_codes relation/edge.
	OauthAuthCodesColumn = "user_id"
	// OauthConsentsTable is the table that holds the oauth_consents relation/edge.
	OauthConsentsTable = "cf_oauth_consents"
	// OauthConsentsInverseTable is the table name for the OAuthConsent entity.
	// It exists in this package in order to avoid circular dependency with the "oauthconsent" package.
	OauthConsentsInverseTable = "cf_oauth_consents"
	// OauthConsentsColumn is the table column denoting the oauth_consents relation/edge.
	OauthConsentsColumn = "user_id"
	// CreatedServiceAccountsTable is the table that holds the created_service_accounts relation/edge.
	CreatedServiceAccountsTable = "cf_service_accounts"
	// CreatedServiceAccountsInverseTable is the table name for the ServiceAccount entity.
	// It exists in this package in order to avoid circular dependency with the "serviceaccount" package.
	CreatedServiceAccountsInverseTable = "cf_service_accounts"
	// CreatedServiceAccountsColumn is the table column denoting the created_service_accounts relation/edge.
	CreatedServiceAccountsColumn = "created_by"
)

Variables

View Source
var (
	// 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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultIsPlatformAdmin holds the default value on creation for the "is_platform_admin" field.
	DefaultIsPlatformAdmin bool
	// DefaultActive holds the default value on creation for the "active" field.
	DefaultActive bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for user fields.

Functions

func Active

func Active(v bool) predicate.User

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ

func ActiveEQ(v bool) predicate.User

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ

func ActiveNEQ(v bool) predicate.User

ActiveNEQ applies the NEQ predicate on the "active" field.

func And

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

And groups predicates with the AND operator between them.

func AvatarURL

func AvatarURL(v string) predicate.User

AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.

func AvatarURLContains

func AvatarURLContains(v string) predicate.User

AvatarURLContains applies the Contains predicate on the "avatar_url" field.

func AvatarURLContainsFold

func AvatarURLContainsFold(v string) predicate.User

AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.

func AvatarURLEQ

func AvatarURLEQ(v string) predicate.User

AvatarURLEQ applies the EQ predicate on the "avatar_url" field.

func AvatarURLEqualFold

func AvatarURLEqualFold(v string) predicate.User

AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.

func AvatarURLGT

func AvatarURLGT(v string) predicate.User

AvatarURLGT applies the GT predicate on the "avatar_url" field.

func AvatarURLGTE

func AvatarURLGTE(v string) predicate.User

AvatarURLGTE applies the GTE predicate on the "avatar_url" field.

func AvatarURLHasPrefix

func AvatarURLHasPrefix(v string) predicate.User

AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.

func AvatarURLHasSuffix

func AvatarURLHasSuffix(v string) predicate.User

AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.

func AvatarURLIn

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

AvatarURLIn applies the In predicate on the "avatar_url" field.

func AvatarURLIsNil

func AvatarURLIsNil() predicate.User

AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.

func AvatarURLLT

func AvatarURLLT(v string) predicate.User

AvatarURLLT applies the LT predicate on the "avatar_url" field.

func AvatarURLLTE

func AvatarURLLTE(v string) predicate.User

AvatarURLLTE applies the LTE predicate on the "avatar_url" field.

func AvatarURLNEQ

func AvatarURLNEQ(v string) predicate.User

AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.

func AvatarURLNotIn

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

AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.

func AvatarURLNotNil

func AvatarURLNotNil() predicate.User

AvatarURLNotNil applies the NotNil predicate on the "avatar_url" 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 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 FederationID added in v0.2.0

func FederationID(v uuid.UUID) predicate.User

FederationID applies equality check predicate on the "federation_id" field. It's identical to FederationIDEQ.

func FederationIDEQ added in v0.2.0

func FederationIDEQ(v uuid.UUID) predicate.User

FederationIDEQ applies the EQ predicate on the "federation_id" field.

func FederationIDGT added in v0.2.0

func FederationIDGT(v uuid.UUID) predicate.User

FederationIDGT applies the GT predicate on the "federation_id" field.

func FederationIDGTE added in v0.2.0

func FederationIDGTE(v uuid.UUID) predicate.User

FederationIDGTE applies the GTE predicate on the "federation_id" field.

func FederationIDIn added in v0.2.0

func FederationIDIn(vs ...uuid.UUID) predicate.User

FederationIDIn applies the In predicate on the "federation_id" field.

func FederationIDIsNil added in v0.2.0

func FederationIDIsNil() predicate.User

FederationIDIsNil applies the IsNil predicate on the "federation_id" field.

func FederationIDLT added in v0.2.0

func FederationIDLT(v uuid.UUID) predicate.User

FederationIDLT applies the LT predicate on the "federation_id" field.

func FederationIDLTE added in v0.2.0

func FederationIDLTE(v uuid.UUID) predicate.User

FederationIDLTE applies the LTE predicate on the "federation_id" field.

func FederationIDNEQ added in v0.2.0

func FederationIDNEQ(v uuid.UUID) predicate.User

FederationIDNEQ applies the NEQ predicate on the "federation_id" field.

func FederationIDNotIn added in v0.2.0

func FederationIDNotIn(vs ...uuid.UUID) predicate.User

FederationIDNotIn applies the NotIn predicate on the "federation_id" field.

func FederationIDNotNil added in v0.2.0

func FederationIDNotNil() predicate.User

FederationIDNotNil applies the NotNil predicate on the "federation_id" field.

func HasAPIKeys

func HasAPIKeys() predicate.User

HasAPIKeys applies the HasEdge predicate on the "api_keys" edge.

func HasAPIKeysWith

func HasAPIKeysWith(preds ...predicate.APIKey) predicate.User

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

func HasCreatedServiceAccounts

func HasCreatedServiceAccounts() predicate.User

HasCreatedServiceAccounts applies the HasEdge predicate on the "created_service_accounts" edge.

func HasCreatedServiceAccountsWith

func HasCreatedServiceAccountsWith(preds ...predicate.ServiceAccount) predicate.User

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

func HasMemberships

func HasMemberships() predicate.User

HasMemberships applies the HasEdge predicate on the "memberships" edge.

func HasMembershipsWith

func HasMembershipsWith(preds ...predicate.Membership) predicate.User

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

func HasOauthAccounts

func HasOauthAccounts() predicate.User

HasOauthAccounts applies the HasEdge predicate on the "oauth_accounts" edge.

func HasOauthAccountsWith

func HasOauthAccountsWith(preds ...predicate.OAuthAccount) predicate.User

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

func HasOauthApps

func HasOauthApps() predicate.User

HasOauthApps applies the HasEdge predicate on the "oauth_apps" edge.

func HasOauthAppsWith

func HasOauthAppsWith(preds ...predicate.OAuthApp) predicate.User

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

func HasOauthAuthCodes

func HasOauthAuthCodes() predicate.User

HasOauthAuthCodes applies the HasEdge predicate on the "oauth_auth_codes" edge.

func HasOauthAuthCodesWith

func HasOauthAuthCodesWith(preds ...predicate.OAuthAuthCode) predicate.User

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

func HasOauthConsents

func HasOauthConsents() predicate.User

HasOauthConsents applies the HasEdge predicate on the "oauth_consents" edge.

func HasOauthConsentsWith

func HasOauthConsentsWith(preds ...predicate.OAuthConsent) predicate.User

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

func HasOauthTokens

func HasOauthTokens() predicate.User

HasOauthTokens applies the HasEdge predicate on the "oauth_tokens" edge.

func HasOauthTokensWith

func HasOauthTokensWith(preds ...predicate.OAuthToken) predicate.User

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

func HasRefreshTokens

func HasRefreshTokens() predicate.User

HasRefreshTokens applies the HasEdge predicate on the "refresh_tokens" edge.

func HasRefreshTokensWith

func HasRefreshTokensWith(preds ...predicate.RefreshToken) predicate.User

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

func ID

func ID(id uuid.UUID) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.User

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.User

IDNotIn applies the NotIn predicate on the ID field.

func IsPlatformAdmin

func IsPlatformAdmin(v bool) predicate.User

IsPlatformAdmin applies equality check predicate on the "is_platform_admin" field. It's identical to IsPlatformAdminEQ.

func IsPlatformAdminEQ

func IsPlatformAdminEQ(v bool) predicate.User

IsPlatformAdminEQ applies the EQ predicate on the "is_platform_admin" field.

func IsPlatformAdminNEQ

func IsPlatformAdminNEQ(v bool) predicate.User

IsPlatformAdminNEQ applies the NEQ predicate on the "is_platform_admin" field.

func LastLoginAt

func LastLoginAt(v time.Time) predicate.User

LastLoginAt applies equality check predicate on the "last_login_at" field. It's identical to LastLoginAtEQ.

func LastLoginAtEQ

func LastLoginAtEQ(v time.Time) predicate.User

LastLoginAtEQ applies the EQ predicate on the "last_login_at" field.

func LastLoginAtGT

func LastLoginAtGT(v time.Time) predicate.User

LastLoginAtGT applies the GT predicate on the "last_login_at" field.

func LastLoginAtGTE

func LastLoginAtGTE(v time.Time) predicate.User

LastLoginAtGTE applies the GTE predicate on the "last_login_at" field.

func LastLoginAtIn

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

LastLoginAtIn applies the In predicate on the "last_login_at" field.

func LastLoginAtIsNil

func LastLoginAtIsNil() predicate.User

LastLoginAtIsNil applies the IsNil predicate on the "last_login_at" field.

func LastLoginAtLT

func LastLoginAtLT(v time.Time) predicate.User

LastLoginAtLT applies the LT predicate on the "last_login_at" field.

func LastLoginAtLTE

func LastLoginAtLTE(v time.Time) predicate.User

LastLoginAtLTE applies the LTE predicate on the "last_login_at" field.

func LastLoginAtNEQ

func LastLoginAtNEQ(v time.Time) predicate.User

LastLoginAtNEQ applies the NEQ predicate on the "last_login_at" field.

func LastLoginAtNotIn

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

LastLoginAtNotIn applies the NotIn predicate on the "last_login_at" field.

func LastLoginAtNotNil

func LastLoginAtNotNil() predicate.User

LastLoginAtNotNil applies the NotNil predicate on the "last_login_at" field.

func Name

func Name(v string) predicate.User

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.User

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.User

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.User

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.User

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.User

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.User

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.User

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.User

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

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

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.User

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.User

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.User

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

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

NameNotIn applies the NotIn predicate on the "name" 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 PasswordHash

func PasswordHash(v string) predicate.User

PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.

func PasswordHashContains

func PasswordHashContains(v string) predicate.User

PasswordHashContains applies the Contains predicate on the "password_hash" field.

func PasswordHashContainsFold

func PasswordHashContainsFold(v string) predicate.User

PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.

func PasswordHashEQ

func PasswordHashEQ(v string) predicate.User

PasswordHashEQ applies the EQ predicate on the "password_hash" field.

func PasswordHashEqualFold

func PasswordHashEqualFold(v string) predicate.User

PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.

func PasswordHashGT

func PasswordHashGT(v string) predicate.User

PasswordHashGT applies the GT predicate on the "password_hash" field.

func PasswordHashGTE

func PasswordHashGTE(v string) predicate.User

PasswordHashGTE applies the GTE predicate on the "password_hash" field.

func PasswordHashHasPrefix

func PasswordHashHasPrefix(v string) predicate.User

PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.

func PasswordHashHasSuffix

func PasswordHashHasSuffix(v string) predicate.User

PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.

func PasswordHashIn

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

PasswordHashIn applies the In predicate on the "password_hash" field.

func PasswordHashIsNil

func PasswordHashIsNil() predicate.User

PasswordHashIsNil applies the IsNil predicate on the "password_hash" field.

func PasswordHashLT

func PasswordHashLT(v string) predicate.User

PasswordHashLT applies the LT predicate on the "password_hash" field.

func PasswordHashLTE

func PasswordHashLTE(v string) predicate.User

PasswordHashLTE applies the LTE predicate on the "password_hash" field.

func PasswordHashNEQ

func PasswordHashNEQ(v string) predicate.User

PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.

func PasswordHashNotIn

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

PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.

func PasswordHashNotNil

func PasswordHashNotNil() predicate.User

PasswordHashNotNil applies the NotNil predicate on the "password_hash" 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 ByAPIKeys

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

ByAPIKeys orders the results by api_keys terms.

func ByAPIKeysCount

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

ByAPIKeysCount orders the results by api_keys count.

func ByActive

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

ByActive orders the results by the active field.

func ByAvatarURL

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

ByAvatarURL orders the results by the avatar_url field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedServiceAccounts

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

ByCreatedServiceAccounts orders the results by created_service_accounts terms.

func ByCreatedServiceAccountsCount

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

ByCreatedServiceAccountsCount orders the results by created_service_accounts count.

func ByEmail

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

ByEmail orders the results by the email field.

func ByFederationID added in v0.2.0

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

ByFederationID orders the results by the federation_id field.

func ByID

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

ByID orders the results by the id field.

func ByIsPlatformAdmin

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

ByIsPlatformAdmin orders the results by the is_platform_admin field.

func ByLastLoginAt

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

ByLastLoginAt orders the results by the last_login_at field.

func ByMemberships

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

ByMemberships orders the results by memberships terms.

func ByMembershipsCount

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

ByMembershipsCount orders the results by memberships count.

func ByName

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

ByName orders the results by the name field.

func ByOauthAccounts

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

ByOauthAccounts orders the results by oauth_accounts terms.

func ByOauthAccountsCount

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

ByOauthAccountsCount orders the results by oauth_accounts count.

func ByOauthApps

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

ByOauthApps orders the results by oauth_apps terms.

func ByOauthAppsCount

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

ByOauthAppsCount orders the results by oauth_apps count.

func ByOauthAuthCodes

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

ByOauthAuthCodes orders the results by oauth_auth_codes terms.

func ByOauthAuthCodesCount

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

ByOauthAuthCodesCount orders the results by oauth_auth_codes count.

func ByOauthConsents

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

ByOauthConsents orders the results by oauth_consents terms.

func ByOauthConsentsCount

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

ByOauthConsentsCount orders the results by oauth_consents count.

func ByOauthTokens

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

ByOauthTokens orders the results by oauth_tokens terms.

func ByOauthTokensCount

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

ByOauthTokensCount orders the results by oauth_tokens count.

func ByPasswordHash

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

ByPasswordHash orders the results by the password_hash field.

func ByRefreshTokens

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

ByRefreshTokens orders the results by refresh_tokens terms.

func ByRefreshTokensCount

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

ByRefreshTokensCount orders the results by refresh_tokens count.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

Jump to

Keyboard shortcuts

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