Documentation
¶
Index ¶
- Constants
- Variables
- func Active(v bool) predicate.User
- func ActiveEQ(v bool) predicate.User
- func ActiveNEQ(v bool) predicate.User
- func And(predicates ...predicate.User) predicate.User
- func AvatarURL(v string) predicate.User
- func AvatarURLContains(v string) predicate.User
- func AvatarURLContainsFold(v string) predicate.User
- func AvatarURLEQ(v string) predicate.User
- func AvatarURLEqualFold(v string) predicate.User
- func AvatarURLGT(v string) predicate.User
- func AvatarURLGTE(v string) predicate.User
- func AvatarURLHasPrefix(v string) predicate.User
- func AvatarURLHasSuffix(v string) predicate.User
- func AvatarURLIn(vs ...string) predicate.User
- func AvatarURLIsNil() predicate.User
- func AvatarURLLT(v string) predicate.User
- func AvatarURLLTE(v string) predicate.User
- func AvatarURLNEQ(v string) predicate.User
- func AvatarURLNotIn(vs ...string) predicate.User
- func AvatarURLNotNil() 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 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 FederationID(v uuid.UUID) predicate.User
- func FederationIDEQ(v uuid.UUID) predicate.User
- func FederationIDGT(v uuid.UUID) predicate.User
- func FederationIDGTE(v uuid.UUID) predicate.User
- func FederationIDIn(vs ...uuid.UUID) predicate.User
- func FederationIDIsNil() predicate.User
- func FederationIDLT(v uuid.UUID) predicate.User
- func FederationIDLTE(v uuid.UUID) predicate.User
- func FederationIDNEQ(v uuid.UUID) predicate.User
- func FederationIDNotIn(vs ...uuid.UUID) predicate.User
- func FederationIDNotNil() predicate.User
- func HasAPIKeys() predicate.User
- func HasAPIKeysWith(preds ...predicate.APIKey) predicate.User
- func HasCreatedServiceAccounts() predicate.User
- func HasCreatedServiceAccountsWith(preds ...predicate.ServiceAccount) predicate.User
- func HasMemberships() predicate.User
- func HasMembershipsWith(preds ...predicate.Membership) predicate.User
- func HasOauthAccounts() predicate.User
- func HasOauthAccountsWith(preds ...predicate.OAuthAccount) predicate.User
- func HasOauthApps() predicate.User
- func HasOauthAppsWith(preds ...predicate.OAuthApp) predicate.User
- func HasOauthAuthCodes() predicate.User
- func HasOauthAuthCodesWith(preds ...predicate.OAuthAuthCode) predicate.User
- func HasOauthConsents() predicate.User
- func HasOauthConsentsWith(preds ...predicate.OAuthConsent) predicate.User
- func HasOauthTokens() predicate.User
- func HasOauthTokensWith(preds ...predicate.OAuthToken) predicate.User
- func HasRefreshTokens() predicate.User
- func HasRefreshTokensWith(preds ...predicate.RefreshToken) predicate.User
- func ID(id uuid.UUID) predicate.User
- func IDEQ(id uuid.UUID) predicate.User
- func IDGT(id uuid.UUID) predicate.User
- func IDGTE(id uuid.UUID) predicate.User
- func IDIn(ids ...uuid.UUID) predicate.User
- func IDLT(id uuid.UUID) predicate.User
- func IDLTE(id uuid.UUID) predicate.User
- func IDNEQ(id uuid.UUID) predicate.User
- func IDNotIn(ids ...uuid.UUID) predicate.User
- func IsPlatformAdmin(v bool) predicate.User
- func IsPlatformAdminEQ(v bool) predicate.User
- func IsPlatformAdminNEQ(v bool) predicate.User
- func LastLoginAt(v time.Time) predicate.User
- func LastLoginAtEQ(v time.Time) predicate.User
- func LastLoginAtGT(v time.Time) predicate.User
- func LastLoginAtGTE(v time.Time) predicate.User
- func LastLoginAtIn(vs ...time.Time) predicate.User
- func LastLoginAtIsNil() predicate.User
- func LastLoginAtLT(v time.Time) predicate.User
- func LastLoginAtLTE(v time.Time) predicate.User
- func LastLoginAtNEQ(v time.Time) predicate.User
- func LastLoginAtNotIn(vs ...time.Time) predicate.User
- func LastLoginAtNotNil() predicate.User
- func Name(v string) predicate.User
- func NameContains(v string) predicate.User
- func NameContainsFold(v string) predicate.User
- func NameEQ(v string) predicate.User
- func NameEqualFold(v string) predicate.User
- func NameGT(v string) predicate.User
- func NameGTE(v string) predicate.User
- func NameHasPrefix(v string) predicate.User
- func NameHasSuffix(v string) predicate.User
- func NameIn(vs ...string) predicate.User
- func NameLT(v string) predicate.User
- func NameLTE(v string) predicate.User
- func NameNEQ(v string) predicate.User
- func NameNotIn(vs ...string) predicate.User
- func Not(p predicate.User) predicate.User
- func Or(predicates ...predicate.User) predicate.User
- func PasswordHash(v string) predicate.User
- func PasswordHashContains(v string) predicate.User
- func PasswordHashContainsFold(v string) predicate.User
- func PasswordHashEQ(v string) predicate.User
- func PasswordHashEqualFold(v string) predicate.User
- func PasswordHashGT(v string) predicate.User
- func PasswordHashGTE(v string) predicate.User
- func PasswordHashHasPrefix(v string) predicate.User
- func PasswordHashHasSuffix(v string) predicate.User
- func PasswordHashIn(vs ...string) predicate.User
- func PasswordHashIsNil() predicate.User
- func PasswordHashLT(v string) predicate.User
- func PasswordHashLTE(v string) predicate.User
- func PasswordHashNEQ(v string) predicate.User
- func PasswordHashNotIn(vs ...string) predicate.User
- func PasswordHashNotNil() 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 ByAPIKeys(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAPIKeysCount(opts ...sql.OrderTermOption) OrderOption
- func ByActive(opts ...sql.OrderTermOption) OrderOption
- func ByAvatarURL(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedServiceAccounts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCreatedServiceAccountsCount(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByFederationID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByIsPlatformAdmin(opts ...sql.OrderTermOption) OrderOption
- func ByLastLoginAt(opts ...sql.OrderTermOption) OrderOption
- func ByMemberships(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMembershipsCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOauthAccounts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOauthAccountsCount(opts ...sql.OrderTermOption) OrderOption
- func ByOauthApps(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOauthAppsCount(opts ...sql.OrderTermOption) OrderOption
- func ByOauthAuthCodes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOauthAuthCodesCount(opts ...sql.OrderTermOption) OrderOption
- func ByOauthConsents(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOauthConsentsCount(opts ...sql.OrderTermOption) OrderOption
- func ByOauthTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByOauthTokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByPasswordHash(opts ...sql.OrderTermOption) OrderOption
- func ByRefreshTokens(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRefreshTokensCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the user type in the database. Label = "user" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // 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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldEmail, FieldName, FieldAvatarURL, FieldPasswordHash, FieldIsPlatformAdmin, FieldActive, FieldLastLoginAt, FieldFederationID, }
Columns holds all SQL columns for user fields.
Functions ¶
func Active ¶
Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.
func AvatarURL ¶
AvatarURL applies equality check predicate on the "avatar_url" field. It's identical to AvatarURLEQ.
func AvatarURLContains ¶
AvatarURLContains applies the Contains predicate on the "avatar_url" field.
func AvatarURLContainsFold ¶
AvatarURLContainsFold applies the ContainsFold predicate on the "avatar_url" field.
func AvatarURLEQ ¶
AvatarURLEQ applies the EQ predicate on the "avatar_url" field.
func AvatarURLEqualFold ¶
AvatarURLEqualFold applies the EqualFold predicate on the "avatar_url" field.
func AvatarURLGT ¶
AvatarURLGT applies the GT predicate on the "avatar_url" field.
func AvatarURLGTE ¶
AvatarURLGTE applies the GTE predicate on the "avatar_url" field.
func AvatarURLHasPrefix ¶
AvatarURLHasPrefix applies the HasPrefix predicate on the "avatar_url" field.
func AvatarURLHasSuffix ¶
AvatarURLHasSuffix applies the HasSuffix predicate on the "avatar_url" field.
func AvatarURLIn ¶
AvatarURLIn applies the In predicate on the "avatar_url" field.
func AvatarURLIsNil ¶
AvatarURLIsNil applies the IsNil predicate on the "avatar_url" field.
func AvatarURLLT ¶
AvatarURLLT applies the LT predicate on the "avatar_url" field.
func AvatarURLLTE ¶
AvatarURLLTE applies the LTE predicate on the "avatar_url" field.
func AvatarURLNEQ ¶
AvatarURLNEQ applies the NEQ predicate on the "avatar_url" field.
func AvatarURLNotIn ¶
AvatarURLNotIn applies the NotIn predicate on the "avatar_url" field.
func AvatarURLNotNil ¶
AvatarURLNotNil applies the NotNil predicate on the "avatar_url" 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 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 FederationID ¶ added in v0.2.0
FederationID applies equality check predicate on the "federation_id" field. It's identical to FederationIDEQ.
func FederationIDEQ ¶ added in v0.2.0
FederationIDEQ applies the EQ predicate on the "federation_id" field.
func FederationIDGT ¶ added in v0.2.0
FederationIDGT applies the GT predicate on the "federation_id" field.
func FederationIDGTE ¶ added in v0.2.0
FederationIDGTE applies the GTE predicate on the "federation_id" field.
func FederationIDIn ¶ added in v0.2.0
FederationIDIn applies the In predicate on the "federation_id" field.
func FederationIDIsNil ¶ added in v0.2.0
FederationIDIsNil applies the IsNil predicate on the "federation_id" field.
func FederationIDLT ¶ added in v0.2.0
FederationIDLT applies the LT predicate on the "federation_id" field.
func FederationIDLTE ¶ added in v0.2.0
FederationIDLTE applies the LTE predicate on the "federation_id" field.
func FederationIDNEQ ¶ added in v0.2.0
FederationIDNEQ applies the NEQ predicate on the "federation_id" field.
func FederationIDNotIn ¶ added in v0.2.0
FederationIDNotIn applies the NotIn predicate on the "federation_id" field.
func FederationIDNotNil ¶ added in v0.2.0
FederationIDNotNil applies the NotNil predicate on the "federation_id" field.
func HasAPIKeys ¶
HasAPIKeys applies the HasEdge predicate on the "api_keys" edge.
func HasAPIKeysWith ¶
HasAPIKeysWith applies the HasEdge predicate on the "api_keys" edge with a given conditions (other predicates).
func HasCreatedServiceAccounts ¶
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 ¶
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 ¶
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 ¶
HasOauthApps applies the HasEdge predicate on the "oauth_apps" edge.
func HasOauthAppsWith ¶
HasOauthAppsWith applies the HasEdge predicate on the "oauth_apps" edge with a given conditions (other predicates).
func HasOauthAuthCodes ¶
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 ¶
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 ¶
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 ¶
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 IsPlatformAdmin ¶
IsPlatformAdmin applies equality check predicate on the "is_platform_admin" field. It's identical to IsPlatformAdminEQ.
func IsPlatformAdminEQ ¶
IsPlatformAdminEQ applies the EQ predicate on the "is_platform_admin" field.
func IsPlatformAdminNEQ ¶
IsPlatformAdminNEQ applies the NEQ predicate on the "is_platform_admin" field.
func LastLoginAt ¶
LastLoginAt applies equality check predicate on the "last_login_at" field. It's identical to LastLoginAtEQ.
func LastLoginAtEQ ¶
LastLoginAtEQ applies the EQ predicate on the "last_login_at" field.
func LastLoginAtGT ¶
LastLoginAtGT applies the GT predicate on the "last_login_at" field.
func LastLoginAtGTE ¶
LastLoginAtGTE applies the GTE predicate on the "last_login_at" field.
func LastLoginAtIn ¶
LastLoginAtIn applies the In predicate on the "last_login_at" field.
func LastLoginAtIsNil ¶
LastLoginAtIsNil applies the IsNil predicate on the "last_login_at" field.
func LastLoginAtLT ¶
LastLoginAtLT applies the LT predicate on the "last_login_at" field.
func LastLoginAtLTE ¶
LastLoginAtLTE applies the LTE predicate on the "last_login_at" field.
func LastLoginAtNEQ ¶
LastLoginAtNEQ applies the NEQ predicate on the "last_login_at" field.
func LastLoginAtNotIn ¶
LastLoginAtNotIn applies the NotIn predicate on the "last_login_at" field.
func LastLoginAtNotNil ¶
LastLoginAtNotNil applies the NotNil predicate on the "last_login_at" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func PasswordHash ¶
PasswordHash applies equality check predicate on the "password_hash" field. It's identical to PasswordHashEQ.
func PasswordHashContains ¶
PasswordHashContains applies the Contains predicate on the "password_hash" field.
func PasswordHashContainsFold ¶
PasswordHashContainsFold applies the ContainsFold predicate on the "password_hash" field.
func PasswordHashEQ ¶
PasswordHashEQ applies the EQ predicate on the "password_hash" field.
func PasswordHashEqualFold ¶
PasswordHashEqualFold applies the EqualFold predicate on the "password_hash" field.
func PasswordHashGT ¶
PasswordHashGT applies the GT predicate on the "password_hash" field.
func PasswordHashGTE ¶
PasswordHashGTE applies the GTE predicate on the "password_hash" field.
func PasswordHashHasPrefix ¶
PasswordHashHasPrefix applies the HasPrefix predicate on the "password_hash" field.
func PasswordHashHasSuffix ¶
PasswordHashHasSuffix applies the HasSuffix predicate on the "password_hash" field.
func PasswordHashIn ¶
PasswordHashIn applies the In predicate on the "password_hash" field.
func PasswordHashIsNil ¶
PasswordHashIsNil applies the IsNil predicate on the "password_hash" field.
func PasswordHashLT ¶
PasswordHashLT applies the LT predicate on the "password_hash" field.
func PasswordHashLTE ¶
PasswordHashLTE applies the LTE predicate on the "password_hash" field.
func PasswordHashNEQ ¶
PasswordHashNEQ applies the NEQ predicate on the "password_hash" field.
func PasswordHashNotIn ¶
PasswordHashNotIn applies the NotIn predicate on the "password_hash" field.
func PasswordHashNotNil ¶
PasswordHashNotNil applies the NotNil predicate on the "password_hash" 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 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.