verificationtoken

package
v0.0.0-...-6269356 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the verificationtoken type in the database.
	Label = "verification_token"
	// 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"
	// FieldToken holds the string denoting the token field in the database.
	FieldToken = "token"
	// FieldScope holds the string denoting the scope field in the database.
	FieldScope = "scope"
	// FieldExpiryAt holds the string denoting the expiry_at field in the database.
	FieldExpiryAt = "expiry_at"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// Table holds the table name of the verificationtoken in the database.
	Table = "verification_tokens"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "verification_tokens"
	// OwnerInverseTable is the table name for the User entity.
	// It exists in this package in order to avoid circular dependency with the "user" package.
	OwnerInverseTable = "users"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "user_verification_token"
)

Variables

View Source
var (
	Hooks [1]ent.Hook
	// 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
	// DefaultExpiryAt holds the default value on creation for the "expiry_at" field.
	DefaultExpiryAt time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/paycrest/aggregator/ent/runtime"

Columns holds all SQL columns for verificationtoken fields.

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

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

Functions

func And

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.VerificationToken

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.VerificationToken

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.VerificationToken

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.VerificationToken

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.VerificationToken

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.VerificationToken

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.VerificationToken

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

func CreatedAtNotIn

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

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

func ExpiryAt

ExpiryAt applies equality check predicate on the "expiry_at" field. It's identical to ExpiryAtEQ.

func ExpiryAtEQ

func ExpiryAtEQ(v time.Time) predicate.VerificationToken

ExpiryAtEQ applies the EQ predicate on the "expiry_at" field.

func ExpiryAtGT

func ExpiryAtGT(v time.Time) predicate.VerificationToken

ExpiryAtGT applies the GT predicate on the "expiry_at" field.

func ExpiryAtGTE

func ExpiryAtGTE(v time.Time) predicate.VerificationToken

ExpiryAtGTE applies the GTE predicate on the "expiry_at" field.

func ExpiryAtIn

func ExpiryAtIn(vs ...time.Time) predicate.VerificationToken

ExpiryAtIn applies the In predicate on the "expiry_at" field.

func ExpiryAtLT

func ExpiryAtLT(v time.Time) predicate.VerificationToken

ExpiryAtLT applies the LT predicate on the "expiry_at" field.

func ExpiryAtLTE

func ExpiryAtLTE(v time.Time) predicate.VerificationToken

ExpiryAtLTE applies the LTE predicate on the "expiry_at" field.

func ExpiryAtNEQ

func ExpiryAtNEQ(v time.Time) predicate.VerificationToken

ExpiryAtNEQ applies the NEQ predicate on the "expiry_at" field.

func ExpiryAtNotIn

func ExpiryAtNotIn(vs ...time.Time) predicate.VerificationToken

ExpiryAtNotIn applies the NotIn predicate on the "expiry_at" field.

func HasOwner

func HasOwner() predicate.VerificationToken

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.User) predicate.VerificationToken

HasOwnerWith applies the HasEdge predicate on the "owner" 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

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

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 ScopeEQ

ScopeEQ applies the EQ predicate on the "scope" field.

func ScopeIn

func ScopeIn(vs ...Scope) predicate.VerificationToken

ScopeIn applies the In predicate on the "scope" field.

func ScopeNEQ

func ScopeNEQ(v Scope) predicate.VerificationToken

ScopeNEQ applies the NEQ predicate on the "scope" field.

func ScopeNotIn

func ScopeNotIn(vs ...Scope) predicate.VerificationToken

ScopeNotIn applies the NotIn predicate on the "scope" field.

func ScopeValidator

func ScopeValidator(s Scope) error

ScopeValidator is a validator for the "scope" field enum values. It is called by the builders before save.

func Token

Token applies equality check predicate on the "token" field. It's identical to TokenEQ.

func TokenContains

func TokenContains(v string) predicate.VerificationToken

TokenContains applies the Contains predicate on the "token" field.

func TokenContainsFold

func TokenContainsFold(v string) predicate.VerificationToken

TokenContainsFold applies the ContainsFold predicate on the "token" field.

func TokenEQ

TokenEQ applies the EQ predicate on the "token" field.

func TokenEqualFold

func TokenEqualFold(v string) predicate.VerificationToken

TokenEqualFold applies the EqualFold predicate on the "token" field.

func TokenGT

TokenGT applies the GT predicate on the "token" field.

func TokenGTE

TokenGTE applies the GTE predicate on the "token" field.

func TokenHasPrefix

func TokenHasPrefix(v string) predicate.VerificationToken

TokenHasPrefix applies the HasPrefix predicate on the "token" field.

func TokenHasSuffix

func TokenHasSuffix(v string) predicate.VerificationToken

TokenHasSuffix applies the HasSuffix predicate on the "token" field.

func TokenIn

func TokenIn(vs ...string) predicate.VerificationToken

TokenIn applies the In predicate on the "token" field.

func TokenLT

TokenLT applies the LT predicate on the "token" field.

func TokenLTE

TokenLTE applies the LTE predicate on the "token" field.

func TokenNEQ

TokenNEQ applies the NEQ predicate on the "token" field.

func TokenNotIn

func TokenNotIn(vs ...string) predicate.VerificationToken

TokenNotIn applies the NotIn predicate on the "token" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.VerificationToken

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.VerificationToken

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.VerificationToken

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.VerificationToken

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.VerificationToken

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.VerificationToken

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.VerificationToken

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

func UpdatedAtNotIn

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

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

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByExpiryAt

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

ByExpiryAt orders the results by the expiry_at field.

func ByID

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

ByID orders the results by the id field.

func ByOwnerField

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

ByOwnerField orders the results by owner field.

func ByScope

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

ByScope orders the results by the scope field.

func ByToken

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

ByToken orders the results by the token field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

type Scope

type Scope string

Scope defines the type for the "scope" enum field.

const (
	ScopeEmailVerification Scope = "emailVerification"
	ScopeResetPassword     Scope = "resetPassword"
)

Scope values.

func (Scope) String

func (s Scope) String() string

Jump to

Keyboard shortcuts

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