Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.SignupCode) predicate.SignupCode
- func CodeHash(v string) predicate.SignupCode
- func CodeHashContains(v string) predicate.SignupCode
- func CodeHashContainsFold(v string) predicate.SignupCode
- func CodeHashEQ(v string) predicate.SignupCode
- func CodeHashEqualFold(v string) predicate.SignupCode
- func CodeHashGT(v string) predicate.SignupCode
- func CodeHashGTE(v string) predicate.SignupCode
- func CodeHashHasPrefix(v string) predicate.SignupCode
- func CodeHashHasSuffix(v string) predicate.SignupCode
- func CodeHashIn(vs ...string) predicate.SignupCode
- func CodeHashLT(v string) predicate.SignupCode
- func CodeHashLTE(v string) predicate.SignupCode
- func CodeHashNEQ(v string) predicate.SignupCode
- func CodeHashNotIn(vs ...string) predicate.SignupCode
- func CodeHint(v string) predicate.SignupCode
- func CodeHintContains(v string) predicate.SignupCode
- func CodeHintContainsFold(v string) predicate.SignupCode
- func CodeHintEQ(v string) predicate.SignupCode
- func CodeHintEqualFold(v string) predicate.SignupCode
- func CodeHintGT(v string) predicate.SignupCode
- func CodeHintGTE(v string) predicate.SignupCode
- func CodeHintHasPrefix(v string) predicate.SignupCode
- func CodeHintHasSuffix(v string) predicate.SignupCode
- func CodeHintIn(vs ...string) predicate.SignupCode
- func CodeHintLT(v string) predicate.SignupCode
- func CodeHintLTE(v string) predicate.SignupCode
- func CodeHintNEQ(v string) predicate.SignupCode
- func CodeHintNotIn(vs ...string) predicate.SignupCode
- func CreatedAt(v time.Time) predicate.SignupCode
- func CreatedAtEQ(v time.Time) predicate.SignupCode
- func CreatedAtGT(v time.Time) predicate.SignupCode
- func CreatedAtGTE(v time.Time) predicate.SignupCode
- func CreatedAtIn(vs ...time.Time) predicate.SignupCode
- func CreatedAtLT(v time.Time) predicate.SignupCode
- func CreatedAtLTE(v time.Time) predicate.SignupCode
- func CreatedAtNEQ(v time.Time) predicate.SignupCode
- func CreatedAtNotIn(vs ...time.Time) predicate.SignupCode
- func CreatedByLabel(v string) predicate.SignupCode
- func CreatedByLabelContains(v string) predicate.SignupCode
- func CreatedByLabelContainsFold(v string) predicate.SignupCode
- func CreatedByLabelEQ(v string) predicate.SignupCode
- func CreatedByLabelEqualFold(v string) predicate.SignupCode
- func CreatedByLabelGT(v string) predicate.SignupCode
- func CreatedByLabelGTE(v string) predicate.SignupCode
- func CreatedByLabelHasPrefix(v string) predicate.SignupCode
- func CreatedByLabelHasSuffix(v string) predicate.SignupCode
- func CreatedByLabelIn(vs ...string) predicate.SignupCode
- func CreatedByLabelIsNil() predicate.SignupCode
- func CreatedByLabelLT(v string) predicate.SignupCode
- func CreatedByLabelLTE(v string) predicate.SignupCode
- func CreatedByLabelNEQ(v string) predicate.SignupCode
- func CreatedByLabelNotIn(vs ...string) predicate.SignupCode
- func CreatedByLabelNotNil() predicate.SignupCode
- func CreatedByPrincipalID(v uuid.UUID) predicate.SignupCode
- func CreatedByPrincipalIDEQ(v uuid.UUID) predicate.SignupCode
- func CreatedByPrincipalIDGT(v uuid.UUID) predicate.SignupCode
- func CreatedByPrincipalIDGTE(v uuid.UUID) predicate.SignupCode
- func CreatedByPrincipalIDIn(vs ...uuid.UUID) predicate.SignupCode
- func CreatedByPrincipalIDIsNil() predicate.SignupCode
- func CreatedByPrincipalIDLT(v uuid.UUID) predicate.SignupCode
- func CreatedByPrincipalIDLTE(v uuid.UUID) predicate.SignupCode
- func CreatedByPrincipalIDNEQ(v uuid.UUID) predicate.SignupCode
- func CreatedByPrincipalIDNotIn(vs ...uuid.UUID) predicate.SignupCode
- func CreatedByPrincipalIDNotNil() predicate.SignupCode
- func ExpiresAt(v time.Time) predicate.SignupCode
- func ExpiresAtEQ(v time.Time) predicate.SignupCode
- func ExpiresAtGT(v time.Time) predicate.SignupCode
- func ExpiresAtGTE(v time.Time) predicate.SignupCode
- func ExpiresAtIn(vs ...time.Time) predicate.SignupCode
- func ExpiresAtIsNil() predicate.SignupCode
- func ExpiresAtLT(v time.Time) predicate.SignupCode
- func ExpiresAtLTE(v time.Time) predicate.SignupCode
- func ExpiresAtNEQ(v time.Time) predicate.SignupCode
- func ExpiresAtNotIn(vs ...time.Time) predicate.SignupCode
- func ExpiresAtNotNil() predicate.SignupCode
- func HasRedemptions() predicate.SignupCode
- func HasRedemptionsWith(preds ...predicate.SignupCodeRedemption) predicate.SignupCode
- func ID(id uuid.UUID) predicate.SignupCode
- func IDEQ(id uuid.UUID) predicate.SignupCode
- func IDGT(id uuid.UUID) predicate.SignupCode
- func IDGTE(id uuid.UUID) predicate.SignupCode
- func IDIn(ids ...uuid.UUID) predicate.SignupCode
- func IDLT(id uuid.UUID) predicate.SignupCode
- func IDLTE(id uuid.UUID) predicate.SignupCode
- func IDNEQ(id uuid.UUID) predicate.SignupCode
- func IDNotIn(ids ...uuid.UUID) predicate.SignupCode
- func KindEQ(v Kind) predicate.SignupCode
- func KindIn(vs ...Kind) predicate.SignupCode
- func KindNEQ(v Kind) predicate.SignupCode
- func KindNotIn(vs ...Kind) predicate.SignupCode
- func KindValidator(k Kind) error
- func LabelContains(v string) predicate.SignupCode
- func LabelContainsFold(v string) predicate.SignupCode
- func LabelEQ(v string) predicate.SignupCode
- func LabelEqualFold(v string) predicate.SignupCode
- func LabelGT(v string) predicate.SignupCode
- func LabelGTE(v string) predicate.SignupCode
- func LabelHasPrefix(v string) predicate.SignupCode
- func LabelHasSuffix(v string) predicate.SignupCode
- func LabelIn(vs ...string) predicate.SignupCode
- func LabelIsNil() predicate.SignupCode
- func LabelLT(v string) predicate.SignupCode
- func LabelLTE(v string) predicate.SignupCode
- func LabelNEQ(v string) predicate.SignupCode
- func LabelNotIn(vs ...string) predicate.SignupCode
- func LabelNotNil() predicate.SignupCode
- func MaxUses(v int) predicate.SignupCode
- func MaxUsesEQ(v int) predicate.SignupCode
- func MaxUsesGT(v int) predicate.SignupCode
- func MaxUsesGTE(v int) predicate.SignupCode
- func MaxUsesIn(vs ...int) predicate.SignupCode
- func MaxUsesLT(v int) predicate.SignupCode
- func MaxUsesLTE(v int) predicate.SignupCode
- func MaxUsesNEQ(v int) predicate.SignupCode
- func MaxUsesNotIn(vs ...int) predicate.SignupCode
- func Not(p predicate.SignupCode) predicate.SignupCode
- func Note(v string) predicate.SignupCode
- func NoteContains(v string) predicate.SignupCode
- func NoteContainsFold(v string) predicate.SignupCode
- func NoteEQ(v string) predicate.SignupCode
- func NoteEqualFold(v string) predicate.SignupCode
- func NoteGT(v string) predicate.SignupCode
- func NoteGTE(v string) predicate.SignupCode
- func NoteHasPrefix(v string) predicate.SignupCode
- func NoteHasSuffix(v string) predicate.SignupCode
- func NoteIn(vs ...string) predicate.SignupCode
- func NoteIsNil() predicate.SignupCode
- func NoteLT(v string) predicate.SignupCode
- func NoteLTE(v string) predicate.SignupCode
- func NoteNEQ(v string) predicate.SignupCode
- func NoteNotIn(vs ...string) predicate.SignupCode
- func NoteNotNil() predicate.SignupCode
- func Or(predicates ...predicate.SignupCode) predicate.SignupCode
- func RevokedAt(v time.Time) predicate.SignupCode
- func RevokedAtEQ(v time.Time) predicate.SignupCode
- func RevokedAtGT(v time.Time) predicate.SignupCode
- func RevokedAtGTE(v time.Time) predicate.SignupCode
- func RevokedAtIn(vs ...time.Time) predicate.SignupCode
- func RevokedAtIsNil() predicate.SignupCode
- func RevokedAtLT(v time.Time) predicate.SignupCode
- func RevokedAtLTE(v time.Time) predicate.SignupCode
- func RevokedAtNEQ(v time.Time) predicate.SignupCode
- func RevokedAtNotIn(vs ...time.Time) predicate.SignupCode
- func RevokedAtNotNil() predicate.SignupCode
- func UpdatedAt(v time.Time) predicate.SignupCode
- func UpdatedAtEQ(v time.Time) predicate.SignupCode
- func UpdatedAtGT(v time.Time) predicate.SignupCode
- func UpdatedAtGTE(v time.Time) predicate.SignupCode
- func UpdatedAtIn(vs ...time.Time) predicate.SignupCode
- func UpdatedAtLT(v time.Time) predicate.SignupCode
- func UpdatedAtLTE(v time.Time) predicate.SignupCode
- func UpdatedAtNEQ(v time.Time) predicate.SignupCode
- func UpdatedAtNotIn(vs ...time.Time) predicate.SignupCode
- func UseCount(v int) predicate.SignupCode
- func UseCountEQ(v int) predicate.SignupCode
- func UseCountGT(v int) predicate.SignupCode
- func UseCountGTE(v int) predicate.SignupCode
- func UseCountIn(vs ...int) predicate.SignupCode
- func UseCountLT(v int) predicate.SignupCode
- func UseCountLTE(v int) predicate.SignupCode
- func UseCountNEQ(v int) predicate.SignupCode
- func UseCountNotIn(vs ...int) predicate.SignupCode
- func ValidColumn(column string) bool
- type Kind
- type OrderOption
- func ByCodeHash(opts ...sql.OrderTermOption) OrderOption
- func ByCodeHint(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedByLabel(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedByPrincipalID(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByKind(opts ...sql.OrderTermOption) OrderOption
- func ByLabel(opts ...sql.OrderTermOption) OrderOption
- func ByMaxUses(opts ...sql.OrderTermOption) OrderOption
- func ByNote(opts ...sql.OrderTermOption) OrderOption
- func ByRedemptions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRedemptionsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRevokedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUseCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the signupcode type in the database. Label = "signup_code" // 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" // FieldCodeHash holds the string denoting the code_hash field in the database. FieldCodeHash = "code_hash" // FieldCodeHint holds the string denoting the code_hint field in the database. FieldCodeHint = "code_hint" // FieldKind holds the string denoting the kind field in the database. FieldKind = "kind" // FieldLabel holds the string denoting the label field in the database. FieldLabel = "label" // FieldNote holds the string denoting the note field in the database. FieldNote = "note" // FieldCreatedByPrincipalID holds the string denoting the created_by_principal_id field in the database. FieldCreatedByPrincipalID = "created_by_principal_id" // FieldCreatedByLabel holds the string denoting the created_by_label field in the database. FieldCreatedByLabel = "created_by_label" // FieldMaxUses holds the string denoting the max_uses field in the database. FieldMaxUses = "max_uses" // FieldUseCount holds the string denoting the use_count field in the database. FieldUseCount = "use_count" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // FieldRevokedAt holds the string denoting the revoked_at field in the database. FieldRevokedAt = "revoked_at" // EdgeRedemptions holds the string denoting the redemptions edge name in mutations. EdgeRedemptions = "redemptions" // Table holds the table name of the signupcode in the database. Table = "sf_signup_codes" // RedemptionsTable is the table that holds the redemptions relation/edge. RedemptionsTable = "sf_signup_code_redemptions" // RedemptionsInverseTable is the table name for the SignupCodeRedemption entity. // It exists in this package in order to avoid circular dependency with the "signupcoderedemption" package. RedemptionsInverseTable = "sf_signup_code_redemptions" // RedemptionsColumn is the table column denoting the redemptions relation/edge. RedemptionsColumn = "code_id" )
Variables ¶
var ( // 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 // CodeHashValidator is a validator for the "code_hash" field. It is called by the builders before save. CodeHashValidator func(string) error // CodeHintValidator is a validator for the "code_hint" field. It is called by the builders before save. CodeHintValidator func(string) error // LabelValidator is a validator for the "label" field. It is called by the builders before save. LabelValidator func(string) error // NoteValidator is a validator for the "note" field. It is called by the builders before save. NoteValidator func(string) error // CreatedByLabelValidator is a validator for the "created_by_label" field. It is called by the builders before save. CreatedByLabelValidator func(string) error // MaxUsesValidator is a validator for the "max_uses" field. It is called by the builders before save. MaxUsesValidator func(int) error // DefaultUseCount holds the default value on creation for the "use_count" field. DefaultUseCount int // UseCountValidator is a validator for the "use_count" field. It is called by the builders before save. UseCountValidator func(int) error // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCodeHash, FieldCodeHint, FieldKind, FieldLabel, FieldNote, FieldCreatedByPrincipalID, FieldCreatedByLabel, FieldMaxUses, FieldUseCount, FieldExpiresAt, FieldRevokedAt, }
Columns holds all SQL columns for signupcode fields.
Functions ¶
func And ¶
func And(predicates ...predicate.SignupCode) predicate.SignupCode
And groups predicates with the AND operator between them.
func CodeHash ¶
func CodeHash(v string) predicate.SignupCode
CodeHash applies equality check predicate on the "code_hash" field. It's identical to CodeHashEQ.
func CodeHashContains ¶
func CodeHashContains(v string) predicate.SignupCode
CodeHashContains applies the Contains predicate on the "code_hash" field.
func CodeHashContainsFold ¶
func CodeHashContainsFold(v string) predicate.SignupCode
CodeHashContainsFold applies the ContainsFold predicate on the "code_hash" field.
func CodeHashEQ ¶
func CodeHashEQ(v string) predicate.SignupCode
CodeHashEQ applies the EQ predicate on the "code_hash" field.
func CodeHashEqualFold ¶
func CodeHashEqualFold(v string) predicate.SignupCode
CodeHashEqualFold applies the EqualFold predicate on the "code_hash" field.
func CodeHashGT ¶
func CodeHashGT(v string) predicate.SignupCode
CodeHashGT applies the GT predicate on the "code_hash" field.
func CodeHashGTE ¶
func CodeHashGTE(v string) predicate.SignupCode
CodeHashGTE applies the GTE predicate on the "code_hash" field.
func CodeHashHasPrefix ¶
func CodeHashHasPrefix(v string) predicate.SignupCode
CodeHashHasPrefix applies the HasPrefix predicate on the "code_hash" field.
func CodeHashHasSuffix ¶
func CodeHashHasSuffix(v string) predicate.SignupCode
CodeHashHasSuffix applies the HasSuffix predicate on the "code_hash" field.
func CodeHashIn ¶
func CodeHashIn(vs ...string) predicate.SignupCode
CodeHashIn applies the In predicate on the "code_hash" field.
func CodeHashLT ¶
func CodeHashLT(v string) predicate.SignupCode
CodeHashLT applies the LT predicate on the "code_hash" field.
func CodeHashLTE ¶
func CodeHashLTE(v string) predicate.SignupCode
CodeHashLTE applies the LTE predicate on the "code_hash" field.
func CodeHashNEQ ¶
func CodeHashNEQ(v string) predicate.SignupCode
CodeHashNEQ applies the NEQ predicate on the "code_hash" field.
func CodeHashNotIn ¶
func CodeHashNotIn(vs ...string) predicate.SignupCode
CodeHashNotIn applies the NotIn predicate on the "code_hash" field.
func CodeHint ¶
func CodeHint(v string) predicate.SignupCode
CodeHint applies equality check predicate on the "code_hint" field. It's identical to CodeHintEQ.
func CodeHintContains ¶
func CodeHintContains(v string) predicate.SignupCode
CodeHintContains applies the Contains predicate on the "code_hint" field.
func CodeHintContainsFold ¶
func CodeHintContainsFold(v string) predicate.SignupCode
CodeHintContainsFold applies the ContainsFold predicate on the "code_hint" field.
func CodeHintEQ ¶
func CodeHintEQ(v string) predicate.SignupCode
CodeHintEQ applies the EQ predicate on the "code_hint" field.
func CodeHintEqualFold ¶
func CodeHintEqualFold(v string) predicate.SignupCode
CodeHintEqualFold applies the EqualFold predicate on the "code_hint" field.
func CodeHintGT ¶
func CodeHintGT(v string) predicate.SignupCode
CodeHintGT applies the GT predicate on the "code_hint" field.
func CodeHintGTE ¶
func CodeHintGTE(v string) predicate.SignupCode
CodeHintGTE applies the GTE predicate on the "code_hint" field.
func CodeHintHasPrefix ¶
func CodeHintHasPrefix(v string) predicate.SignupCode
CodeHintHasPrefix applies the HasPrefix predicate on the "code_hint" field.
func CodeHintHasSuffix ¶
func CodeHintHasSuffix(v string) predicate.SignupCode
CodeHintHasSuffix applies the HasSuffix predicate on the "code_hint" field.
func CodeHintIn ¶
func CodeHintIn(vs ...string) predicate.SignupCode
CodeHintIn applies the In predicate on the "code_hint" field.
func CodeHintLT ¶
func CodeHintLT(v string) predicate.SignupCode
CodeHintLT applies the LT predicate on the "code_hint" field.
func CodeHintLTE ¶
func CodeHintLTE(v string) predicate.SignupCode
CodeHintLTE applies the LTE predicate on the "code_hint" field.
func CodeHintNEQ ¶
func CodeHintNEQ(v string) predicate.SignupCode
CodeHintNEQ applies the NEQ predicate on the "code_hint" field.
func CodeHintNotIn ¶
func CodeHintNotIn(vs ...string) predicate.SignupCode
CodeHintNotIn applies the NotIn predicate on the "code_hint" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.SignupCode
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.SignupCode
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.SignupCode
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.SignupCode
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.SignupCode
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.SignupCode
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.SignupCode
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.SignupCode
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.SignupCode
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedByLabel ¶
func CreatedByLabel(v string) predicate.SignupCode
CreatedByLabel applies equality check predicate on the "created_by_label" field. It's identical to CreatedByLabelEQ.
func CreatedByLabelContains ¶
func CreatedByLabelContains(v string) predicate.SignupCode
CreatedByLabelContains applies the Contains predicate on the "created_by_label" field.
func CreatedByLabelContainsFold ¶
func CreatedByLabelContainsFold(v string) predicate.SignupCode
CreatedByLabelContainsFold applies the ContainsFold predicate on the "created_by_label" field.
func CreatedByLabelEQ ¶
func CreatedByLabelEQ(v string) predicate.SignupCode
CreatedByLabelEQ applies the EQ predicate on the "created_by_label" field.
func CreatedByLabelEqualFold ¶
func CreatedByLabelEqualFold(v string) predicate.SignupCode
CreatedByLabelEqualFold applies the EqualFold predicate on the "created_by_label" field.
func CreatedByLabelGT ¶
func CreatedByLabelGT(v string) predicate.SignupCode
CreatedByLabelGT applies the GT predicate on the "created_by_label" field.
func CreatedByLabelGTE ¶
func CreatedByLabelGTE(v string) predicate.SignupCode
CreatedByLabelGTE applies the GTE predicate on the "created_by_label" field.
func CreatedByLabelHasPrefix ¶
func CreatedByLabelHasPrefix(v string) predicate.SignupCode
CreatedByLabelHasPrefix applies the HasPrefix predicate on the "created_by_label" field.
func CreatedByLabelHasSuffix ¶
func CreatedByLabelHasSuffix(v string) predicate.SignupCode
CreatedByLabelHasSuffix applies the HasSuffix predicate on the "created_by_label" field.
func CreatedByLabelIn ¶
func CreatedByLabelIn(vs ...string) predicate.SignupCode
CreatedByLabelIn applies the In predicate on the "created_by_label" field.
func CreatedByLabelIsNil ¶
func CreatedByLabelIsNil() predicate.SignupCode
CreatedByLabelIsNil applies the IsNil predicate on the "created_by_label" field.
func CreatedByLabelLT ¶
func CreatedByLabelLT(v string) predicate.SignupCode
CreatedByLabelLT applies the LT predicate on the "created_by_label" field.
func CreatedByLabelLTE ¶
func CreatedByLabelLTE(v string) predicate.SignupCode
CreatedByLabelLTE applies the LTE predicate on the "created_by_label" field.
func CreatedByLabelNEQ ¶
func CreatedByLabelNEQ(v string) predicate.SignupCode
CreatedByLabelNEQ applies the NEQ predicate on the "created_by_label" field.
func CreatedByLabelNotIn ¶
func CreatedByLabelNotIn(vs ...string) predicate.SignupCode
CreatedByLabelNotIn applies the NotIn predicate on the "created_by_label" field.
func CreatedByLabelNotNil ¶
func CreatedByLabelNotNil() predicate.SignupCode
CreatedByLabelNotNil applies the NotNil predicate on the "created_by_label" field.
func CreatedByPrincipalID ¶
func CreatedByPrincipalID(v uuid.UUID) predicate.SignupCode
CreatedByPrincipalID applies equality check predicate on the "created_by_principal_id" field. It's identical to CreatedByPrincipalIDEQ.
func CreatedByPrincipalIDEQ ¶
func CreatedByPrincipalIDEQ(v uuid.UUID) predicate.SignupCode
CreatedByPrincipalIDEQ applies the EQ predicate on the "created_by_principal_id" field.
func CreatedByPrincipalIDGT ¶
func CreatedByPrincipalIDGT(v uuid.UUID) predicate.SignupCode
CreatedByPrincipalIDGT applies the GT predicate on the "created_by_principal_id" field.
func CreatedByPrincipalIDGTE ¶
func CreatedByPrincipalIDGTE(v uuid.UUID) predicate.SignupCode
CreatedByPrincipalIDGTE applies the GTE predicate on the "created_by_principal_id" field.
func CreatedByPrincipalIDIn ¶
func CreatedByPrincipalIDIn(vs ...uuid.UUID) predicate.SignupCode
CreatedByPrincipalIDIn applies the In predicate on the "created_by_principal_id" field.
func CreatedByPrincipalIDIsNil ¶
func CreatedByPrincipalIDIsNil() predicate.SignupCode
CreatedByPrincipalIDIsNil applies the IsNil predicate on the "created_by_principal_id" field.
func CreatedByPrincipalIDLT ¶
func CreatedByPrincipalIDLT(v uuid.UUID) predicate.SignupCode
CreatedByPrincipalIDLT applies the LT predicate on the "created_by_principal_id" field.
func CreatedByPrincipalIDLTE ¶
func CreatedByPrincipalIDLTE(v uuid.UUID) predicate.SignupCode
CreatedByPrincipalIDLTE applies the LTE predicate on the "created_by_principal_id" field.
func CreatedByPrincipalIDNEQ ¶
func CreatedByPrincipalIDNEQ(v uuid.UUID) predicate.SignupCode
CreatedByPrincipalIDNEQ applies the NEQ predicate on the "created_by_principal_id" field.
func CreatedByPrincipalIDNotIn ¶
func CreatedByPrincipalIDNotIn(vs ...uuid.UUID) predicate.SignupCode
CreatedByPrincipalIDNotIn applies the NotIn predicate on the "created_by_principal_id" field.
func CreatedByPrincipalIDNotNil ¶
func CreatedByPrincipalIDNotNil() predicate.SignupCode
CreatedByPrincipalIDNotNil applies the NotNil predicate on the "created_by_principal_id" field.
func ExpiresAt ¶
func ExpiresAt(v time.Time) predicate.SignupCode
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
func ExpiresAtEQ(v time.Time) predicate.SignupCode
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
func ExpiresAtGT(v time.Time) predicate.SignupCode
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
func ExpiresAtGTE(v time.Time) predicate.SignupCode
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
func ExpiresAtIn(vs ...time.Time) predicate.SignupCode
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtIsNil ¶
func ExpiresAtIsNil() predicate.SignupCode
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
func ExpiresAtLT ¶
func ExpiresAtLT(v time.Time) predicate.SignupCode
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
func ExpiresAtLTE(v time.Time) predicate.SignupCode
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
func ExpiresAtNEQ(v time.Time) predicate.SignupCode
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
func ExpiresAtNotIn(vs ...time.Time) predicate.SignupCode
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func ExpiresAtNotNil ¶
func ExpiresAtNotNil() predicate.SignupCode
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
func HasRedemptions ¶
func HasRedemptions() predicate.SignupCode
HasRedemptions applies the HasEdge predicate on the "redemptions" edge.
func HasRedemptionsWith ¶
func HasRedemptionsWith(preds ...predicate.SignupCodeRedemption) predicate.SignupCode
HasRedemptionsWith applies the HasEdge predicate on the "redemptions" edge with a given conditions (other predicates).
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.SignupCode
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.SignupCode
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.SignupCode
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.SignupCode
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.SignupCode
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.SignupCode
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.SignupCode
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.SignupCode
IDNotIn applies the NotIn predicate on the ID field.
func KindEQ ¶
func KindEQ(v Kind) predicate.SignupCode
KindEQ applies the EQ predicate on the "kind" field.
func KindIn ¶
func KindIn(vs ...Kind) predicate.SignupCode
KindIn applies the In predicate on the "kind" field.
func KindNEQ ¶
func KindNEQ(v Kind) predicate.SignupCode
KindNEQ applies the NEQ predicate on the "kind" field.
func KindNotIn ¶
func KindNotIn(vs ...Kind) predicate.SignupCode
KindNotIn applies the NotIn predicate on the "kind" field.
func KindValidator ¶
KindValidator is a validator for the "kind" field enum values. It is called by the builders before save.
func LabelContains ¶
func LabelContains(v string) predicate.SignupCode
LabelContains applies the Contains predicate on the "label" field.
func LabelContainsFold ¶
func LabelContainsFold(v string) predicate.SignupCode
LabelContainsFold applies the ContainsFold predicate on the "label" field.
func LabelEQ ¶
func LabelEQ(v string) predicate.SignupCode
LabelEQ applies the EQ predicate on the "label" field.
func LabelEqualFold ¶
func LabelEqualFold(v string) predicate.SignupCode
LabelEqualFold applies the EqualFold predicate on the "label" field.
func LabelGT ¶
func LabelGT(v string) predicate.SignupCode
LabelGT applies the GT predicate on the "label" field.
func LabelGTE ¶
func LabelGTE(v string) predicate.SignupCode
LabelGTE applies the GTE predicate on the "label" field.
func LabelHasPrefix ¶
func LabelHasPrefix(v string) predicate.SignupCode
LabelHasPrefix applies the HasPrefix predicate on the "label" field.
func LabelHasSuffix ¶
func LabelHasSuffix(v string) predicate.SignupCode
LabelHasSuffix applies the HasSuffix predicate on the "label" field.
func LabelIn ¶
func LabelIn(vs ...string) predicate.SignupCode
LabelIn applies the In predicate on the "label" field.
func LabelIsNil ¶
func LabelIsNil() predicate.SignupCode
LabelIsNil applies the IsNil predicate on the "label" field.
func LabelLT ¶
func LabelLT(v string) predicate.SignupCode
LabelLT applies the LT predicate on the "label" field.
func LabelLTE ¶
func LabelLTE(v string) predicate.SignupCode
LabelLTE applies the LTE predicate on the "label" field.
func LabelNEQ ¶
func LabelNEQ(v string) predicate.SignupCode
LabelNEQ applies the NEQ predicate on the "label" field.
func LabelNotIn ¶
func LabelNotIn(vs ...string) predicate.SignupCode
LabelNotIn applies the NotIn predicate on the "label" field.
func LabelNotNil ¶
func LabelNotNil() predicate.SignupCode
LabelNotNil applies the NotNil predicate on the "label" field.
func MaxUses ¶
func MaxUses(v int) predicate.SignupCode
MaxUses applies equality check predicate on the "max_uses" field. It's identical to MaxUsesEQ.
func MaxUsesEQ ¶
func MaxUsesEQ(v int) predicate.SignupCode
MaxUsesEQ applies the EQ predicate on the "max_uses" field.
func MaxUsesGT ¶
func MaxUsesGT(v int) predicate.SignupCode
MaxUsesGT applies the GT predicate on the "max_uses" field.
func MaxUsesGTE ¶
func MaxUsesGTE(v int) predicate.SignupCode
MaxUsesGTE applies the GTE predicate on the "max_uses" field.
func MaxUsesIn ¶
func MaxUsesIn(vs ...int) predicate.SignupCode
MaxUsesIn applies the In predicate on the "max_uses" field.
func MaxUsesLT ¶
func MaxUsesLT(v int) predicate.SignupCode
MaxUsesLT applies the LT predicate on the "max_uses" field.
func MaxUsesLTE ¶
func MaxUsesLTE(v int) predicate.SignupCode
MaxUsesLTE applies the LTE predicate on the "max_uses" field.
func MaxUsesNEQ ¶
func MaxUsesNEQ(v int) predicate.SignupCode
MaxUsesNEQ applies the NEQ predicate on the "max_uses" field.
func MaxUsesNotIn ¶
func MaxUsesNotIn(vs ...int) predicate.SignupCode
MaxUsesNotIn applies the NotIn predicate on the "max_uses" field.
func Not ¶
func Not(p predicate.SignupCode) predicate.SignupCode
Not applies the not operator on the given predicate.
func Note ¶
func Note(v string) predicate.SignupCode
Note applies equality check predicate on the "note" field. It's identical to NoteEQ.
func NoteContains ¶
func NoteContains(v string) predicate.SignupCode
NoteContains applies the Contains predicate on the "note" field.
func NoteContainsFold ¶
func NoteContainsFold(v string) predicate.SignupCode
NoteContainsFold applies the ContainsFold predicate on the "note" field.
func NoteEQ ¶
func NoteEQ(v string) predicate.SignupCode
NoteEQ applies the EQ predicate on the "note" field.
func NoteEqualFold ¶
func NoteEqualFold(v string) predicate.SignupCode
NoteEqualFold applies the EqualFold predicate on the "note" field.
func NoteGT ¶
func NoteGT(v string) predicate.SignupCode
NoteGT applies the GT predicate on the "note" field.
func NoteGTE ¶
func NoteGTE(v string) predicate.SignupCode
NoteGTE applies the GTE predicate on the "note" field.
func NoteHasPrefix ¶
func NoteHasPrefix(v string) predicate.SignupCode
NoteHasPrefix applies the HasPrefix predicate on the "note" field.
func NoteHasSuffix ¶
func NoteHasSuffix(v string) predicate.SignupCode
NoteHasSuffix applies the HasSuffix predicate on the "note" field.
func NoteIn ¶
func NoteIn(vs ...string) predicate.SignupCode
NoteIn applies the In predicate on the "note" field.
func NoteIsNil ¶
func NoteIsNil() predicate.SignupCode
NoteIsNil applies the IsNil predicate on the "note" field.
func NoteLT ¶
func NoteLT(v string) predicate.SignupCode
NoteLT applies the LT predicate on the "note" field.
func NoteLTE ¶
func NoteLTE(v string) predicate.SignupCode
NoteLTE applies the LTE predicate on the "note" field.
func NoteNEQ ¶
func NoteNEQ(v string) predicate.SignupCode
NoteNEQ applies the NEQ predicate on the "note" field.
func NoteNotIn ¶
func NoteNotIn(vs ...string) predicate.SignupCode
NoteNotIn applies the NotIn predicate on the "note" field.
func NoteNotNil ¶
func NoteNotNil() predicate.SignupCode
NoteNotNil applies the NotNil predicate on the "note" field.
func Or ¶
func Or(predicates ...predicate.SignupCode) predicate.SignupCode
Or groups predicates with the OR operator between them.
func RevokedAt ¶
func RevokedAt(v time.Time) predicate.SignupCode
RevokedAt applies equality check predicate on the "revoked_at" field. It's identical to RevokedAtEQ.
func RevokedAtEQ ¶
func RevokedAtEQ(v time.Time) predicate.SignupCode
RevokedAtEQ applies the EQ predicate on the "revoked_at" field.
func RevokedAtGT ¶
func RevokedAtGT(v time.Time) predicate.SignupCode
RevokedAtGT applies the GT predicate on the "revoked_at" field.
func RevokedAtGTE ¶
func RevokedAtGTE(v time.Time) predicate.SignupCode
RevokedAtGTE applies the GTE predicate on the "revoked_at" field.
func RevokedAtIn ¶
func RevokedAtIn(vs ...time.Time) predicate.SignupCode
RevokedAtIn applies the In predicate on the "revoked_at" field.
func RevokedAtIsNil ¶
func RevokedAtIsNil() predicate.SignupCode
RevokedAtIsNil applies the IsNil predicate on the "revoked_at" field.
func RevokedAtLT ¶
func RevokedAtLT(v time.Time) predicate.SignupCode
RevokedAtLT applies the LT predicate on the "revoked_at" field.
func RevokedAtLTE ¶
func RevokedAtLTE(v time.Time) predicate.SignupCode
RevokedAtLTE applies the LTE predicate on the "revoked_at" field.
func RevokedAtNEQ ¶
func RevokedAtNEQ(v time.Time) predicate.SignupCode
RevokedAtNEQ applies the NEQ predicate on the "revoked_at" field.
func RevokedAtNotIn ¶
func RevokedAtNotIn(vs ...time.Time) predicate.SignupCode
RevokedAtNotIn applies the NotIn predicate on the "revoked_at" field.
func RevokedAtNotNil ¶
func RevokedAtNotNil() predicate.SignupCode
RevokedAtNotNil applies the NotNil predicate on the "revoked_at" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.SignupCode
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.SignupCode
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.SignupCode
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.SignupCode
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.SignupCode
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.SignupCode
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.SignupCode
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.SignupCode
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.SignupCode
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UseCount ¶
func UseCount(v int) predicate.SignupCode
UseCount applies equality check predicate on the "use_count" field. It's identical to UseCountEQ.
func UseCountEQ ¶
func UseCountEQ(v int) predicate.SignupCode
UseCountEQ applies the EQ predicate on the "use_count" field.
func UseCountGT ¶
func UseCountGT(v int) predicate.SignupCode
UseCountGT applies the GT predicate on the "use_count" field.
func UseCountGTE ¶
func UseCountGTE(v int) predicate.SignupCode
UseCountGTE applies the GTE predicate on the "use_count" field.
func UseCountIn ¶
func UseCountIn(vs ...int) predicate.SignupCode
UseCountIn applies the In predicate on the "use_count" field.
func UseCountLT ¶
func UseCountLT(v int) predicate.SignupCode
UseCountLT applies the LT predicate on the "use_count" field.
func UseCountLTE ¶
func UseCountLTE(v int) predicate.SignupCode
UseCountLTE applies the LTE predicate on the "use_count" field.
func UseCountNEQ ¶
func UseCountNEQ(v int) predicate.SignupCode
UseCountNEQ applies the NEQ predicate on the "use_count" field.
func UseCountNotIn ¶
func UseCountNotIn(vs ...int) predicate.SignupCode
UseCountNotIn applies the NotIn predicate on the "use_count" 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 SignupCode queries.
func ByCodeHash ¶
func ByCodeHash(opts ...sql.OrderTermOption) OrderOption
ByCodeHash orders the results by the code_hash field.
func ByCodeHint ¶
func ByCodeHint(opts ...sql.OrderTermOption) OrderOption
ByCodeHint orders the results by the code_hint field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedByLabel ¶
func ByCreatedByLabel(opts ...sql.OrderTermOption) OrderOption
ByCreatedByLabel orders the results by the created_by_label field.
func ByCreatedByPrincipalID ¶
func ByCreatedByPrincipalID(opts ...sql.OrderTermOption) OrderOption
ByCreatedByPrincipalID orders the results by the created_by_principal_id 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 ByKind ¶
func ByKind(opts ...sql.OrderTermOption) OrderOption
ByKind orders the results by the kind field.
func ByLabel ¶
func ByLabel(opts ...sql.OrderTermOption) OrderOption
ByLabel orders the results by the label field.
func ByMaxUses ¶
func ByMaxUses(opts ...sql.OrderTermOption) OrderOption
ByMaxUses orders the results by the max_uses field.
func ByNote ¶
func ByNote(opts ...sql.OrderTermOption) OrderOption
ByNote orders the results by the note field.
func ByRedemptions ¶
func ByRedemptions(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRedemptions orders the results by redemptions terms.
func ByRedemptionsCount ¶
func ByRedemptionsCount(opts ...sql.OrderTermOption) OrderOption
ByRedemptionsCount orders the results by redemptions count.
func ByRevokedAt ¶
func ByRevokedAt(opts ...sql.OrderTermOption) OrderOption
ByRevokedAt orders the results by the revoked_at field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUseCount ¶
func ByUseCount(opts ...sql.OrderTermOption) OrderOption
ByUseCount orders the results by the use_count field.