useridentity

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the useridentity type in the database.
	Label = "user_identity"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldIssuer holds the string denoting the issuer field in the database.
	FieldIssuer = "issuer"
	// FieldSubject holds the string denoting the subject field in the database.
	FieldSubject = "subject"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldEmailVerified holds the string denoting the email_verified field in the database.
	FieldEmailVerified = "email_verified"
	// FieldClaimsVersion holds the string denoting the claims_version field in the database.
	FieldClaimsVersion = "claims_version"
	// FieldRawClaimsJSON holds the string denoting the raw_claims_json field in the database.
	FieldRawClaimsJSON = "raw_claims_json"
	// FieldLastSyncedAt holds the string denoting the last_synced_at field in the database.
	FieldLastSyncedAt = "last_synced_at"
	// 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"
	// Table holds the table name of the useridentity in the database.
	Table = "user_identities"
)

Variables

View Source
var (
	// IssuerValidator is a validator for the "issuer" field. It is called by the builders before save.
	IssuerValidator func(string) error
	// SubjectValidator is a validator for the "subject" field. It is called by the builders before save.
	SubjectValidator func(string) error
	// DefaultEmail holds the default value on creation for the "email" field.
	DefaultEmail string
	// DefaultEmailVerified holds the default value on creation for the "email_verified" field.
	DefaultEmailVerified bool
	// DefaultClaimsVersion holds the default value on creation for the "claims_version" field.
	DefaultClaimsVersion int
	// DefaultRawClaimsJSON holds the default value on creation for the "raw_claims_json" field.
	DefaultRawClaimsJSON string
	// DefaultLastSyncedAt holds the default value on creation for the "last_synced_at" field.
	DefaultLastSyncedAt func() time.Time
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for useridentity fields.

Functions

func And

func And(predicates ...predicate.UserIdentity) predicate.UserIdentity

And groups predicates with the AND operator between them.

func ClaimsVersion

func ClaimsVersion(v int) predicate.UserIdentity

ClaimsVersion applies equality check predicate on the "claims_version" field. It's identical to ClaimsVersionEQ.

func ClaimsVersionEQ

func ClaimsVersionEQ(v int) predicate.UserIdentity

ClaimsVersionEQ applies the EQ predicate on the "claims_version" field.

func ClaimsVersionGT

func ClaimsVersionGT(v int) predicate.UserIdentity

ClaimsVersionGT applies the GT predicate on the "claims_version" field.

func ClaimsVersionGTE

func ClaimsVersionGTE(v int) predicate.UserIdentity

ClaimsVersionGTE applies the GTE predicate on the "claims_version" field.

func ClaimsVersionIn

func ClaimsVersionIn(vs ...int) predicate.UserIdentity

ClaimsVersionIn applies the In predicate on the "claims_version" field.

func ClaimsVersionLT

func ClaimsVersionLT(v int) predicate.UserIdentity

ClaimsVersionLT applies the LT predicate on the "claims_version" field.

func ClaimsVersionLTE

func ClaimsVersionLTE(v int) predicate.UserIdentity

ClaimsVersionLTE applies the LTE predicate on the "claims_version" field.

func ClaimsVersionNEQ

func ClaimsVersionNEQ(v int) predicate.UserIdentity

ClaimsVersionNEQ applies the NEQ predicate on the "claims_version" field.

func ClaimsVersionNotIn

func ClaimsVersionNotIn(vs ...int) predicate.UserIdentity

ClaimsVersionNotIn applies the NotIn predicate on the "claims_version" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.UserIdentity

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.UserIdentity

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.UserIdentity

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.UserIdentity

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.UserIdentity

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.UserIdentity

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.UserIdentity

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

func CreatedAtNotIn

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

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

func Email

func Email(v string) predicate.UserIdentity

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

func EmailContains

func EmailContains(v string) predicate.UserIdentity

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.UserIdentity

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

func EmailEQ

func EmailEQ(v string) predicate.UserIdentity

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.UserIdentity

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

func EmailGT

func EmailGT(v string) predicate.UserIdentity

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

func EmailGTE

func EmailGTE(v string) predicate.UserIdentity

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.UserIdentity

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.UserIdentity

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

func EmailIn

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

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

func EmailLT

func EmailLT(v string) predicate.UserIdentity

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

func EmailLTE

func EmailLTE(v string) predicate.UserIdentity

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

func EmailNEQ

func EmailNEQ(v string) predicate.UserIdentity

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

func EmailNotIn

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

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

func EmailVerified

func EmailVerified(v bool) predicate.UserIdentity

EmailVerified applies equality check predicate on the "email_verified" field. It's identical to EmailVerifiedEQ.

func EmailVerifiedEQ

func EmailVerifiedEQ(v bool) predicate.UserIdentity

EmailVerifiedEQ applies the EQ predicate on the "email_verified" field.

func EmailVerifiedNEQ

func EmailVerifiedNEQ(v bool) predicate.UserIdentity

EmailVerifiedNEQ applies the NEQ predicate on the "email_verified" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.UserIdentity

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.UserIdentity

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.UserIdentity

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Issuer

func Issuer(v string) predicate.UserIdentity

Issuer applies equality check predicate on the "issuer" field. It's identical to IssuerEQ.

func IssuerContains

func IssuerContains(v string) predicate.UserIdentity

IssuerContains applies the Contains predicate on the "issuer" field.

func IssuerContainsFold

func IssuerContainsFold(v string) predicate.UserIdentity

IssuerContainsFold applies the ContainsFold predicate on the "issuer" field.

func IssuerEQ

func IssuerEQ(v string) predicate.UserIdentity

IssuerEQ applies the EQ predicate on the "issuer" field.

func IssuerEqualFold

func IssuerEqualFold(v string) predicate.UserIdentity

IssuerEqualFold applies the EqualFold predicate on the "issuer" field.

func IssuerGT

func IssuerGT(v string) predicate.UserIdentity

IssuerGT applies the GT predicate on the "issuer" field.

func IssuerGTE

func IssuerGTE(v string) predicate.UserIdentity

IssuerGTE applies the GTE predicate on the "issuer" field.

func IssuerHasPrefix

func IssuerHasPrefix(v string) predicate.UserIdentity

IssuerHasPrefix applies the HasPrefix predicate on the "issuer" field.

func IssuerHasSuffix

func IssuerHasSuffix(v string) predicate.UserIdentity

IssuerHasSuffix applies the HasSuffix predicate on the "issuer" field.

func IssuerIn

func IssuerIn(vs ...string) predicate.UserIdentity

IssuerIn applies the In predicate on the "issuer" field.

func IssuerLT

func IssuerLT(v string) predicate.UserIdentity

IssuerLT applies the LT predicate on the "issuer" field.

func IssuerLTE

func IssuerLTE(v string) predicate.UserIdentity

IssuerLTE applies the LTE predicate on the "issuer" field.

func IssuerNEQ

func IssuerNEQ(v string) predicate.UserIdentity

IssuerNEQ applies the NEQ predicate on the "issuer" field.

func IssuerNotIn

func IssuerNotIn(vs ...string) predicate.UserIdentity

IssuerNotIn applies the NotIn predicate on the "issuer" field.

func LastSyncedAt

func LastSyncedAt(v time.Time) predicate.UserIdentity

LastSyncedAt applies equality check predicate on the "last_synced_at" field. It's identical to LastSyncedAtEQ.

func LastSyncedAtEQ

func LastSyncedAtEQ(v time.Time) predicate.UserIdentity

LastSyncedAtEQ applies the EQ predicate on the "last_synced_at" field.

func LastSyncedAtGT

func LastSyncedAtGT(v time.Time) predicate.UserIdentity

LastSyncedAtGT applies the GT predicate on the "last_synced_at" field.

func LastSyncedAtGTE

func LastSyncedAtGTE(v time.Time) predicate.UserIdentity

LastSyncedAtGTE applies the GTE predicate on the "last_synced_at" field.

func LastSyncedAtIn

func LastSyncedAtIn(vs ...time.Time) predicate.UserIdentity

LastSyncedAtIn applies the In predicate on the "last_synced_at" field.

func LastSyncedAtLT

func LastSyncedAtLT(v time.Time) predicate.UserIdentity

LastSyncedAtLT applies the LT predicate on the "last_synced_at" field.

func LastSyncedAtLTE

func LastSyncedAtLTE(v time.Time) predicate.UserIdentity

LastSyncedAtLTE applies the LTE predicate on the "last_synced_at" field.

func LastSyncedAtNEQ

func LastSyncedAtNEQ(v time.Time) predicate.UserIdentity

LastSyncedAtNEQ applies the NEQ predicate on the "last_synced_at" field.

func LastSyncedAtNotIn

func LastSyncedAtNotIn(vs ...time.Time) predicate.UserIdentity

LastSyncedAtNotIn applies the NotIn predicate on the "last_synced_at" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.UserIdentity) predicate.UserIdentity

Or groups predicates with the OR operator between them.

func RawClaimsJSON

func RawClaimsJSON(v string) predicate.UserIdentity

RawClaimsJSON applies equality check predicate on the "raw_claims_json" field. It's identical to RawClaimsJSONEQ.

func RawClaimsJSONContains

func RawClaimsJSONContains(v string) predicate.UserIdentity

RawClaimsJSONContains applies the Contains predicate on the "raw_claims_json" field.

func RawClaimsJSONContainsFold

func RawClaimsJSONContainsFold(v string) predicate.UserIdentity

RawClaimsJSONContainsFold applies the ContainsFold predicate on the "raw_claims_json" field.

func RawClaimsJSONEQ

func RawClaimsJSONEQ(v string) predicate.UserIdentity

RawClaimsJSONEQ applies the EQ predicate on the "raw_claims_json" field.

func RawClaimsJSONEqualFold

func RawClaimsJSONEqualFold(v string) predicate.UserIdentity

RawClaimsJSONEqualFold applies the EqualFold predicate on the "raw_claims_json" field.

func RawClaimsJSONGT

func RawClaimsJSONGT(v string) predicate.UserIdentity

RawClaimsJSONGT applies the GT predicate on the "raw_claims_json" field.

func RawClaimsJSONGTE

func RawClaimsJSONGTE(v string) predicate.UserIdentity

RawClaimsJSONGTE applies the GTE predicate on the "raw_claims_json" field.

func RawClaimsJSONHasPrefix

func RawClaimsJSONHasPrefix(v string) predicate.UserIdentity

RawClaimsJSONHasPrefix applies the HasPrefix predicate on the "raw_claims_json" field.

func RawClaimsJSONHasSuffix

func RawClaimsJSONHasSuffix(v string) predicate.UserIdentity

RawClaimsJSONHasSuffix applies the HasSuffix predicate on the "raw_claims_json" field.

func RawClaimsJSONIn

func RawClaimsJSONIn(vs ...string) predicate.UserIdentity

RawClaimsJSONIn applies the In predicate on the "raw_claims_json" field.

func RawClaimsJSONLT

func RawClaimsJSONLT(v string) predicate.UserIdentity

RawClaimsJSONLT applies the LT predicate on the "raw_claims_json" field.

func RawClaimsJSONLTE

func RawClaimsJSONLTE(v string) predicate.UserIdentity

RawClaimsJSONLTE applies the LTE predicate on the "raw_claims_json" field.

func RawClaimsJSONNEQ

func RawClaimsJSONNEQ(v string) predicate.UserIdentity

RawClaimsJSONNEQ applies the NEQ predicate on the "raw_claims_json" field.

func RawClaimsJSONNotIn

func RawClaimsJSONNotIn(vs ...string) predicate.UserIdentity

RawClaimsJSONNotIn applies the NotIn predicate on the "raw_claims_json" field.

func Subject

func Subject(v string) predicate.UserIdentity

Subject applies equality check predicate on the "subject" field. It's identical to SubjectEQ.

func SubjectContains

func SubjectContains(v string) predicate.UserIdentity

SubjectContains applies the Contains predicate on the "subject" field.

func SubjectContainsFold

func SubjectContainsFold(v string) predicate.UserIdentity

SubjectContainsFold applies the ContainsFold predicate on the "subject" field.

func SubjectEQ

func SubjectEQ(v string) predicate.UserIdentity

SubjectEQ applies the EQ predicate on the "subject" field.

func SubjectEqualFold

func SubjectEqualFold(v string) predicate.UserIdentity

SubjectEqualFold applies the EqualFold predicate on the "subject" field.

func SubjectGT

func SubjectGT(v string) predicate.UserIdentity

SubjectGT applies the GT predicate on the "subject" field.

func SubjectGTE

func SubjectGTE(v string) predicate.UserIdentity

SubjectGTE applies the GTE predicate on the "subject" field.

func SubjectHasPrefix

func SubjectHasPrefix(v string) predicate.UserIdentity

SubjectHasPrefix applies the HasPrefix predicate on the "subject" field.

func SubjectHasSuffix

func SubjectHasSuffix(v string) predicate.UserIdentity

SubjectHasSuffix applies the HasSuffix predicate on the "subject" field.

func SubjectIn

func SubjectIn(vs ...string) predicate.UserIdentity

SubjectIn applies the In predicate on the "subject" field.

func SubjectLT

func SubjectLT(v string) predicate.UserIdentity

SubjectLT applies the LT predicate on the "subject" field.

func SubjectLTE

func SubjectLTE(v string) predicate.UserIdentity

SubjectLTE applies the LTE predicate on the "subject" field.

func SubjectNEQ

func SubjectNEQ(v string) predicate.UserIdentity

SubjectNEQ applies the NEQ predicate on the "subject" field.

func SubjectNotIn

func SubjectNotIn(vs ...string) predicate.UserIdentity

SubjectNotIn applies the NotIn predicate on the "subject" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.UserIdentity

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.UserIdentity

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.UserIdentity

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.UserIdentity

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.UserIdentity

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.UserIdentity

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.UserIdentity

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

func UpdatedAtNotIn

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

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

func UserID

func UserID(v uuid.UUID) predicate.UserIdentity

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDEQ

func UserIDEQ(v uuid.UUID) predicate.UserIdentity

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v uuid.UUID) predicate.UserIdentity

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v uuid.UUID) predicate.UserIdentity

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...uuid.UUID) predicate.UserIdentity

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v uuid.UUID) predicate.UserIdentity

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v uuid.UUID) predicate.UserIdentity

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v uuid.UUID) predicate.UserIdentity

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...uuid.UUID) predicate.UserIdentity

UserIDNotIn applies the NotIn predicate on the "user_id" 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 UserIdentity queries.

func ByClaimsVersion

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

ByClaimsVersion orders the results by the claims_version field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByEmailVerified

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

ByEmailVerified orders the results by the email_verified field.

func ByID

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

ByID orders the results by the id field.

func ByIssuer

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

ByIssuer orders the results by the issuer field.

func ByLastSyncedAt

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

ByLastSyncedAt orders the results by the last_synced_at field.

func ByRawClaimsJSON

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

ByRawClaimsJSON orders the results by the raw_claims_json field.

func BySubject

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

BySubject orders the results by the subject field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserID

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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