Help us shape the future of Go! Take the 2026 Go Developer Survey

user

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: AGPL-3.0 Imports: 4 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldPasswordHash holds the string denoting the password_hash field in the database.
	FieldPasswordHash = "password_hash"
	// FieldEmailVerifiedAt holds the string denoting the email_verified_at field in the database.
	FieldEmailVerifiedAt = "email_verified_at"
	// FieldEmailProvenAt holds the string denoting the email_proven_at field in the database.
	FieldEmailProvenAt = "email_proven_at"
	// FieldSessionEpoch holds the string denoting the session_epoch field in the database.
	FieldSessionEpoch = "session_epoch"
	// FieldSecondFactorSecretEncrypted holds the string denoting the second_factor_secret_encrypted field in the database.
	FieldSecondFactorSecretEncrypted = "second_factor_secret_encrypted"
	// FieldSecondFactorConfirmedAt holds the string denoting the second_factor_confirmed_at field in the database.
	FieldSecondFactorConfirmedAt = "second_factor_confirmed_at"
	// FieldSecondFactorLastStep holds the string denoting the second_factor_last_step field in the database.
	FieldSecondFactorLastStep = "second_factor_last_step"
	// FieldSignupSurveyDueAt holds the string denoting the signup_survey_due_at field in the database.
	FieldSignupSurveyDueAt = "signup_survey_due_at"
	// EdgeMemberships holds the string denoting the memberships edge name in mutations.
	EdgeMemberships = "memberships"
	// EdgeSentInvitations holds the string denoting the sent_invitations edge name in mutations.
	EdgeSentInvitations = "sent_invitations"
	// EdgeRecoveryCodes holds the string denoting the recovery_codes edge name in mutations.
	EdgeRecoveryCodes = "recovery_codes"
	// EdgePasskeys holds the string denoting the passkeys edge name in mutations.
	EdgePasskeys = "passkeys"
	// EdgeIdentities holds the string denoting the identities edge name in mutations.
	EdgeIdentities = "identities"
	// EdgeSignupSurveyResponse holds the string denoting the signup_survey_response edge name in mutations.
	EdgeSignupSurveyResponse = "signup_survey_response"
	// Table holds the table name of the user in the database.
	Table = "users"
	// MembershipsTable is the table that holds the memberships relation/edge.
	MembershipsTable = "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 = "memberships"
	// MembershipsColumn is the table column denoting the memberships relation/edge.
	MembershipsColumn = "user_id"
	// SentInvitationsTable is the table that holds the sent_invitations relation/edge.
	SentInvitationsTable = "invitations"
	// SentInvitationsInverseTable is the table name for the Invitation entity.
	// It exists in this package in order to avoid circular dependency with the "invitation" package.
	SentInvitationsInverseTable = "invitations"
	// SentInvitationsColumn is the table column denoting the sent_invitations relation/edge.
	SentInvitationsColumn = "invited_by"
	// RecoveryCodesTable is the table that holds the recovery_codes relation/edge.
	RecoveryCodesTable = "recovery_codes"
	// RecoveryCodesInverseTable is the table name for the RecoveryCode entity.
	// It exists in this package in order to avoid circular dependency with the "recoverycode" package.
	RecoveryCodesInverseTable = "recovery_codes"
	// RecoveryCodesColumn is the table column denoting the recovery_codes relation/edge.
	RecoveryCodesColumn = "user_id"
	// PasskeysTable is the table that holds the passkeys relation/edge.
	PasskeysTable = "passkeys"
	// PasskeysInverseTable is the table name for the Passkey entity.
	// It exists in this package in order to avoid circular dependency with the "passkey" package.
	PasskeysInverseTable = "passkeys"
	// PasskeysColumn is the table column denoting the passkeys relation/edge.
	PasskeysColumn = "user_id"
	// IdentitiesTable is the table that holds the identities relation/edge.
	IdentitiesTable = "user_identities"
	// IdentitiesInverseTable is the table name for the UserIdentity entity.
	// It exists in this package in order to avoid circular dependency with the "useridentity" package.
	IdentitiesInverseTable = "user_identities"
	// IdentitiesColumn is the table column denoting the identities relation/edge.
	IdentitiesColumn = "user_id"
	// SignupSurveyResponseTable is the table that holds the signup_survey_response relation/edge.
	SignupSurveyResponseTable = "signup_survey_responses"
	// SignupSurveyResponseInverseTable is the table name for the SignupSurveyResponse entity.
	// It exists in this package in order to avoid circular dependency with the "signupsurveyresponse" package.
	SignupSurveyResponseInverseTable = "signup_survey_responses"
	// SignupSurveyResponseColumn is the table column denoting the signup_survey_response relation/edge.
	SignupSurveyResponseColumn = "user_id"
)

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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// DefaultSessionEpoch holds the default value on creation for the "session_epoch" field.
	DefaultSessionEpoch int64
	// DefaultSecondFactorLastStep holds the default value on creation for the "second_factor_last_step" field.
	DefaultSecondFactorLastStep int64
)

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 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 EmailProvenAt

func EmailProvenAt(v time.Time) predicate.User

EmailProvenAt applies equality check predicate on the "email_proven_at" field. It's identical to EmailProvenAtEQ.

func EmailProvenAtEQ

func EmailProvenAtEQ(v time.Time) predicate.User

EmailProvenAtEQ applies the EQ predicate on the "email_proven_at" field.

func EmailProvenAtGT

func EmailProvenAtGT(v time.Time) predicate.User

EmailProvenAtGT applies the GT predicate on the "email_proven_at" field.

func EmailProvenAtGTE

func EmailProvenAtGTE(v time.Time) predicate.User

EmailProvenAtGTE applies the GTE predicate on the "email_proven_at" field.

func EmailProvenAtIn

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

EmailProvenAtIn applies the In predicate on the "email_proven_at" field.

func EmailProvenAtIsNil

func EmailProvenAtIsNil() predicate.User

EmailProvenAtIsNil applies the IsNil predicate on the "email_proven_at" field.

func EmailProvenAtLT

func EmailProvenAtLT(v time.Time) predicate.User

EmailProvenAtLT applies the LT predicate on the "email_proven_at" field.

func EmailProvenAtLTE

func EmailProvenAtLTE(v time.Time) predicate.User

EmailProvenAtLTE applies the LTE predicate on the "email_proven_at" field.

func EmailProvenAtNEQ

func EmailProvenAtNEQ(v time.Time) predicate.User

EmailProvenAtNEQ applies the NEQ predicate on the "email_proven_at" field.

func EmailProvenAtNotIn

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

EmailProvenAtNotIn applies the NotIn predicate on the "email_proven_at" field.

func EmailProvenAtNotNil

func EmailProvenAtNotNil() predicate.User

EmailProvenAtNotNil applies the NotNil predicate on the "email_proven_at" field.

func EmailVerifiedAt

func EmailVerifiedAt(v time.Time) predicate.User

EmailVerifiedAt applies equality check predicate on the "email_verified_at" field. It's identical to EmailVerifiedAtEQ.

func EmailVerifiedAtEQ

func EmailVerifiedAtEQ(v time.Time) predicate.User

EmailVerifiedAtEQ applies the EQ predicate on the "email_verified_at" field.

func EmailVerifiedAtGT

func EmailVerifiedAtGT(v time.Time) predicate.User

EmailVerifiedAtGT applies the GT predicate on the "email_verified_at" field.

func EmailVerifiedAtGTE

func EmailVerifiedAtGTE(v time.Time) predicate.User

EmailVerifiedAtGTE applies the GTE predicate on the "email_verified_at" field.

func EmailVerifiedAtIn

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

EmailVerifiedAtIn applies the In predicate on the "email_verified_at" field.

func EmailVerifiedAtIsNil

func EmailVerifiedAtIsNil() predicate.User

EmailVerifiedAtIsNil applies the IsNil predicate on the "email_verified_at" field.

func EmailVerifiedAtLT

func EmailVerifiedAtLT(v time.Time) predicate.User

EmailVerifiedAtLT applies the LT predicate on the "email_verified_at" field.

func EmailVerifiedAtLTE

func EmailVerifiedAtLTE(v time.Time) predicate.User

EmailVerifiedAtLTE applies the LTE predicate on the "email_verified_at" field.

func EmailVerifiedAtNEQ

func EmailVerifiedAtNEQ(v time.Time) predicate.User

EmailVerifiedAtNEQ applies the NEQ predicate on the "email_verified_at" field.

func EmailVerifiedAtNotIn

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

EmailVerifiedAtNotIn applies the NotIn predicate on the "email_verified_at" field.

func EmailVerifiedAtNotNil

func EmailVerifiedAtNotNil() predicate.User

EmailVerifiedAtNotNil applies the NotNil predicate on the "email_verified_at" field.

func HasIdentities

func HasIdentities() predicate.User

HasIdentities applies the HasEdge predicate on the "identities" edge.

func HasIdentitiesWith

func HasIdentitiesWith(preds ...predicate.UserIdentity) predicate.User

HasIdentitiesWith applies the HasEdge predicate on the "identities" 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 HasPasskeys

func HasPasskeys() predicate.User

HasPasskeys applies the HasEdge predicate on the "passkeys" edge.

func HasPasskeysWith

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

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

func HasRecoveryCodes

func HasRecoveryCodes() predicate.User

HasRecoveryCodes applies the HasEdge predicate on the "recovery_codes" edge.

func HasRecoveryCodesWith

func HasRecoveryCodesWith(preds ...predicate.RecoveryCode) predicate.User

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

func HasSentInvitations

func HasSentInvitations() predicate.User

HasSentInvitations applies the HasEdge predicate on the "sent_invitations" edge.

func HasSentInvitationsWith

func HasSentInvitationsWith(preds ...predicate.Invitation) predicate.User

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

func HasSignupSurveyResponse

func HasSignupSurveyResponse() predicate.User

HasSignupSurveyResponse applies the HasEdge predicate on the "signup_survey_response" edge.

func HasSignupSurveyResponseWith

func HasSignupSurveyResponseWith(preds ...predicate.SignupSurveyResponse) predicate.User

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

func ID

func ID(id int64) predicate.User

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.User

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.User

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.User

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.User

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.User

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.User

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID 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 SecondFactorConfirmedAt

func SecondFactorConfirmedAt(v time.Time) predicate.User

SecondFactorConfirmedAt applies equality check predicate on the "second_factor_confirmed_at" field. It's identical to SecondFactorConfirmedAtEQ.

func SecondFactorConfirmedAtEQ

func SecondFactorConfirmedAtEQ(v time.Time) predicate.User

SecondFactorConfirmedAtEQ applies the EQ predicate on the "second_factor_confirmed_at" field.

func SecondFactorConfirmedAtGT

func SecondFactorConfirmedAtGT(v time.Time) predicate.User

SecondFactorConfirmedAtGT applies the GT predicate on the "second_factor_confirmed_at" field.

func SecondFactorConfirmedAtGTE

func SecondFactorConfirmedAtGTE(v time.Time) predicate.User

SecondFactorConfirmedAtGTE applies the GTE predicate on the "second_factor_confirmed_at" field.

func SecondFactorConfirmedAtIn

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

SecondFactorConfirmedAtIn applies the In predicate on the "second_factor_confirmed_at" field.

func SecondFactorConfirmedAtIsNil

func SecondFactorConfirmedAtIsNil() predicate.User

SecondFactorConfirmedAtIsNil applies the IsNil predicate on the "second_factor_confirmed_at" field.

func SecondFactorConfirmedAtLT

func SecondFactorConfirmedAtLT(v time.Time) predicate.User

SecondFactorConfirmedAtLT applies the LT predicate on the "second_factor_confirmed_at" field.

func SecondFactorConfirmedAtLTE

func SecondFactorConfirmedAtLTE(v time.Time) predicate.User

SecondFactorConfirmedAtLTE applies the LTE predicate on the "second_factor_confirmed_at" field.

func SecondFactorConfirmedAtNEQ

func SecondFactorConfirmedAtNEQ(v time.Time) predicate.User

SecondFactorConfirmedAtNEQ applies the NEQ predicate on the "second_factor_confirmed_at" field.

func SecondFactorConfirmedAtNotIn

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

SecondFactorConfirmedAtNotIn applies the NotIn predicate on the "second_factor_confirmed_at" field.

func SecondFactorConfirmedAtNotNil

func SecondFactorConfirmedAtNotNil() predicate.User

SecondFactorConfirmedAtNotNil applies the NotNil predicate on the "second_factor_confirmed_at" field.

func SecondFactorLastStep

func SecondFactorLastStep(v int64) predicate.User

SecondFactorLastStep applies equality check predicate on the "second_factor_last_step" field. It's identical to SecondFactorLastStepEQ.

func SecondFactorLastStepEQ

func SecondFactorLastStepEQ(v int64) predicate.User

SecondFactorLastStepEQ applies the EQ predicate on the "second_factor_last_step" field.

func SecondFactorLastStepGT

func SecondFactorLastStepGT(v int64) predicate.User

SecondFactorLastStepGT applies the GT predicate on the "second_factor_last_step" field.

func SecondFactorLastStepGTE

func SecondFactorLastStepGTE(v int64) predicate.User

SecondFactorLastStepGTE applies the GTE predicate on the "second_factor_last_step" field.

func SecondFactorLastStepIn

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

SecondFactorLastStepIn applies the In predicate on the "second_factor_last_step" field.

func SecondFactorLastStepLT

func SecondFactorLastStepLT(v int64) predicate.User

SecondFactorLastStepLT applies the LT predicate on the "second_factor_last_step" field.

func SecondFactorLastStepLTE

func SecondFactorLastStepLTE(v int64) predicate.User

SecondFactorLastStepLTE applies the LTE predicate on the "second_factor_last_step" field.

func SecondFactorLastStepNEQ

func SecondFactorLastStepNEQ(v int64) predicate.User

SecondFactorLastStepNEQ applies the NEQ predicate on the "second_factor_last_step" field.

func SecondFactorLastStepNotIn

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

SecondFactorLastStepNotIn applies the NotIn predicate on the "second_factor_last_step" field.

func SecondFactorSecretEncrypted

func SecondFactorSecretEncrypted(v string) predicate.User

SecondFactorSecretEncrypted applies equality check predicate on the "second_factor_secret_encrypted" field. It's identical to SecondFactorSecretEncryptedEQ.

func SecondFactorSecretEncryptedContains

func SecondFactorSecretEncryptedContains(v string) predicate.User

SecondFactorSecretEncryptedContains applies the Contains predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedContainsFold

func SecondFactorSecretEncryptedContainsFold(v string) predicate.User

SecondFactorSecretEncryptedContainsFold applies the ContainsFold predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedEQ

func SecondFactorSecretEncryptedEQ(v string) predicate.User

SecondFactorSecretEncryptedEQ applies the EQ predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedEqualFold

func SecondFactorSecretEncryptedEqualFold(v string) predicate.User

SecondFactorSecretEncryptedEqualFold applies the EqualFold predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedGT

func SecondFactorSecretEncryptedGT(v string) predicate.User

SecondFactorSecretEncryptedGT applies the GT predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedGTE

func SecondFactorSecretEncryptedGTE(v string) predicate.User

SecondFactorSecretEncryptedGTE applies the GTE predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedHasPrefix

func SecondFactorSecretEncryptedHasPrefix(v string) predicate.User

SecondFactorSecretEncryptedHasPrefix applies the HasPrefix predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedHasSuffix

func SecondFactorSecretEncryptedHasSuffix(v string) predicate.User

SecondFactorSecretEncryptedHasSuffix applies the HasSuffix predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedIn

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

SecondFactorSecretEncryptedIn applies the In predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedIsNil

func SecondFactorSecretEncryptedIsNil() predicate.User

SecondFactorSecretEncryptedIsNil applies the IsNil predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedLT

func SecondFactorSecretEncryptedLT(v string) predicate.User

SecondFactorSecretEncryptedLT applies the LT predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedLTE

func SecondFactorSecretEncryptedLTE(v string) predicate.User

SecondFactorSecretEncryptedLTE applies the LTE predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedNEQ

func SecondFactorSecretEncryptedNEQ(v string) predicate.User

SecondFactorSecretEncryptedNEQ applies the NEQ predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedNotIn

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

SecondFactorSecretEncryptedNotIn applies the NotIn predicate on the "second_factor_secret_encrypted" field.

func SecondFactorSecretEncryptedNotNil

func SecondFactorSecretEncryptedNotNil() predicate.User

SecondFactorSecretEncryptedNotNil applies the NotNil predicate on the "second_factor_secret_encrypted" field.

func SessionEpoch

func SessionEpoch(v int64) predicate.User

SessionEpoch applies equality check predicate on the "session_epoch" field. It's identical to SessionEpochEQ.

func SessionEpochEQ

func SessionEpochEQ(v int64) predicate.User

SessionEpochEQ applies the EQ predicate on the "session_epoch" field.

func SessionEpochGT

func SessionEpochGT(v int64) predicate.User

SessionEpochGT applies the GT predicate on the "session_epoch" field.

func SessionEpochGTE

func SessionEpochGTE(v int64) predicate.User

SessionEpochGTE applies the GTE predicate on the "session_epoch" field.

func SessionEpochIn

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

SessionEpochIn applies the In predicate on the "session_epoch" field.

func SessionEpochLT

func SessionEpochLT(v int64) predicate.User

SessionEpochLT applies the LT predicate on the "session_epoch" field.

func SessionEpochLTE

func SessionEpochLTE(v int64) predicate.User

SessionEpochLTE applies the LTE predicate on the "session_epoch" field.

func SessionEpochNEQ

func SessionEpochNEQ(v int64) predicate.User

SessionEpochNEQ applies the NEQ predicate on the "session_epoch" field.

func SessionEpochNotIn

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

SessionEpochNotIn applies the NotIn predicate on the "session_epoch" field.

func SignupSurveyDueAt

func SignupSurveyDueAt(v time.Time) predicate.User

SignupSurveyDueAt applies equality check predicate on the "signup_survey_due_at" field. It's identical to SignupSurveyDueAtEQ.

func SignupSurveyDueAtEQ

func SignupSurveyDueAtEQ(v time.Time) predicate.User

SignupSurveyDueAtEQ applies the EQ predicate on the "signup_survey_due_at" field.

func SignupSurveyDueAtGT

func SignupSurveyDueAtGT(v time.Time) predicate.User

SignupSurveyDueAtGT applies the GT predicate on the "signup_survey_due_at" field.

func SignupSurveyDueAtGTE

func SignupSurveyDueAtGTE(v time.Time) predicate.User

SignupSurveyDueAtGTE applies the GTE predicate on the "signup_survey_due_at" field.

func SignupSurveyDueAtIn

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

SignupSurveyDueAtIn applies the In predicate on the "signup_survey_due_at" field.

func SignupSurveyDueAtIsNil

func SignupSurveyDueAtIsNil() predicate.User

SignupSurveyDueAtIsNil applies the IsNil predicate on the "signup_survey_due_at" field.

func SignupSurveyDueAtLT

func SignupSurveyDueAtLT(v time.Time) predicate.User

SignupSurveyDueAtLT applies the LT predicate on the "signup_survey_due_at" field.

func SignupSurveyDueAtLTE

func SignupSurveyDueAtLTE(v time.Time) predicate.User

SignupSurveyDueAtLTE applies the LTE predicate on the "signup_survey_due_at" field.

func SignupSurveyDueAtNEQ

func SignupSurveyDueAtNEQ(v time.Time) predicate.User

SignupSurveyDueAtNEQ applies the NEQ predicate on the "signup_survey_due_at" field.

func SignupSurveyDueAtNotIn

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

SignupSurveyDueAtNotIn applies the NotIn predicate on the "signup_survey_due_at" field.

func SignupSurveyDueAtNotNil

func SignupSurveyDueAtNotNil() predicate.User

SignupSurveyDueAtNotNil applies the NotNil predicate on the "signup_survey_due_at" 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 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 ByEmailProvenAt

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

ByEmailProvenAt orders the results by the email_proven_at field.

func ByEmailVerifiedAt

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

ByEmailVerifiedAt orders the results by the email_verified_at field.

func ByID

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

ByID orders the results by the id field.

func ByIdentities

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

ByIdentities orders the results by identities terms.

func ByIdentitiesCount

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

ByIdentitiesCount orders the results by identities count.

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 ByPasskeys

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

ByPasskeys orders the results by passkeys terms.

func ByPasskeysCount

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

ByPasskeysCount orders the results by passkeys count.

func ByPasswordHash

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

ByPasswordHash orders the results by the password_hash field.

func ByRecoveryCodes

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

ByRecoveryCodes orders the results by recovery_codes terms.

func ByRecoveryCodesCount

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

ByRecoveryCodesCount orders the results by recovery_codes count.

func BySecondFactorConfirmedAt

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

BySecondFactorConfirmedAt orders the results by the second_factor_confirmed_at field.

func BySecondFactorLastStep

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

BySecondFactorLastStep orders the results by the second_factor_last_step field.

func BySecondFactorSecretEncrypted

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

BySecondFactorSecretEncrypted orders the results by the second_factor_secret_encrypted field.

func BySentInvitations

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

BySentInvitations orders the results by sent_invitations terms.

func BySentInvitationsCount

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

BySentInvitationsCount orders the results by sent_invitations count.

func BySessionEpoch

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

BySessionEpoch orders the results by the session_epoch field.

func BySignupSurveyDueAt

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

BySignupSurveyDueAt orders the results by the signup_survey_due_at field.

func BySignupSurveyResponseField

func BySignupSurveyResponseField(field string, opts ...sql.OrderTermOption) OrderOption

BySignupSurveyResponseField orders the results by signup_survey_response field.

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