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

signupcoderedemption

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the signupcoderedemption type in the database.
	Label = "signup_code_redemption"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCodeID holds the string denoting the code_id field in the database.
	FieldCodeID = "code_id"
	// FieldPrincipalID holds the string denoting the principal_id field in the database.
	FieldPrincipalID = "principal_id"
	// FieldEmail holds the string denoting the email field in the database.
	FieldEmail = "email"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// EdgeCode holds the string denoting the code edge name in mutations.
	EdgeCode = "code"
	// Table holds the table name of the signupcoderedemption in the database.
	Table = "sf_signup_code_redemptions"
	// CodeTable is the table that holds the code relation/edge.
	CodeTable = "sf_signup_code_redemptions"
	// CodeInverseTable is the table name for the SignupCode entity.
	// It exists in this package in order to avoid circular dependency with the "signupcode" package.
	CodeInverseTable = "sf_signup_codes"
	// CodeColumn is the table column denoting the code relation/edge.
	CodeColumn = "code_id"
)

Variables

View Source
var (
	// EmailValidator is a validator for the "email" field. It is called by the builders before save.
	EmailValidator 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 signupcoderedemption fields.

Functions

func And

And groups predicates with the AND operator between them.

func CodeID

CodeID applies equality check predicate on the "code_id" field. It's identical to CodeIDEQ.

func CodeIDEQ

CodeIDEQ applies the EQ predicate on the "code_id" field.

func CodeIDIn

func CodeIDIn(vs ...uuid.UUID) predicate.SignupCodeRedemption

CodeIDIn applies the In predicate on the "code_id" field.

func CodeIDNEQ

CodeIDNEQ applies the NEQ predicate on the "code_id" field.

func CodeIDNotIn

func CodeIDNotIn(vs ...uuid.UUID) predicate.SignupCodeRedemption

CodeIDNotIn applies the NotIn predicate on the "code_id" field.

func CreatedAt

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.SignupCodeRedemption

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.SignupCodeRedemption

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.SignupCodeRedemption

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.SignupCodeRedemption

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.SignupCodeRedemption

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.SignupCodeRedemption

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

func CreatedAtNotIn

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

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

func Email

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

func EmailContains

func EmailContains(v string) predicate.SignupCodeRedemption

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

func EmailContainsFold

func EmailContainsFold(v string) predicate.SignupCodeRedemption

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

func EmailEQ

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

func EmailEqualFold

func EmailEqualFold(v string) predicate.SignupCodeRedemption

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

func EmailGT

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

func EmailGTE

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

func EmailHasPrefix

func EmailHasPrefix(v string) predicate.SignupCodeRedemption

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

func EmailHasSuffix

func EmailHasSuffix(v string) predicate.SignupCodeRedemption

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

func EmailIn

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

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

func EmailLT

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

func EmailLTE

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

func EmailNEQ

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

func EmailNotIn

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

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

func HasCode

HasCode applies the HasEdge predicate on the "code" edge.

func HasCodeWith

func HasCodeWith(preds ...predicate.SignupCode) predicate.SignupCodeRedemption

HasCodeWith applies the HasEdge predicate on the "code" 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

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

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 PrincipalID

func PrincipalID(v uuid.UUID) predicate.SignupCodeRedemption

PrincipalID applies equality check predicate on the "principal_id" field. It's identical to PrincipalIDEQ.

func PrincipalIDEQ

func PrincipalIDEQ(v uuid.UUID) predicate.SignupCodeRedemption

PrincipalIDEQ applies the EQ predicate on the "principal_id" field.

func PrincipalIDGT

func PrincipalIDGT(v uuid.UUID) predicate.SignupCodeRedemption

PrincipalIDGT applies the GT predicate on the "principal_id" field.

func PrincipalIDGTE

func PrincipalIDGTE(v uuid.UUID) predicate.SignupCodeRedemption

PrincipalIDGTE applies the GTE predicate on the "principal_id" field.

func PrincipalIDIn

func PrincipalIDIn(vs ...uuid.UUID) predicate.SignupCodeRedemption

PrincipalIDIn applies the In predicate on the "principal_id" field.

func PrincipalIDLT

func PrincipalIDLT(v uuid.UUID) predicate.SignupCodeRedemption

PrincipalIDLT applies the LT predicate on the "principal_id" field.

func PrincipalIDLTE

func PrincipalIDLTE(v uuid.UUID) predicate.SignupCodeRedemption

PrincipalIDLTE applies the LTE predicate on the "principal_id" field.

func PrincipalIDNEQ

func PrincipalIDNEQ(v uuid.UUID) predicate.SignupCodeRedemption

PrincipalIDNEQ applies the NEQ predicate on the "principal_id" field.

func PrincipalIDNotIn

func PrincipalIDNotIn(vs ...uuid.UUID) predicate.SignupCodeRedemption

PrincipalIDNotIn applies the NotIn predicate on the "principal_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 SignupCodeRedemption queries.

func ByCodeField

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

ByCodeField orders the results by code field.

func ByCodeID

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

ByCodeID orders the results by the code_id field.

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 ByID

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

ByID orders the results by the id field.

func ByPrincipalID

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

ByPrincipalID orders the results by the principal_id field.

Jump to

Keyboard shortcuts

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