Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SignupCodeRedemption) predicate.SignupCodeRedemption
- func CodeID(v uuid.UUID) predicate.SignupCodeRedemption
- func CodeIDEQ(v uuid.UUID) predicate.SignupCodeRedemption
- func CodeIDIn(vs ...uuid.UUID) predicate.SignupCodeRedemption
- func CodeIDNEQ(v uuid.UUID) predicate.SignupCodeRedemption
- func CodeIDNotIn(vs ...uuid.UUID) predicate.SignupCodeRedemption
- func CreatedAt(v time.Time) predicate.SignupCodeRedemption
- func CreatedAtEQ(v time.Time) predicate.SignupCodeRedemption
- func CreatedAtGT(v time.Time) predicate.SignupCodeRedemption
- func CreatedAtGTE(v time.Time) predicate.SignupCodeRedemption
- func CreatedAtIn(vs ...time.Time) predicate.SignupCodeRedemption
- func CreatedAtLT(v time.Time) predicate.SignupCodeRedemption
- func CreatedAtLTE(v time.Time) predicate.SignupCodeRedemption
- func CreatedAtNEQ(v time.Time) predicate.SignupCodeRedemption
- func CreatedAtNotIn(vs ...time.Time) predicate.SignupCodeRedemption
- func Email(v string) predicate.SignupCodeRedemption
- func EmailContains(v string) predicate.SignupCodeRedemption
- func EmailContainsFold(v string) predicate.SignupCodeRedemption
- func EmailEQ(v string) predicate.SignupCodeRedemption
- func EmailEqualFold(v string) predicate.SignupCodeRedemption
- func EmailGT(v string) predicate.SignupCodeRedemption
- func EmailGTE(v string) predicate.SignupCodeRedemption
- func EmailHasPrefix(v string) predicate.SignupCodeRedemption
- func EmailHasSuffix(v string) predicate.SignupCodeRedemption
- func EmailIn(vs ...string) predicate.SignupCodeRedemption
- func EmailLT(v string) predicate.SignupCodeRedemption
- func EmailLTE(v string) predicate.SignupCodeRedemption
- func EmailNEQ(v string) predicate.SignupCodeRedemption
- func EmailNotIn(vs ...string) predicate.SignupCodeRedemption
- func HasCode() predicate.SignupCodeRedemption
- func HasCodeWith(preds ...predicate.SignupCode) predicate.SignupCodeRedemption
- func ID(id uuid.UUID) predicate.SignupCodeRedemption
- func IDEQ(id uuid.UUID) predicate.SignupCodeRedemption
- func IDGT(id uuid.UUID) predicate.SignupCodeRedemption
- func IDGTE(id uuid.UUID) predicate.SignupCodeRedemption
- func IDIn(ids ...uuid.UUID) predicate.SignupCodeRedemption
- func IDLT(id uuid.UUID) predicate.SignupCodeRedemption
- func IDLTE(id uuid.UUID) predicate.SignupCodeRedemption
- func IDNEQ(id uuid.UUID) predicate.SignupCodeRedemption
- func IDNotIn(ids ...uuid.UUID) predicate.SignupCodeRedemption
- func Not(p predicate.SignupCodeRedemption) predicate.SignupCodeRedemption
- func Or(predicates ...predicate.SignupCodeRedemption) predicate.SignupCodeRedemption
- func PrincipalID(v uuid.UUID) predicate.SignupCodeRedemption
- func PrincipalIDEQ(v uuid.UUID) predicate.SignupCodeRedemption
- func PrincipalIDGT(v uuid.UUID) predicate.SignupCodeRedemption
- func PrincipalIDGTE(v uuid.UUID) predicate.SignupCodeRedemption
- func PrincipalIDIn(vs ...uuid.UUID) predicate.SignupCodeRedemption
- func PrincipalIDLT(v uuid.UUID) predicate.SignupCodeRedemption
- func PrincipalIDLTE(v uuid.UUID) predicate.SignupCodeRedemption
- func PrincipalIDNEQ(v uuid.UUID) predicate.SignupCodeRedemption
- func PrincipalIDNotIn(vs ...uuid.UUID) predicate.SignupCodeRedemption
- func ValidColumn(column string) bool
- type OrderOption
- func ByCodeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByCodeID(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEmail(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPrincipalID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCodeID, FieldPrincipalID, FieldEmail, FieldCreatedAt, }
Columns holds all SQL columns for signupcoderedemption fields.
Functions ¶
func And ¶
func And(predicates ...predicate.SignupCodeRedemption) predicate.SignupCodeRedemption
And groups predicates with the AND operator between them.
func CodeID ¶
func CodeID(v uuid.UUID) predicate.SignupCodeRedemption
CodeID applies equality check predicate on the "code_id" field. It's identical to CodeIDEQ.
func CodeIDEQ ¶
func CodeIDEQ(v uuid.UUID) predicate.SignupCodeRedemption
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 ¶
func CodeIDNEQ(v uuid.UUID) predicate.SignupCodeRedemption
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 ¶
func CreatedAt(v time.Time) predicate.SignupCodeRedemption
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 ¶
func Email(v string) predicate.SignupCodeRedemption
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 ¶
func EmailEQ(v string) predicate.SignupCodeRedemption
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 ¶
func EmailGT(v string) predicate.SignupCodeRedemption
EmailGT applies the GT predicate on the "email" field.
func EmailGTE ¶
func EmailGTE(v string) predicate.SignupCodeRedemption
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 ¶
func EmailLT(v string) predicate.SignupCodeRedemption
EmailLT applies the LT predicate on the "email" field.
func EmailLTE ¶
func EmailLTE(v string) predicate.SignupCodeRedemption
EmailLTE applies the LTE predicate on the "email" field.
func EmailNEQ ¶
func EmailNEQ(v string) predicate.SignupCodeRedemption
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 ¶
func HasCode() predicate.SignupCodeRedemption
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 ¶
func ID(id uuid.UUID) predicate.SignupCodeRedemption
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.SignupCodeRedemption
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.SignupCodeRedemption
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.SignupCodeRedemption
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.SignupCodeRedemption
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.SignupCodeRedemption
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.SignupCodeRedemption
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.SignupCodeRedemption
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 ¶
func Not(p predicate.SignupCodeRedemption) predicate.SignupCodeRedemption
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.SignupCodeRedemption) predicate.SignupCodeRedemption
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.