Documentation
¶
Index ¶
- Constants
- Variables
- func AmountOff(v decimal.Decimal) predicate.Coupon
- func AmountOffEQ(v decimal.Decimal) predicate.Coupon
- func AmountOffGT(v decimal.Decimal) predicate.Coupon
- func AmountOffGTE(v decimal.Decimal) predicate.Coupon
- func AmountOffIn(vs ...decimal.Decimal) predicate.Coupon
- func AmountOffIsNil() predicate.Coupon
- func AmountOffLT(v decimal.Decimal) predicate.Coupon
- func AmountOffLTE(v decimal.Decimal) predicate.Coupon
- func AmountOffNEQ(v decimal.Decimal) predicate.Coupon
- func AmountOffNotIn(vs ...decimal.Decimal) predicate.Coupon
- func AmountOffNotNil() predicate.Coupon
- func And(predicates ...predicate.Coupon) predicate.Coupon
- func Cadence(v string) predicate.Coupon
- func CadenceContains(v string) predicate.Coupon
- func CadenceContainsFold(v string) predicate.Coupon
- func CadenceEQ(v string) predicate.Coupon
- func CadenceEqualFold(v string) predicate.Coupon
- func CadenceGT(v string) predicate.Coupon
- func CadenceGTE(v string) predicate.Coupon
- func CadenceHasPrefix(v string) predicate.Coupon
- func CadenceHasSuffix(v string) predicate.Coupon
- func CadenceIn(vs ...string) predicate.Coupon
- func CadenceLT(v string) predicate.Coupon
- func CadenceLTE(v string) predicate.Coupon
- func CadenceNEQ(v string) predicate.Coupon
- func CadenceNotIn(vs ...string) predicate.Coupon
- func CreatedAt(v time.Time) predicate.Coupon
- func CreatedAtEQ(v time.Time) predicate.Coupon
- func CreatedAtGT(v time.Time) predicate.Coupon
- func CreatedAtGTE(v time.Time) predicate.Coupon
- func CreatedAtIn(vs ...time.Time) predicate.Coupon
- func CreatedAtLT(v time.Time) predicate.Coupon
- func CreatedAtLTE(v time.Time) predicate.Coupon
- func CreatedAtNEQ(v time.Time) predicate.Coupon
- func CreatedAtNotIn(vs ...time.Time) predicate.Coupon
- func CreatedBy(v string) predicate.Coupon
- func CreatedByContains(v string) predicate.Coupon
- func CreatedByContainsFold(v string) predicate.Coupon
- func CreatedByEQ(v string) predicate.Coupon
- func CreatedByEqualFold(v string) predicate.Coupon
- func CreatedByGT(v string) predicate.Coupon
- func CreatedByGTE(v string) predicate.Coupon
- func CreatedByHasPrefix(v string) predicate.Coupon
- func CreatedByHasSuffix(v string) predicate.Coupon
- func CreatedByIn(vs ...string) predicate.Coupon
- func CreatedByIsNil() predicate.Coupon
- func CreatedByLT(v string) predicate.Coupon
- func CreatedByLTE(v string) predicate.Coupon
- func CreatedByNEQ(v string) predicate.Coupon
- func CreatedByNotIn(vs ...string) predicate.Coupon
- func CreatedByNotNil() predicate.Coupon
- func Currency(v string) predicate.Coupon
- func CurrencyContains(v string) predicate.Coupon
- func CurrencyContainsFold(v string) predicate.Coupon
- func CurrencyEQ(v string) predicate.Coupon
- func CurrencyEqualFold(v string) predicate.Coupon
- func CurrencyGT(v string) predicate.Coupon
- func CurrencyGTE(v string) predicate.Coupon
- func CurrencyHasPrefix(v string) predicate.Coupon
- func CurrencyHasSuffix(v string) predicate.Coupon
- func CurrencyIn(vs ...string) predicate.Coupon
- func CurrencyIsNil() predicate.Coupon
- func CurrencyLT(v string) predicate.Coupon
- func CurrencyLTE(v string) predicate.Coupon
- func CurrencyNEQ(v string) predicate.Coupon
- func CurrencyNotIn(vs ...string) predicate.Coupon
- func CurrencyNotNil() predicate.Coupon
- func DurationInPeriods(v int) predicate.Coupon
- func DurationInPeriodsEQ(v int) predicate.Coupon
- func DurationInPeriodsGT(v int) predicate.Coupon
- func DurationInPeriodsGTE(v int) predicate.Coupon
- func DurationInPeriodsIn(vs ...int) predicate.Coupon
- func DurationInPeriodsIsNil() predicate.Coupon
- func DurationInPeriodsLT(v int) predicate.Coupon
- func DurationInPeriodsLTE(v int) predicate.Coupon
- func DurationInPeriodsNEQ(v int) predicate.Coupon
- func DurationInPeriodsNotIn(vs ...int) predicate.Coupon
- func DurationInPeriodsNotNil() predicate.Coupon
- func EnvironmentID(v string) predicate.Coupon
- func EnvironmentIDContains(v string) predicate.Coupon
- func EnvironmentIDContainsFold(v string) predicate.Coupon
- func EnvironmentIDEQ(v string) predicate.Coupon
- func EnvironmentIDEqualFold(v string) predicate.Coupon
- func EnvironmentIDGT(v string) predicate.Coupon
- func EnvironmentIDGTE(v string) predicate.Coupon
- func EnvironmentIDHasPrefix(v string) predicate.Coupon
- func EnvironmentIDHasSuffix(v string) predicate.Coupon
- func EnvironmentIDIn(vs ...string) predicate.Coupon
- func EnvironmentIDIsNil() predicate.Coupon
- func EnvironmentIDLT(v string) predicate.Coupon
- func EnvironmentIDLTE(v string) predicate.Coupon
- func EnvironmentIDNEQ(v string) predicate.Coupon
- func EnvironmentIDNotIn(vs ...string) predicate.Coupon
- func EnvironmentIDNotNil() predicate.Coupon
- func HasCouponApplications() predicate.Coupon
- func HasCouponApplicationsWith(preds ...predicate.CouponApplication) predicate.Coupon
- func HasCouponAssociations() predicate.Coupon
- func HasCouponAssociationsWith(preds ...predicate.CouponAssociation) predicate.Coupon
- func ID(id string) predicate.Coupon
- func IDContainsFold(id string) predicate.Coupon
- func IDEQ(id string) predicate.Coupon
- func IDEqualFold(id string) predicate.Coupon
- func IDGT(id string) predicate.Coupon
- func IDGTE(id string) predicate.Coupon
- func IDIn(ids ...string) predicate.Coupon
- func IDLT(id string) predicate.Coupon
- func IDLTE(id string) predicate.Coupon
- func IDNEQ(id string) predicate.Coupon
- func IDNotIn(ids ...string) predicate.Coupon
- func MaxRedemptions(v int) predicate.Coupon
- func MaxRedemptionsEQ(v int) predicate.Coupon
- func MaxRedemptionsGT(v int) predicate.Coupon
- func MaxRedemptionsGTE(v int) predicate.Coupon
- func MaxRedemptionsIn(vs ...int) predicate.Coupon
- func MaxRedemptionsIsNil() predicate.Coupon
- func MaxRedemptionsLT(v int) predicate.Coupon
- func MaxRedemptionsLTE(v int) predicate.Coupon
- func MaxRedemptionsNEQ(v int) predicate.Coupon
- func MaxRedemptionsNotIn(vs ...int) predicate.Coupon
- func MaxRedemptionsNotNil() predicate.Coupon
- func MetadataIsNil() predicate.Coupon
- func MetadataNotNil() predicate.Coupon
- func Name(v string) predicate.Coupon
- func NameContains(v string) predicate.Coupon
- func NameContainsFold(v string) predicate.Coupon
- func NameEQ(v string) predicate.Coupon
- func NameEqualFold(v string) predicate.Coupon
- func NameGT(v string) predicate.Coupon
- func NameGTE(v string) predicate.Coupon
- func NameHasPrefix(v string) predicate.Coupon
- func NameHasSuffix(v string) predicate.Coupon
- func NameIn(vs ...string) predicate.Coupon
- func NameLT(v string) predicate.Coupon
- func NameLTE(v string) predicate.Coupon
- func NameNEQ(v string) predicate.Coupon
- func NameNotIn(vs ...string) predicate.Coupon
- func Not(p predicate.Coupon) predicate.Coupon
- func Or(predicates ...predicate.Coupon) predicate.Coupon
- func PercentageOff(v decimal.Decimal) predicate.Coupon
- func PercentageOffEQ(v decimal.Decimal) predicate.Coupon
- func PercentageOffGT(v decimal.Decimal) predicate.Coupon
- func PercentageOffGTE(v decimal.Decimal) predicate.Coupon
- func PercentageOffIn(vs ...decimal.Decimal) predicate.Coupon
- func PercentageOffIsNil() predicate.Coupon
- func PercentageOffLT(v decimal.Decimal) predicate.Coupon
- func PercentageOffLTE(v decimal.Decimal) predicate.Coupon
- func PercentageOffNEQ(v decimal.Decimal) predicate.Coupon
- func PercentageOffNotIn(vs ...decimal.Decimal) predicate.Coupon
- func PercentageOffNotNil() predicate.Coupon
- func RedeemAfter(v time.Time) predicate.Coupon
- func RedeemAfterEQ(v time.Time) predicate.Coupon
- func RedeemAfterGT(v time.Time) predicate.Coupon
- func RedeemAfterGTE(v time.Time) predicate.Coupon
- func RedeemAfterIn(vs ...time.Time) predicate.Coupon
- func RedeemAfterIsNil() predicate.Coupon
- func RedeemAfterLT(v time.Time) predicate.Coupon
- func RedeemAfterLTE(v time.Time) predicate.Coupon
- func RedeemAfterNEQ(v time.Time) predicate.Coupon
- func RedeemAfterNotIn(vs ...time.Time) predicate.Coupon
- func RedeemAfterNotNil() predicate.Coupon
- func RedeemBefore(v time.Time) predicate.Coupon
- func RedeemBeforeEQ(v time.Time) predicate.Coupon
- func RedeemBeforeGT(v time.Time) predicate.Coupon
- func RedeemBeforeGTE(v time.Time) predicate.Coupon
- func RedeemBeforeIn(vs ...time.Time) predicate.Coupon
- func RedeemBeforeIsNil() predicate.Coupon
- func RedeemBeforeLT(v time.Time) predicate.Coupon
- func RedeemBeforeLTE(v time.Time) predicate.Coupon
- func RedeemBeforeNEQ(v time.Time) predicate.Coupon
- func RedeemBeforeNotIn(vs ...time.Time) predicate.Coupon
- func RedeemBeforeNotNil() predicate.Coupon
- func RulesIsNil() predicate.Coupon
- func RulesNotNil() predicate.Coupon
- func Status(v string) predicate.Coupon
- func StatusContains(v string) predicate.Coupon
- func StatusContainsFold(v string) predicate.Coupon
- func StatusEQ(v string) predicate.Coupon
- func StatusEqualFold(v string) predicate.Coupon
- func StatusGT(v string) predicate.Coupon
- func StatusGTE(v string) predicate.Coupon
- func StatusHasPrefix(v string) predicate.Coupon
- func StatusHasSuffix(v string) predicate.Coupon
- func StatusIn(vs ...string) predicate.Coupon
- func StatusLT(v string) predicate.Coupon
- func StatusLTE(v string) predicate.Coupon
- func StatusNEQ(v string) predicate.Coupon
- func StatusNotIn(vs ...string) predicate.Coupon
- func TenantID(v string) predicate.Coupon
- func TenantIDContains(v string) predicate.Coupon
- func TenantIDContainsFold(v string) predicate.Coupon
- func TenantIDEQ(v string) predicate.Coupon
- func TenantIDEqualFold(v string) predicate.Coupon
- func TenantIDGT(v string) predicate.Coupon
- func TenantIDGTE(v string) predicate.Coupon
- func TenantIDHasPrefix(v string) predicate.Coupon
- func TenantIDHasSuffix(v string) predicate.Coupon
- func TenantIDIn(vs ...string) predicate.Coupon
- func TenantIDLT(v string) predicate.Coupon
- func TenantIDLTE(v string) predicate.Coupon
- func TenantIDNEQ(v string) predicate.Coupon
- func TenantIDNotIn(vs ...string) predicate.Coupon
- func TotalRedemptions(v int) predicate.Coupon
- func TotalRedemptionsEQ(v int) predicate.Coupon
- func TotalRedemptionsGT(v int) predicate.Coupon
- func TotalRedemptionsGTE(v int) predicate.Coupon
- func TotalRedemptionsIn(vs ...int) predicate.Coupon
- func TotalRedemptionsLT(v int) predicate.Coupon
- func TotalRedemptionsLTE(v int) predicate.Coupon
- func TotalRedemptionsNEQ(v int) predicate.Coupon
- func TotalRedemptionsNotIn(vs ...int) predicate.Coupon
- func Type(v string) predicate.Coupon
- func TypeContains(v string) predicate.Coupon
- func TypeContainsFold(v string) predicate.Coupon
- func TypeEQ(v string) predicate.Coupon
- func TypeEqualFold(v string) predicate.Coupon
- func TypeGT(v string) predicate.Coupon
- func TypeGTE(v string) predicate.Coupon
- func TypeHasPrefix(v string) predicate.Coupon
- func TypeHasSuffix(v string) predicate.Coupon
- func TypeIn(vs ...string) predicate.Coupon
- func TypeLT(v string) predicate.Coupon
- func TypeLTE(v string) predicate.Coupon
- func TypeNEQ(v string) predicate.Coupon
- func TypeNotIn(vs ...string) predicate.Coupon
- func UpdatedAt(v time.Time) predicate.Coupon
- func UpdatedAtEQ(v time.Time) predicate.Coupon
- func UpdatedAtGT(v time.Time) predicate.Coupon
- func UpdatedAtGTE(v time.Time) predicate.Coupon
- func UpdatedAtIn(vs ...time.Time) predicate.Coupon
- func UpdatedAtLT(v time.Time) predicate.Coupon
- func UpdatedAtLTE(v time.Time) predicate.Coupon
- func UpdatedAtNEQ(v time.Time) predicate.Coupon
- func UpdatedAtNotIn(vs ...time.Time) predicate.Coupon
- func UpdatedBy(v string) predicate.Coupon
- func UpdatedByContains(v string) predicate.Coupon
- func UpdatedByContainsFold(v string) predicate.Coupon
- func UpdatedByEQ(v string) predicate.Coupon
- func UpdatedByEqualFold(v string) predicate.Coupon
- func UpdatedByGT(v string) predicate.Coupon
- func UpdatedByGTE(v string) predicate.Coupon
- func UpdatedByHasPrefix(v string) predicate.Coupon
- func UpdatedByHasSuffix(v string) predicate.Coupon
- func UpdatedByIn(vs ...string) predicate.Coupon
- func UpdatedByIsNil() predicate.Coupon
- func UpdatedByLT(v string) predicate.Coupon
- func UpdatedByLTE(v string) predicate.Coupon
- func UpdatedByNEQ(v string) predicate.Coupon
- func UpdatedByNotIn(vs ...string) predicate.Coupon
- func UpdatedByNotNil() predicate.Coupon
- func ValidColumn(column string) bool
- type OrderOption
- func ByAmountOff(opts ...sql.OrderTermOption) OrderOption
- func ByCadence(opts ...sql.OrderTermOption) OrderOption
- func ByCouponApplications(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCouponApplicationsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCouponAssociations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByCouponAssociationsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByCurrency(opts ...sql.OrderTermOption) OrderOption
- func ByDurationInPeriods(opts ...sql.OrderTermOption) OrderOption
- func ByEnvironmentID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMaxRedemptions(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByPercentageOff(opts ...sql.OrderTermOption) OrderOption
- func ByRedeemAfter(opts ...sql.OrderTermOption) OrderOption
- func ByRedeemBefore(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByTotalRedemptions(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the coupon type in the database. Label = "coupon" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTenantID holds the string denoting the tenant_id field in the database. FieldTenantID = "tenant_id" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // 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" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldEnvironmentID holds the string denoting the environment_id field in the database. FieldEnvironmentID = "environment_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldRedeemAfter holds the string denoting the redeem_after field in the database. FieldRedeemAfter = "redeem_after" // FieldRedeemBefore holds the string denoting the redeem_before field in the database. FieldRedeemBefore = "redeem_before" // FieldMaxRedemptions holds the string denoting the max_redemptions field in the database. FieldMaxRedemptions = "max_redemptions" // FieldTotalRedemptions holds the string denoting the total_redemptions field in the database. FieldTotalRedemptions = "total_redemptions" // FieldRules holds the string denoting the rules field in the database. FieldRules = "rules" // FieldAmountOff holds the string denoting the amount_off field in the database. FieldAmountOff = "amount_off" // FieldPercentageOff holds the string denoting the percentage_off field in the database. FieldPercentageOff = "percentage_off" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldCadence holds the string denoting the cadence field in the database. FieldCadence = "cadence" // FieldDurationInPeriods holds the string denoting the duration_in_periods field in the database. FieldDurationInPeriods = "duration_in_periods" // FieldCurrency holds the string denoting the currency field in the database. FieldCurrency = "currency" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // EdgeCouponAssociations holds the string denoting the coupon_associations edge name in mutations. EdgeCouponAssociations = "coupon_associations" // EdgeCouponApplications holds the string denoting the coupon_applications edge name in mutations. EdgeCouponApplications = "coupon_applications" // Table holds the table name of the coupon in the database. Table = "coupons" // CouponAssociationsTable is the table that holds the coupon_associations relation/edge. CouponAssociationsTable = "coupon_associations" // CouponAssociationsInverseTable is the table name for the CouponAssociation entity. // It exists in this package in order to avoid circular dependency with the "couponassociation" package. CouponAssociationsInverseTable = "coupon_associations" // CouponAssociationsColumn is the table column denoting the coupon_associations relation/edge. CouponAssociationsColumn = "coupon_id" // CouponApplicationsTable is the table that holds the coupon_applications relation/edge. CouponApplicationsTable = "coupon_applications" // CouponApplicationsInverseTable is the table name for the CouponApplication entity. // It exists in this package in order to avoid circular dependency with the "couponapplication" package. CouponApplicationsInverseTable = "coupon_applications" // CouponApplicationsColumn is the table column denoting the coupon_applications relation/edge. CouponApplicationsColumn = "coupon_id" )
Variables ¶
var ( // TenantIDValidator is a validator for the "tenant_id" field. It is called by the builders before save. TenantIDValidator func(string) error // DefaultStatus holds the default value on creation for the "status" field. DefaultStatus string // 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 // DefaultEnvironmentID holds the default value on creation for the "environment_id" field. DefaultEnvironmentID string // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error // DefaultTotalRedemptions holds the default value on creation for the "total_redemptions" field. DefaultTotalRedemptions int // DefaultAmountOff holds the default value on creation for the "amount_off" field. DefaultAmountOff decimal.Decimal // DefaultPercentageOff holds the default value on creation for the "percentage_off" field. DefaultPercentageOff decimal.Decimal // DefaultType holds the default value on creation for the "type" field. DefaultType string // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // DefaultCadence holds the default value on creation for the "cadence" field. DefaultCadence string // CadenceValidator is a validator for the "cadence" field. It is called by the builders before save. CadenceValidator func(string) error )
var Columns = []string{ FieldID, FieldTenantID, FieldStatus, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldEnvironmentID, FieldName, FieldRedeemAfter, FieldRedeemBefore, FieldMaxRedemptions, FieldTotalRedemptions, FieldRules, FieldAmountOff, FieldPercentageOff, FieldType, FieldCadence, FieldDurationInPeriods, FieldCurrency, FieldMetadata, }
Columns holds all SQL columns for coupon fields.
Functions ¶
func AmountOff ¶
AmountOff applies equality check predicate on the "amount_off" field. It's identical to AmountOffEQ.
func AmountOffEQ ¶
AmountOffEQ applies the EQ predicate on the "amount_off" field.
func AmountOffGT ¶
AmountOffGT applies the GT predicate on the "amount_off" field.
func AmountOffGTE ¶
AmountOffGTE applies the GTE predicate on the "amount_off" field.
func AmountOffIn ¶
AmountOffIn applies the In predicate on the "amount_off" field.
func AmountOffIsNil ¶
AmountOffIsNil applies the IsNil predicate on the "amount_off" field.
func AmountOffLT ¶
AmountOffLT applies the LT predicate on the "amount_off" field.
func AmountOffLTE ¶
AmountOffLTE applies the LTE predicate on the "amount_off" field.
func AmountOffNEQ ¶
AmountOffNEQ applies the NEQ predicate on the "amount_off" field.
func AmountOffNotIn ¶
AmountOffNotIn applies the NotIn predicate on the "amount_off" field.
func AmountOffNotNil ¶
AmountOffNotNil applies the NotNil predicate on the "amount_off" field.
func Cadence ¶
Cadence applies equality check predicate on the "cadence" field. It's identical to CadenceEQ.
func CadenceContains ¶
CadenceContains applies the Contains predicate on the "cadence" field.
func CadenceContainsFold ¶
CadenceContainsFold applies the ContainsFold predicate on the "cadence" field.
func CadenceEqualFold ¶
CadenceEqualFold applies the EqualFold predicate on the "cadence" field.
func CadenceGTE ¶
CadenceGTE applies the GTE predicate on the "cadence" field.
func CadenceHasPrefix ¶
CadenceHasPrefix applies the HasPrefix predicate on the "cadence" field.
func CadenceHasSuffix ¶
CadenceHasSuffix applies the HasSuffix predicate on the "cadence" field.
func CadenceLTE ¶
CadenceLTE applies the LTE predicate on the "cadence" field.
func CadenceNEQ ¶
CadenceNEQ applies the NEQ predicate on the "cadence" field.
func CadenceNotIn ¶
CadenceNotIn applies the NotIn predicate on the "cadence" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func Currency ¶
Currency applies equality check predicate on the "currency" field. It's identical to CurrencyEQ.
func CurrencyContains ¶
CurrencyContains applies the Contains predicate on the "currency" field.
func CurrencyContainsFold ¶
CurrencyContainsFold applies the ContainsFold predicate on the "currency" field.
func CurrencyEQ ¶
CurrencyEQ applies the EQ predicate on the "currency" field.
func CurrencyEqualFold ¶
CurrencyEqualFold applies the EqualFold predicate on the "currency" field.
func CurrencyGT ¶
CurrencyGT applies the GT predicate on the "currency" field.
func CurrencyGTE ¶
CurrencyGTE applies the GTE predicate on the "currency" field.
func CurrencyHasPrefix ¶
CurrencyHasPrefix applies the HasPrefix predicate on the "currency" field.
func CurrencyHasSuffix ¶
CurrencyHasSuffix applies the HasSuffix predicate on the "currency" field.
func CurrencyIn ¶
CurrencyIn applies the In predicate on the "currency" field.
func CurrencyIsNil ¶
CurrencyIsNil applies the IsNil predicate on the "currency" field.
func CurrencyLT ¶
CurrencyLT applies the LT predicate on the "currency" field.
func CurrencyLTE ¶
CurrencyLTE applies the LTE predicate on the "currency" field.
func CurrencyNEQ ¶
CurrencyNEQ applies the NEQ predicate on the "currency" field.
func CurrencyNotIn ¶
CurrencyNotIn applies the NotIn predicate on the "currency" field.
func CurrencyNotNil ¶
CurrencyNotNil applies the NotNil predicate on the "currency" field.
func DurationInPeriods ¶
DurationInPeriods applies equality check predicate on the "duration_in_periods" field. It's identical to DurationInPeriodsEQ.
func DurationInPeriodsEQ ¶
DurationInPeriodsEQ applies the EQ predicate on the "duration_in_periods" field.
func DurationInPeriodsGT ¶
DurationInPeriodsGT applies the GT predicate on the "duration_in_periods" field.
func DurationInPeriodsGTE ¶
DurationInPeriodsGTE applies the GTE predicate on the "duration_in_periods" field.
func DurationInPeriodsIn ¶
DurationInPeriodsIn applies the In predicate on the "duration_in_periods" field.
func DurationInPeriodsIsNil ¶
DurationInPeriodsIsNil applies the IsNil predicate on the "duration_in_periods" field.
func DurationInPeriodsLT ¶
DurationInPeriodsLT applies the LT predicate on the "duration_in_periods" field.
func DurationInPeriodsLTE ¶
DurationInPeriodsLTE applies the LTE predicate on the "duration_in_periods" field.
func DurationInPeriodsNEQ ¶
DurationInPeriodsNEQ applies the NEQ predicate on the "duration_in_periods" field.
func DurationInPeriodsNotIn ¶
DurationInPeriodsNotIn applies the NotIn predicate on the "duration_in_periods" field.
func DurationInPeriodsNotNil ¶
DurationInPeriodsNotNil applies the NotNil predicate on the "duration_in_periods" field.
func EnvironmentID ¶
EnvironmentID applies equality check predicate on the "environment_id" field. It's identical to EnvironmentIDEQ.
func EnvironmentIDContains ¶
EnvironmentIDContains applies the Contains predicate on the "environment_id" field.
func EnvironmentIDContainsFold ¶
EnvironmentIDContainsFold applies the ContainsFold predicate on the "environment_id" field.
func EnvironmentIDEQ ¶
EnvironmentIDEQ applies the EQ predicate on the "environment_id" field.
func EnvironmentIDEqualFold ¶
EnvironmentIDEqualFold applies the EqualFold predicate on the "environment_id" field.
func EnvironmentIDGT ¶
EnvironmentIDGT applies the GT predicate on the "environment_id" field.
func EnvironmentIDGTE ¶
EnvironmentIDGTE applies the GTE predicate on the "environment_id" field.
func EnvironmentIDHasPrefix ¶
EnvironmentIDHasPrefix applies the HasPrefix predicate on the "environment_id" field.
func EnvironmentIDHasSuffix ¶
EnvironmentIDHasSuffix applies the HasSuffix predicate on the "environment_id" field.
func EnvironmentIDIn ¶
EnvironmentIDIn applies the In predicate on the "environment_id" field.
func EnvironmentIDIsNil ¶
EnvironmentIDIsNil applies the IsNil predicate on the "environment_id" field.
func EnvironmentIDLT ¶
EnvironmentIDLT applies the LT predicate on the "environment_id" field.
func EnvironmentIDLTE ¶
EnvironmentIDLTE applies the LTE predicate on the "environment_id" field.
func EnvironmentIDNEQ ¶
EnvironmentIDNEQ applies the NEQ predicate on the "environment_id" field.
func EnvironmentIDNotIn ¶
EnvironmentIDNotIn applies the NotIn predicate on the "environment_id" field.
func EnvironmentIDNotNil ¶
EnvironmentIDNotNil applies the NotNil predicate on the "environment_id" field.
func HasCouponApplications ¶
HasCouponApplications applies the HasEdge predicate on the "coupon_applications" edge.
func HasCouponApplicationsWith ¶
func HasCouponApplicationsWith(preds ...predicate.CouponApplication) predicate.Coupon
HasCouponApplicationsWith applies the HasEdge predicate on the "coupon_applications" edge with a given conditions (other predicates).
func HasCouponAssociations ¶
HasCouponAssociations applies the HasEdge predicate on the "coupon_associations" edge.
func HasCouponAssociationsWith ¶
func HasCouponAssociationsWith(preds ...predicate.CouponAssociation) predicate.Coupon
HasCouponAssociationsWith applies the HasEdge predicate on the "coupon_associations" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func MaxRedemptions ¶
MaxRedemptions applies equality check predicate on the "max_redemptions" field. It's identical to MaxRedemptionsEQ.
func MaxRedemptionsEQ ¶
MaxRedemptionsEQ applies the EQ predicate on the "max_redemptions" field.
func MaxRedemptionsGT ¶
MaxRedemptionsGT applies the GT predicate on the "max_redemptions" field.
func MaxRedemptionsGTE ¶
MaxRedemptionsGTE applies the GTE predicate on the "max_redemptions" field.
func MaxRedemptionsIn ¶
MaxRedemptionsIn applies the In predicate on the "max_redemptions" field.
func MaxRedemptionsIsNil ¶
MaxRedemptionsIsNil applies the IsNil predicate on the "max_redemptions" field.
func MaxRedemptionsLT ¶
MaxRedemptionsLT applies the LT predicate on the "max_redemptions" field.
func MaxRedemptionsLTE ¶
MaxRedemptionsLTE applies the LTE predicate on the "max_redemptions" field.
func MaxRedemptionsNEQ ¶
MaxRedemptionsNEQ applies the NEQ predicate on the "max_redemptions" field.
func MaxRedemptionsNotIn ¶
MaxRedemptionsNotIn applies the NotIn predicate on the "max_redemptions" field.
func MaxRedemptionsNotNil ¶
MaxRedemptionsNotNil applies the NotNil predicate on the "max_redemptions" field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func PercentageOff ¶
PercentageOff applies equality check predicate on the "percentage_off" field. It's identical to PercentageOffEQ.
func PercentageOffEQ ¶
PercentageOffEQ applies the EQ predicate on the "percentage_off" field.
func PercentageOffGT ¶
PercentageOffGT applies the GT predicate on the "percentage_off" field.
func PercentageOffGTE ¶
PercentageOffGTE applies the GTE predicate on the "percentage_off" field.
func PercentageOffIn ¶
PercentageOffIn applies the In predicate on the "percentage_off" field.
func PercentageOffIsNil ¶
PercentageOffIsNil applies the IsNil predicate on the "percentage_off" field.
func PercentageOffLT ¶
PercentageOffLT applies the LT predicate on the "percentage_off" field.
func PercentageOffLTE ¶
PercentageOffLTE applies the LTE predicate on the "percentage_off" field.
func PercentageOffNEQ ¶
PercentageOffNEQ applies the NEQ predicate on the "percentage_off" field.
func PercentageOffNotIn ¶
PercentageOffNotIn applies the NotIn predicate on the "percentage_off" field.
func PercentageOffNotNil ¶
PercentageOffNotNil applies the NotNil predicate on the "percentage_off" field.
func RedeemAfter ¶
RedeemAfter applies equality check predicate on the "redeem_after" field. It's identical to RedeemAfterEQ.
func RedeemAfterEQ ¶
RedeemAfterEQ applies the EQ predicate on the "redeem_after" field.
func RedeemAfterGT ¶
RedeemAfterGT applies the GT predicate on the "redeem_after" field.
func RedeemAfterGTE ¶
RedeemAfterGTE applies the GTE predicate on the "redeem_after" field.
func RedeemAfterIn ¶
RedeemAfterIn applies the In predicate on the "redeem_after" field.
func RedeemAfterIsNil ¶
RedeemAfterIsNil applies the IsNil predicate on the "redeem_after" field.
func RedeemAfterLT ¶
RedeemAfterLT applies the LT predicate on the "redeem_after" field.
func RedeemAfterLTE ¶
RedeemAfterLTE applies the LTE predicate on the "redeem_after" field.
func RedeemAfterNEQ ¶
RedeemAfterNEQ applies the NEQ predicate on the "redeem_after" field.
func RedeemAfterNotIn ¶
RedeemAfterNotIn applies the NotIn predicate on the "redeem_after" field.
func RedeemAfterNotNil ¶
RedeemAfterNotNil applies the NotNil predicate on the "redeem_after" field.
func RedeemBefore ¶
RedeemBefore applies equality check predicate on the "redeem_before" field. It's identical to RedeemBeforeEQ.
func RedeemBeforeEQ ¶
RedeemBeforeEQ applies the EQ predicate on the "redeem_before" field.
func RedeemBeforeGT ¶
RedeemBeforeGT applies the GT predicate on the "redeem_before" field.
func RedeemBeforeGTE ¶
RedeemBeforeGTE applies the GTE predicate on the "redeem_before" field.
func RedeemBeforeIn ¶
RedeemBeforeIn applies the In predicate on the "redeem_before" field.
func RedeemBeforeIsNil ¶
RedeemBeforeIsNil applies the IsNil predicate on the "redeem_before" field.
func RedeemBeforeLT ¶
RedeemBeforeLT applies the LT predicate on the "redeem_before" field.
func RedeemBeforeLTE ¶
RedeemBeforeLTE applies the LTE predicate on the "redeem_before" field.
func RedeemBeforeNEQ ¶
RedeemBeforeNEQ applies the NEQ predicate on the "redeem_before" field.
func RedeemBeforeNotIn ¶
RedeemBeforeNotIn applies the NotIn predicate on the "redeem_before" field.
func RedeemBeforeNotNil ¶
RedeemBeforeNotNil applies the NotNil predicate on the "redeem_before" field.
func RulesIsNil ¶
RulesIsNil applies the IsNil predicate on the "rules" field.
func RulesNotNil ¶
RulesNotNil applies the NotNil predicate on the "rules" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func TenantID ¶
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDContains ¶
TenantIDContains applies the Contains predicate on the "tenant_id" field.
func TenantIDContainsFold ¶
TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.
func TenantIDEQ ¶
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDEqualFold ¶
TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.
func TenantIDGT ¶
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDHasPrefix ¶
TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.
func TenantIDHasSuffix ¶
TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.
func TenantIDIn ¶
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
func TotalRedemptions ¶
TotalRedemptions applies equality check predicate on the "total_redemptions" field. It's identical to TotalRedemptionsEQ.
func TotalRedemptionsEQ ¶
TotalRedemptionsEQ applies the EQ predicate on the "total_redemptions" field.
func TotalRedemptionsGT ¶
TotalRedemptionsGT applies the GT predicate on the "total_redemptions" field.
func TotalRedemptionsGTE ¶
TotalRedemptionsGTE applies the GTE predicate on the "total_redemptions" field.
func TotalRedemptionsIn ¶
TotalRedemptionsIn applies the In predicate on the "total_redemptions" field.
func TotalRedemptionsLT ¶
TotalRedemptionsLT applies the LT predicate on the "total_redemptions" field.
func TotalRedemptionsLTE ¶
TotalRedemptionsLTE applies the LTE predicate on the "total_redemptions" field.
func TotalRedemptionsNEQ ¶
TotalRedemptionsNEQ applies the NEQ predicate on the "total_redemptions" field.
func TotalRedemptionsNotIn ¶
TotalRedemptionsNotIn applies the NotIn predicate on the "total_redemptions" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" 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 Coupon queries.
func ByAmountOff ¶
func ByAmountOff(opts ...sql.OrderTermOption) OrderOption
ByAmountOff orders the results by the amount_off field.
func ByCadence ¶
func ByCadence(opts ...sql.OrderTermOption) OrderOption
ByCadence orders the results by the cadence field.
func ByCouponApplications ¶
func ByCouponApplications(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCouponApplications orders the results by coupon_applications terms.
func ByCouponApplicationsCount ¶
func ByCouponApplicationsCount(opts ...sql.OrderTermOption) OrderOption
ByCouponApplicationsCount orders the results by coupon_applications count.
func ByCouponAssociations ¶
func ByCouponAssociations(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByCouponAssociations orders the results by coupon_associations terms.
func ByCouponAssociationsCount ¶
func ByCouponAssociationsCount(opts ...sql.OrderTermOption) OrderOption
ByCouponAssociationsCount orders the results by coupon_associations count.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByCreatedBy ¶
func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
ByCreatedBy orders the results by the created_by field.
func ByCurrency ¶
func ByCurrency(opts ...sql.OrderTermOption) OrderOption
ByCurrency orders the results by the currency field.
func ByDurationInPeriods ¶
func ByDurationInPeriods(opts ...sql.OrderTermOption) OrderOption
ByDurationInPeriods orders the results by the duration_in_periods field.
func ByEnvironmentID ¶
func ByEnvironmentID(opts ...sql.OrderTermOption) OrderOption
ByEnvironmentID orders the results by the environment_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMaxRedemptions ¶
func ByMaxRedemptions(opts ...sql.OrderTermOption) OrderOption
ByMaxRedemptions orders the results by the max_redemptions field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByPercentageOff ¶
func ByPercentageOff(opts ...sql.OrderTermOption) OrderOption
ByPercentageOff orders the results by the percentage_off field.
func ByRedeemAfter ¶
func ByRedeemAfter(opts ...sql.OrderTermOption) OrderOption
ByRedeemAfter orders the results by the redeem_after field.
func ByRedeemBefore ¶
func ByRedeemBefore(opts ...sql.OrderTermOption) OrderOption
ByRedeemBefore orders the results by the redeem_before field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTenantID ¶
func ByTenantID(opts ...sql.OrderTermOption) OrderOption
ByTenantID orders the results by the tenant_id field.
func ByTotalRedemptions ¶
func ByTotalRedemptions(opts ...sql.OrderTermOption) OrderOption
ByTotalRedemptions orders the results by the total_redemptions field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.