userrecoverycode

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the userrecoverycode type in the database.
	Label = "user_recovery_code"
	// 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"
	// FieldCodeHash holds the string denoting the code_hash field in the database.
	FieldCodeHash = "code_hash"
	// FieldUsedAt holds the string denoting the used_at field in the database.
	FieldUsedAt = "used_at"
	// EdgeUser holds the string denoting the user edge name in mutations.
	EdgeUser = "user"
	// Table holds the table name of the userrecoverycode in the database.
	Table = "user_recovery_codes"
	// UserTable is the table that holds the user relation/edge.
	UserTable = "user_recovery_codes"
	// UserInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	UserInverseTable = "users"
	// UserColumn is the table column denoting the user relation/edge.
	UserColumn = "user_id"
)

Variables

Columns holds all SQL columns for userrecoverycode fields.

Functions

func And

And groups predicates with the AND operator between them.

func CodeHash

func CodeHash(v string) predicate.UserRecoveryCode

CodeHash applies equality check predicate on the "code_hash" field. It's identical to CodeHashEQ.

func CodeHashContains

func CodeHashContains(v string) predicate.UserRecoveryCode

CodeHashContains applies the Contains predicate on the "code_hash" field.

func CodeHashContainsFold

func CodeHashContainsFold(v string) predicate.UserRecoveryCode

CodeHashContainsFold applies the ContainsFold predicate on the "code_hash" field.

func CodeHashEQ

func CodeHashEQ(v string) predicate.UserRecoveryCode

CodeHashEQ applies the EQ predicate on the "code_hash" field.

func CodeHashEqualFold

func CodeHashEqualFold(v string) predicate.UserRecoveryCode

CodeHashEqualFold applies the EqualFold predicate on the "code_hash" field.

func CodeHashGT

func CodeHashGT(v string) predicate.UserRecoveryCode

CodeHashGT applies the GT predicate on the "code_hash" field.

func CodeHashGTE

func CodeHashGTE(v string) predicate.UserRecoveryCode

CodeHashGTE applies the GTE predicate on the "code_hash" field.

func CodeHashHasPrefix

func CodeHashHasPrefix(v string) predicate.UserRecoveryCode

CodeHashHasPrefix applies the HasPrefix predicate on the "code_hash" field.

func CodeHashHasSuffix

func CodeHashHasSuffix(v string) predicate.UserRecoveryCode

CodeHashHasSuffix applies the HasSuffix predicate on the "code_hash" field.

func CodeHashIn

func CodeHashIn(vs ...string) predicate.UserRecoveryCode

CodeHashIn applies the In predicate on the "code_hash" field.

func CodeHashLT

func CodeHashLT(v string) predicate.UserRecoveryCode

CodeHashLT applies the LT predicate on the "code_hash" field.

func CodeHashLTE

func CodeHashLTE(v string) predicate.UserRecoveryCode

CodeHashLTE applies the LTE predicate on the "code_hash" field.

func CodeHashNEQ

func CodeHashNEQ(v string) predicate.UserRecoveryCode

CodeHashNEQ applies the NEQ predicate on the "code_hash" field.

func CodeHashNotIn

func CodeHashNotIn(vs ...string) predicate.UserRecoveryCode

CodeHashNotIn applies the NotIn predicate on the "code_hash" field.

func HasUser

func HasUser() predicate.UserRecoveryCode

HasUser applies the HasEdge predicate on the "user" edge.

func HasUserWith

func HasUserWith(preds ...predicate.User) predicate.UserRecoveryCode

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

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 int) predicate.UserRecoveryCode

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

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 int) predicate.UserRecoveryCode

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.UserRecoveryCode

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func UsedAt

UsedAt applies equality check predicate on the "used_at" field. It's identical to UsedAtEQ.

func UsedAtEQ

func UsedAtEQ(v time.Time) predicate.UserRecoveryCode

UsedAtEQ applies the EQ predicate on the "used_at" field.

func UsedAtGT

func UsedAtGT(v time.Time) predicate.UserRecoveryCode

UsedAtGT applies the GT predicate on the "used_at" field.

func UsedAtGTE

func UsedAtGTE(v time.Time) predicate.UserRecoveryCode

UsedAtGTE applies the GTE predicate on the "used_at" field.

func UsedAtIn

func UsedAtIn(vs ...time.Time) predicate.UserRecoveryCode

UsedAtIn applies the In predicate on the "used_at" field.

func UsedAtIsNil

func UsedAtIsNil() predicate.UserRecoveryCode

UsedAtIsNil applies the IsNil predicate on the "used_at" field.

func UsedAtLT

func UsedAtLT(v time.Time) predicate.UserRecoveryCode

UsedAtLT applies the LT predicate on the "used_at" field.

func UsedAtLTE

func UsedAtLTE(v time.Time) predicate.UserRecoveryCode

UsedAtLTE applies the LTE predicate on the "used_at" field.

func UsedAtNEQ

func UsedAtNEQ(v time.Time) predicate.UserRecoveryCode

UsedAtNEQ applies the NEQ predicate on the "used_at" field.

func UsedAtNotIn

func UsedAtNotIn(vs ...time.Time) predicate.UserRecoveryCode

UsedAtNotIn applies the NotIn predicate on the "used_at" field.

func UsedAtNotNil

func UsedAtNotNil() predicate.UserRecoveryCode

UsedAtNotNil applies the NotNil predicate on the "used_at" field.

func UserID

func UserID(v int) predicate.UserRecoveryCode

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

func UserIDEQ

func UserIDEQ(v int) predicate.UserRecoveryCode

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

func UserIDIn

func UserIDIn(vs ...int) predicate.UserRecoveryCode

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

func UserIDNEQ

func UserIDNEQ(v int) predicate.UserRecoveryCode

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

func UserIDNotIn

func UserIDNotIn(vs ...int) predicate.UserRecoveryCode

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 UserRecoveryCode queries.

func ByCodeHash

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

ByCodeHash orders the results by the code_hash field.

func ByID

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

ByID orders the results by the id field.

func ByUsedAt

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

ByUsedAt orders the results by the used_at field.

func ByUserField

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

ByUserField orders the results by user 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