magiclinktoken

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the magiclinktoken type in the database.
	Label = "magic_link_token"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldTokenHash holds the string denoting the token_hash field in the database.
	FieldTokenHash = "token_hash"
	// FieldExpiresAt holds the string denoting the expires_at field in the database.
	FieldExpiresAt = "expires_at"
	// FieldConsumedAt holds the string denoting the consumed_at field in the database.
	FieldConsumedAt = "consumed_at"
	// FieldCreatedIP holds the string denoting the created_ip field in the database.
	FieldCreatedIP = "created_ip"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// Table holds the table name of the magiclinktoken in the database.
	Table = "magic_link_tokens"
)

Variables

View Source
var (
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator func(string) error
	// TokenHashValidator is a validator for the "token_hash" field. It is called by the builders before save.
	TokenHashValidator func(string) error
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for magiclinktoken fields.

Functions

func And

And groups predicates with the AND operator between them.

func ConsumedAt

func ConsumedAt(v time.Time) predicate.MagicLinkToken

ConsumedAt applies equality check predicate on the "consumed_at" field. It's identical to ConsumedAtEQ.

func ConsumedAtEQ

func ConsumedAtEQ(v time.Time) predicate.MagicLinkToken

ConsumedAtEQ applies the EQ predicate on the "consumed_at" field.

func ConsumedAtGT

func ConsumedAtGT(v time.Time) predicate.MagicLinkToken

ConsumedAtGT applies the GT predicate on the "consumed_at" field.

func ConsumedAtGTE

func ConsumedAtGTE(v time.Time) predicate.MagicLinkToken

ConsumedAtGTE applies the GTE predicate on the "consumed_at" field.

func ConsumedAtIn

func ConsumedAtIn(vs ...time.Time) predicate.MagicLinkToken

ConsumedAtIn applies the In predicate on the "consumed_at" field.

func ConsumedAtIsNil

func ConsumedAtIsNil() predicate.MagicLinkToken

ConsumedAtIsNil applies the IsNil predicate on the "consumed_at" field.

func ConsumedAtLT

func ConsumedAtLT(v time.Time) predicate.MagicLinkToken

ConsumedAtLT applies the LT predicate on the "consumed_at" field.

func ConsumedAtLTE

func ConsumedAtLTE(v time.Time) predicate.MagicLinkToken

ConsumedAtLTE applies the LTE predicate on the "consumed_at" field.

func ConsumedAtNEQ

func ConsumedAtNEQ(v time.Time) predicate.MagicLinkToken

ConsumedAtNEQ applies the NEQ predicate on the "consumed_at" field.

func ConsumedAtNotIn

func ConsumedAtNotIn(vs ...time.Time) predicate.MagicLinkToken

ConsumedAtNotIn applies the NotIn predicate on the "consumed_at" field.

func ConsumedAtNotNil

func ConsumedAtNotNil() predicate.MagicLinkToken

ConsumedAtNotNil applies the NotNil predicate on the "consumed_at" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.MagicLinkToken

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.MagicLinkToken

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.MagicLinkToken

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.MagicLinkToken

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.MagicLinkToken

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.MagicLinkToken

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.MagicLinkToken

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

func CreatedAtNotIn

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

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

func CreatedIP

func CreatedIP(v string) predicate.MagicLinkToken

CreatedIP applies equality check predicate on the "created_ip" field. It's identical to CreatedIPEQ.

func CreatedIPContains

func CreatedIPContains(v string) predicate.MagicLinkToken

CreatedIPContains applies the Contains predicate on the "created_ip" field.

func CreatedIPContainsFold

func CreatedIPContainsFold(v string) predicate.MagicLinkToken

CreatedIPContainsFold applies the ContainsFold predicate on the "created_ip" field.

func CreatedIPEQ

func CreatedIPEQ(v string) predicate.MagicLinkToken

CreatedIPEQ applies the EQ predicate on the "created_ip" field.

func CreatedIPEqualFold

func CreatedIPEqualFold(v string) predicate.MagicLinkToken

CreatedIPEqualFold applies the EqualFold predicate on the "created_ip" field.

func CreatedIPGT

func CreatedIPGT(v string) predicate.MagicLinkToken

CreatedIPGT applies the GT predicate on the "created_ip" field.

func CreatedIPGTE

func CreatedIPGTE(v string) predicate.MagicLinkToken

CreatedIPGTE applies the GTE predicate on the "created_ip" field.

func CreatedIPHasPrefix

func CreatedIPHasPrefix(v string) predicate.MagicLinkToken

CreatedIPHasPrefix applies the HasPrefix predicate on the "created_ip" field.

func CreatedIPHasSuffix

func CreatedIPHasSuffix(v string) predicate.MagicLinkToken

CreatedIPHasSuffix applies the HasSuffix predicate on the "created_ip" field.

func CreatedIPIn

func CreatedIPIn(vs ...string) predicate.MagicLinkToken

CreatedIPIn applies the In predicate on the "created_ip" field.

func CreatedIPIsNil

func CreatedIPIsNil() predicate.MagicLinkToken

CreatedIPIsNil applies the IsNil predicate on the "created_ip" field.

func CreatedIPLT

func CreatedIPLT(v string) predicate.MagicLinkToken

CreatedIPLT applies the LT predicate on the "created_ip" field.

func CreatedIPLTE

func CreatedIPLTE(v string) predicate.MagicLinkToken

CreatedIPLTE applies the LTE predicate on the "created_ip" field.

func CreatedIPNEQ

func CreatedIPNEQ(v string) predicate.MagicLinkToken

CreatedIPNEQ applies the NEQ predicate on the "created_ip" field.

func CreatedIPNotIn

func CreatedIPNotIn(vs ...string) predicate.MagicLinkToken

CreatedIPNotIn applies the NotIn predicate on the "created_ip" field.

func CreatedIPNotNil

func CreatedIPNotNil() predicate.MagicLinkToken

CreatedIPNotNil applies the NotNil predicate on the "created_ip" field.

func Email

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

func EmailContains

func EmailContains(v string) predicate.MagicLinkToken

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.MagicLinkToken

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

func EmailEQ

func EmailEQ(v string) predicate.MagicLinkToken

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.MagicLinkToken

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

func EmailGT

func EmailGT(v string) predicate.MagicLinkToken

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

func EmailGTE

func EmailGTE(v string) predicate.MagicLinkToken

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.MagicLinkToken

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.MagicLinkToken

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

func EmailIn

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

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

func EmailLT

func EmailLT(v string) predicate.MagicLinkToken

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

func EmailLTE

func EmailLTE(v string) predicate.MagicLinkToken

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

func EmailNEQ

func EmailNEQ(v string) predicate.MagicLinkToken

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

func EmailNotIn

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

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

func ExpiresAt

func ExpiresAt(v time.Time) predicate.MagicLinkToken

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

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.MagicLinkToken

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

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.MagicLinkToken

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

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.MagicLinkToken

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

func ExpiresAtIn

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

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

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.MagicLinkToken

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

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.MagicLinkToken

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

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.MagicLinkToken

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

func ExpiresAtNotIn

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

ExpiresAtNotIn applies the NotIn predicate on the "expires_at" 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

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

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.MagicLinkToken

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 TokenHash

func TokenHash(v string) predicate.MagicLinkToken

TokenHash applies equality check predicate on the "token_hash" field. It's identical to TokenHashEQ.

func TokenHashContains

func TokenHashContains(v string) predicate.MagicLinkToken

TokenHashContains applies the Contains predicate on the "token_hash" field.

func TokenHashContainsFold

func TokenHashContainsFold(v string) predicate.MagicLinkToken

TokenHashContainsFold applies the ContainsFold predicate on the "token_hash" field.

func TokenHashEQ

func TokenHashEQ(v string) predicate.MagicLinkToken

TokenHashEQ applies the EQ predicate on the "token_hash" field.

func TokenHashEqualFold

func TokenHashEqualFold(v string) predicate.MagicLinkToken

TokenHashEqualFold applies the EqualFold predicate on the "token_hash" field.

func TokenHashGT

func TokenHashGT(v string) predicate.MagicLinkToken

TokenHashGT applies the GT predicate on the "token_hash" field.

func TokenHashGTE

func TokenHashGTE(v string) predicate.MagicLinkToken

TokenHashGTE applies the GTE predicate on the "token_hash" field.

func TokenHashHasPrefix

func TokenHashHasPrefix(v string) predicate.MagicLinkToken

TokenHashHasPrefix applies the HasPrefix predicate on the "token_hash" field.

func TokenHashHasSuffix

func TokenHashHasSuffix(v string) predicate.MagicLinkToken

TokenHashHasSuffix applies the HasSuffix predicate on the "token_hash" field.

func TokenHashIn

func TokenHashIn(vs ...string) predicate.MagicLinkToken

TokenHashIn applies the In predicate on the "token_hash" field.

func TokenHashLT

func TokenHashLT(v string) predicate.MagicLinkToken

TokenHashLT applies the LT predicate on the "token_hash" field.

func TokenHashLTE

func TokenHashLTE(v string) predicate.MagicLinkToken

TokenHashLTE applies the LTE predicate on the "token_hash" field.

func TokenHashNEQ

func TokenHashNEQ(v string) predicate.MagicLinkToken

TokenHashNEQ applies the NEQ predicate on the "token_hash" field.

func TokenHashNotIn

func TokenHashNotIn(vs ...string) predicate.MagicLinkToken

TokenHashNotIn applies the NotIn predicate on the "token_hash" 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 MagicLinkToken queries.

func ByConsumedAt

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

ByConsumedAt orders the results by the consumed_at field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByCreatedIP

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

ByCreatedIP orders the results by the created_ip field.

func ByEmail

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

ByEmail orders the results by the email field.

func ByExpiresAt

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

ByExpiresAt orders the results by the expires_at field.

func ByID

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

ByID orders the results by the id field.

func ByTokenHash

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

ByTokenHash orders the results by the token_hash field.

Jump to

Keyboard shortcuts

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