recoverycode

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the recoverycode type in the database.
	Label = "recovery_code"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// Table holds the table name of the recoverycode in the database.
	Table = "recovery_codes"
	// AccountTable is the table that holds the account relation/edge.
	AccountTable = "recovery_codes"
	// AccountInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "entaccount" package.
	AccountInverseTable = "accounts"
	// AccountColumn is the table column denoting the account relation/edge.
	AccountColumn = "account"
)

Variables

Columns holds all SQL columns for recoverycode fields.

View Source
var ForeignKeys = []string{
	"account",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "recovery_codes" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.RecoveryCode) predicate.RecoveryCode

And groups predicates with the AND operator between them.

func Code

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.RecoveryCode

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.RecoveryCode

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

func CodeEQ(v string) predicate.RecoveryCode

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.RecoveryCode

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

func CodeGT(v string) predicate.RecoveryCode

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

func CodeGTE(v string) predicate.RecoveryCode

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.RecoveryCode

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.RecoveryCode

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.RecoveryCode

CodeIn applies the In predicate on the "code" field.

func CodeLT

func CodeLT(v string) predicate.RecoveryCode

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

func CodeLTE(v string) predicate.RecoveryCode

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

func CodeNEQ(v string) predicate.RecoveryCode

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.RecoveryCode

CodeNotIn applies the NotIn predicate on the "code" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.RecoveryCode

ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.RecoveryCode

ExpiresAtEQ applies the EQ predicate on the "expires_at" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.RecoveryCode

ExpiresAtGT applies the GT predicate on the "expires_at" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.RecoveryCode

ExpiresAtGTE applies the GTE predicate on the "expires_at" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.RecoveryCode

ExpiresAtIn applies the In predicate on the "expires_at" field.

func ExpiresAtIsNil

func ExpiresAtIsNil() predicate.RecoveryCode

ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.RecoveryCode

ExpiresAtLT applies the LT predicate on the "expires_at" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.RecoveryCode

ExpiresAtLTE applies the LTE predicate on the "expires_at" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.RecoveryCode

ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.RecoveryCode

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.

func ExpiresAtNotNil

func ExpiresAtNotNil() predicate.RecoveryCode

ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.

func HasAccount

func HasAccount() predicate.RecoveryCode

HasAccount applies the HasEdge predicate on the "account" edge.

func HasAccountWith

func HasAccountWith(preds ...predicate.Account) predicate.RecoveryCode

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

func ID

func ID(id int) predicate.RecoveryCode

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.RecoveryCode

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.RecoveryCode

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.RecoveryCode

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.RecoveryCode

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.RecoveryCode

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.RecoveryCode

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.RecoveryCode) predicate.RecoveryCode

Or groups predicates with the OR operator between them.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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