Documentation
¶
Index ¶
- Constants
- Variables
- func Amount(v int64) predicate.ProxyRechargePromotionTier
- func AmountEQ(v int64) predicate.ProxyRechargePromotionTier
- func AmountGT(v int64) predicate.ProxyRechargePromotionTier
- func AmountGTE(v int64) predicate.ProxyRechargePromotionTier
- func AmountIn(vs ...int64) predicate.ProxyRechargePromotionTier
- func AmountLT(v int64) predicate.ProxyRechargePromotionTier
- func AmountLTE(v int64) predicate.ProxyRechargePromotionTier
- func AmountNEQ(v int64) predicate.ProxyRechargePromotionTier
- func AmountNotIn(vs ...int64) predicate.ProxyRechargePromotionTier
- func And(predicates ...predicate.ProxyRechargePromotionTier) predicate.ProxyRechargePromotionTier
- func Bonus(v int64) predicate.ProxyRechargePromotionTier
- func BonusEQ(v int64) predicate.ProxyRechargePromotionTier
- func BonusGT(v int64) predicate.ProxyRechargePromotionTier
- func BonusGTE(v int64) predicate.ProxyRechargePromotionTier
- func BonusIn(vs ...int64) predicate.ProxyRechargePromotionTier
- func BonusLT(v int64) predicate.ProxyRechargePromotionTier
- func BonusLTE(v int64) predicate.ProxyRechargePromotionTier
- func BonusNEQ(v int64) predicate.ProxyRechargePromotionTier
- func BonusNotIn(vs ...int64) predicate.ProxyRechargePromotionTier
- func CreatedAt(v time.Time) predicate.ProxyRechargePromotionTier
- func CreatedAtEQ(v time.Time) predicate.ProxyRechargePromotionTier
- func CreatedAtGT(v time.Time) predicate.ProxyRechargePromotionTier
- func CreatedAtGTE(v time.Time) predicate.ProxyRechargePromotionTier
- func CreatedAtIn(vs ...time.Time) predicate.ProxyRechargePromotionTier
- func CreatedAtLT(v time.Time) predicate.ProxyRechargePromotionTier
- func CreatedAtLTE(v time.Time) predicate.ProxyRechargePromotionTier
- func CreatedAtNEQ(v time.Time) predicate.ProxyRechargePromotionTier
- func CreatedAtNotIn(vs ...time.Time) predicate.ProxyRechargePromotionTier
- func Enable(v bool) predicate.ProxyRechargePromotionTier
- func EnableEQ(v bool) predicate.ProxyRechargePromotionTier
- func EnableNEQ(v bool) predicate.ProxyRechargePromotionTier
- func HasPromotion() predicate.ProxyRechargePromotionTier
- func HasPromotionWith(preds ...predicate.ProxyRechargePromotion) predicate.ProxyRechargePromotionTier
- func ID(id int64) predicate.ProxyRechargePromotionTier
- func IDEQ(id int64) predicate.ProxyRechargePromotionTier
- func IDGT(id int64) predicate.ProxyRechargePromotionTier
- func IDGTE(id int64) predicate.ProxyRechargePromotionTier
- func IDIn(ids ...int64) predicate.ProxyRechargePromotionTier
- func IDLT(id int64) predicate.ProxyRechargePromotionTier
- func IDLTE(id int64) predicate.ProxyRechargePromotionTier
- func IDNEQ(id int64) predicate.ProxyRechargePromotionTier
- func IDNotIn(ids ...int64) predicate.ProxyRechargePromotionTier
- func LabelContains(v string) predicate.ProxyRechargePromotionTier
- func LabelContainsFold(v string) predicate.ProxyRechargePromotionTier
- func LabelEQ(v string) predicate.ProxyRechargePromotionTier
- func LabelEqualFold(v string) predicate.ProxyRechargePromotionTier
- func LabelGT(v string) predicate.ProxyRechargePromotionTier
- func LabelGTE(v string) predicate.ProxyRechargePromotionTier
- func LabelHasPrefix(v string) predicate.ProxyRechargePromotionTier
- func LabelHasSuffix(v string) predicate.ProxyRechargePromotionTier
- func LabelIn(vs ...string) predicate.ProxyRechargePromotionTier
- func LabelLT(v string) predicate.ProxyRechargePromotionTier
- func LabelLTE(v string) predicate.ProxyRechargePromotionTier
- func LabelNEQ(v string) predicate.ProxyRechargePromotionTier
- func LabelNotIn(vs ...string) predicate.ProxyRechargePromotionTier
- func Not(p predicate.ProxyRechargePromotionTier) predicate.ProxyRechargePromotionTier
- func Or(predicates ...predicate.ProxyRechargePromotionTier) predicate.ProxyRechargePromotionTier
- func PromotionID(v int64) predicate.ProxyRechargePromotionTier
- func PromotionIDEQ(v int64) predicate.ProxyRechargePromotionTier
- func PromotionIDIn(vs ...int64) predicate.ProxyRechargePromotionTier
- func PromotionIDNEQ(v int64) predicate.ProxyRechargePromotionTier
- func PromotionIDNotIn(vs ...int64) predicate.ProxyRechargePromotionTier
- func Sort(v int32) predicate.ProxyRechargePromotionTier
- func SortEQ(v int32) predicate.ProxyRechargePromotionTier
- func SortGT(v int32) predicate.ProxyRechargePromotionTier
- func SortGTE(v int32) predicate.ProxyRechargePromotionTier
- func SortIn(vs ...int32) predicate.ProxyRechargePromotionTier
- func SortLT(v int32) predicate.ProxyRechargePromotionTier
- func SortLTE(v int32) predicate.ProxyRechargePromotionTier
- func SortNEQ(v int32) predicate.ProxyRechargePromotionTier
- func SortNotIn(vs ...int32) predicate.ProxyRechargePromotionTier
- func UpdatedAt(v time.Time) predicate.ProxyRechargePromotionTier
- func UpdatedAtEQ(v time.Time) predicate.ProxyRechargePromotionTier
- func UpdatedAtGT(v time.Time) predicate.ProxyRechargePromotionTier
- func UpdatedAtGTE(v time.Time) predicate.ProxyRechargePromotionTier
- func UpdatedAtIn(vs ...time.Time) predicate.ProxyRechargePromotionTier
- func UpdatedAtLT(v time.Time) predicate.ProxyRechargePromotionTier
- func UpdatedAtLTE(v time.Time) predicate.ProxyRechargePromotionTier
- func UpdatedAtNEQ(v time.Time) predicate.ProxyRechargePromotionTier
- func UpdatedAtNotIn(vs ...time.Time) predicate.ProxyRechargePromotionTier
- func ValidColumn(column string) bool
- type OrderOption
- func ByAmount(opts ...sql.OrderTermOption) OrderOption
- func ByBonus(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByEnable(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLabel(opts ...sql.OrderTermOption) OrderOption
- func ByPromotionField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPromotionID(opts ...sql.OrderTermOption) OrderOption
- func BySort(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the proxyrechargepromotiontier type in the database. Label = "proxy_recharge_promotion_tier" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldPromotionID holds the string denoting the promotion_id field in the database. FieldPromotionID = "promotion_id" // FieldAmount holds the string denoting the amount field in the database. FieldAmount = "amount" // FieldBonus holds the string denoting the bonus field in the database. FieldBonus = "bonus" // FieldLabel holds the string denoting the label field in the database. FieldLabel = "label" // FieldSort holds the string denoting the sort field in the database. FieldSort = "sort" // FieldEnable holds the string denoting the enable field in the database. FieldEnable = "enable" // 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" // EdgePromotion holds the string denoting the promotion edge name in mutations. EdgePromotion = "promotion" // Table holds the table name of the proxyrechargepromotiontier in the database. Table = "recharge_promotion_tier" // PromotionTable is the table that holds the promotion relation/edge. PromotionTable = "recharge_promotion_tier" // PromotionInverseTable is the table name for the ProxyRechargePromotion entity. // It exists in this package in order to avoid circular dependency with the "proxyrechargepromotion" package. PromotionInverseTable = "recharge_promotion" // PromotionColumn is the table column denoting the promotion relation/edge. PromotionColumn = "promotion_id" )
Variables ¶
var ( // DefaultAmount holds the default value on creation for the "amount" field. DefaultAmount int64 // DefaultBonus holds the default value on creation for the "bonus" field. DefaultBonus int64 // DefaultLabel holds the default value on creation for the "label" field. DefaultLabel string // DefaultSort holds the default value on creation for the "sort" field. DefaultSort int32 // DefaultEnable holds the default value on creation for the "enable" field. DefaultEnable bool // 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 // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(int64) error )
var Columns = []string{ FieldID, FieldPromotionID, FieldAmount, FieldBonus, FieldLabel, FieldSort, FieldEnable, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for proxyrechargepromotiontier fields.
Functions ¶
func Amount ¶
func Amount(v int64) predicate.ProxyRechargePromotionTier
Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.
func AmountEQ ¶
func AmountEQ(v int64) predicate.ProxyRechargePromotionTier
AmountEQ applies the EQ predicate on the "amount" field.
func AmountGT ¶
func AmountGT(v int64) predicate.ProxyRechargePromotionTier
AmountGT applies the GT predicate on the "amount" field.
func AmountGTE ¶
func AmountGTE(v int64) predicate.ProxyRechargePromotionTier
AmountGTE applies the GTE predicate on the "amount" field.
func AmountIn ¶
func AmountIn(vs ...int64) predicate.ProxyRechargePromotionTier
AmountIn applies the In predicate on the "amount" field.
func AmountLT ¶
func AmountLT(v int64) predicate.ProxyRechargePromotionTier
AmountLT applies the LT predicate on the "amount" field.
func AmountLTE ¶
func AmountLTE(v int64) predicate.ProxyRechargePromotionTier
AmountLTE applies the LTE predicate on the "amount" field.
func AmountNEQ ¶
func AmountNEQ(v int64) predicate.ProxyRechargePromotionTier
AmountNEQ applies the NEQ predicate on the "amount" field.
func AmountNotIn ¶
func AmountNotIn(vs ...int64) predicate.ProxyRechargePromotionTier
AmountNotIn applies the NotIn predicate on the "amount" field.
func And ¶
func And(predicates ...predicate.ProxyRechargePromotionTier) predicate.ProxyRechargePromotionTier
And groups predicates with the AND operator between them.
func Bonus ¶
func Bonus(v int64) predicate.ProxyRechargePromotionTier
Bonus applies equality check predicate on the "bonus" field. It's identical to BonusEQ.
func BonusEQ ¶
func BonusEQ(v int64) predicate.ProxyRechargePromotionTier
BonusEQ applies the EQ predicate on the "bonus" field.
func BonusGT ¶
func BonusGT(v int64) predicate.ProxyRechargePromotionTier
BonusGT applies the GT predicate on the "bonus" field.
func BonusGTE ¶
func BonusGTE(v int64) predicate.ProxyRechargePromotionTier
BonusGTE applies the GTE predicate on the "bonus" field.
func BonusIn ¶
func BonusIn(vs ...int64) predicate.ProxyRechargePromotionTier
BonusIn applies the In predicate on the "bonus" field.
func BonusLT ¶
func BonusLT(v int64) predicate.ProxyRechargePromotionTier
BonusLT applies the LT predicate on the "bonus" field.
func BonusLTE ¶
func BonusLTE(v int64) predicate.ProxyRechargePromotionTier
BonusLTE applies the LTE predicate on the "bonus" field.
func BonusNEQ ¶
func BonusNEQ(v int64) predicate.ProxyRechargePromotionTier
BonusNEQ applies the NEQ predicate on the "bonus" field.
func BonusNotIn ¶
func BonusNotIn(vs ...int64) predicate.ProxyRechargePromotionTier
BonusNotIn applies the NotIn predicate on the "bonus" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ProxyRechargePromotionTier
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ProxyRechargePromotionTier
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ProxyRechargePromotionTier
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ProxyRechargePromotionTier
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ProxyRechargePromotionTier
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ProxyRechargePromotionTier
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ProxyRechargePromotionTier
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ProxyRechargePromotionTier
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ProxyRechargePromotionTier
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Enable ¶
func Enable(v bool) predicate.ProxyRechargePromotionTier
Enable applies equality check predicate on the "enable" field. It's identical to EnableEQ.
func EnableEQ ¶
func EnableEQ(v bool) predicate.ProxyRechargePromotionTier
EnableEQ applies the EQ predicate on the "enable" field.
func EnableNEQ ¶
func EnableNEQ(v bool) predicate.ProxyRechargePromotionTier
EnableNEQ applies the NEQ predicate on the "enable" field.
func HasPromotion ¶
func HasPromotion() predicate.ProxyRechargePromotionTier
HasPromotion applies the HasEdge predicate on the "promotion" edge.
func HasPromotionWith ¶
func HasPromotionWith(preds ...predicate.ProxyRechargePromotion) predicate.ProxyRechargePromotionTier
HasPromotionWith applies the HasEdge predicate on the "promotion" edge with a given conditions (other predicates).
func ID ¶
func ID(id int64) predicate.ProxyRechargePromotionTier
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int64) predicate.ProxyRechargePromotionTier
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.ProxyRechargePromotionTier
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.ProxyRechargePromotionTier
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.ProxyRechargePromotionTier
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.ProxyRechargePromotionTier
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.ProxyRechargePromotionTier
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.ProxyRechargePromotionTier
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.ProxyRechargePromotionTier
IDNotIn applies the NotIn predicate on the ID field.
func LabelContains ¶
func LabelContains(v string) predicate.ProxyRechargePromotionTier
LabelContains applies the Contains predicate on the "label" field.
func LabelContainsFold ¶
func LabelContainsFold(v string) predicate.ProxyRechargePromotionTier
LabelContainsFold applies the ContainsFold predicate on the "label" field.
func LabelEQ ¶
func LabelEQ(v string) predicate.ProxyRechargePromotionTier
LabelEQ applies the EQ predicate on the "label" field.
func LabelEqualFold ¶
func LabelEqualFold(v string) predicate.ProxyRechargePromotionTier
LabelEqualFold applies the EqualFold predicate on the "label" field.
func LabelGT ¶
func LabelGT(v string) predicate.ProxyRechargePromotionTier
LabelGT applies the GT predicate on the "label" field.
func LabelGTE ¶
func LabelGTE(v string) predicate.ProxyRechargePromotionTier
LabelGTE applies the GTE predicate on the "label" field.
func LabelHasPrefix ¶
func LabelHasPrefix(v string) predicate.ProxyRechargePromotionTier
LabelHasPrefix applies the HasPrefix predicate on the "label" field.
func LabelHasSuffix ¶
func LabelHasSuffix(v string) predicate.ProxyRechargePromotionTier
LabelHasSuffix applies the HasSuffix predicate on the "label" field.
func LabelIn ¶
func LabelIn(vs ...string) predicate.ProxyRechargePromotionTier
LabelIn applies the In predicate on the "label" field.
func LabelLT ¶
func LabelLT(v string) predicate.ProxyRechargePromotionTier
LabelLT applies the LT predicate on the "label" field.
func LabelLTE ¶
func LabelLTE(v string) predicate.ProxyRechargePromotionTier
LabelLTE applies the LTE predicate on the "label" field.
func LabelNEQ ¶
func LabelNEQ(v string) predicate.ProxyRechargePromotionTier
LabelNEQ applies the NEQ predicate on the "label" field.
func LabelNotIn ¶
func LabelNotIn(vs ...string) predicate.ProxyRechargePromotionTier
LabelNotIn applies the NotIn predicate on the "label" field.
func Or ¶
func Or(predicates ...predicate.ProxyRechargePromotionTier) predicate.ProxyRechargePromotionTier
Or groups predicates with the OR operator between them.
func PromotionID ¶
func PromotionID(v int64) predicate.ProxyRechargePromotionTier
PromotionID applies equality check predicate on the "promotion_id" field. It's identical to PromotionIDEQ.
func PromotionIDEQ ¶
func PromotionIDEQ(v int64) predicate.ProxyRechargePromotionTier
PromotionIDEQ applies the EQ predicate on the "promotion_id" field.
func PromotionIDIn ¶
func PromotionIDIn(vs ...int64) predicate.ProxyRechargePromotionTier
PromotionIDIn applies the In predicate on the "promotion_id" field.
func PromotionIDNEQ ¶
func PromotionIDNEQ(v int64) predicate.ProxyRechargePromotionTier
PromotionIDNEQ applies the NEQ predicate on the "promotion_id" field.
func PromotionIDNotIn ¶
func PromotionIDNotIn(vs ...int64) predicate.ProxyRechargePromotionTier
PromotionIDNotIn applies the NotIn predicate on the "promotion_id" field.
func Sort ¶
func Sort(v int32) predicate.ProxyRechargePromotionTier
Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.
func SortEQ ¶
func SortEQ(v int32) predicate.ProxyRechargePromotionTier
SortEQ applies the EQ predicate on the "sort" field.
func SortGT ¶
func SortGT(v int32) predicate.ProxyRechargePromotionTier
SortGT applies the GT predicate on the "sort" field.
func SortGTE ¶
func SortGTE(v int32) predicate.ProxyRechargePromotionTier
SortGTE applies the GTE predicate on the "sort" field.
func SortIn ¶
func SortIn(vs ...int32) predicate.ProxyRechargePromotionTier
SortIn applies the In predicate on the "sort" field.
func SortLT ¶
func SortLT(v int32) predicate.ProxyRechargePromotionTier
SortLT applies the LT predicate on the "sort" field.
func SortLTE ¶
func SortLTE(v int32) predicate.ProxyRechargePromotionTier
SortLTE applies the LTE predicate on the "sort" field.
func SortNEQ ¶
func SortNEQ(v int32) predicate.ProxyRechargePromotionTier
SortNEQ applies the NEQ predicate on the "sort" field.
func SortNotIn ¶
func SortNotIn(vs ...int32) predicate.ProxyRechargePromotionTier
SortNotIn applies the NotIn predicate on the "sort" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ProxyRechargePromotionTier
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ProxyRechargePromotionTier
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ProxyRechargePromotionTier
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ProxyRechargePromotionTier
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ProxyRechargePromotionTier
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ProxyRechargePromotionTier
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ProxyRechargePromotionTier
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ProxyRechargePromotionTier
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ProxyRechargePromotionTier
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 ProxyRechargePromotionTier queries.
func ByAmount ¶
func ByAmount(opts ...sql.OrderTermOption) OrderOption
ByAmount orders the results by the amount field.
func ByBonus ¶
func ByBonus(opts ...sql.OrderTermOption) OrderOption
ByBonus orders the results by the bonus field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByEnable ¶
func ByEnable(opts ...sql.OrderTermOption) OrderOption
ByEnable orders the results by the enable field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLabel ¶
func ByLabel(opts ...sql.OrderTermOption) OrderOption
ByLabel orders the results by the label field.
func ByPromotionField ¶
func ByPromotionField(field string, opts ...sql.OrderTermOption) OrderOption
ByPromotionField orders the results by promotion field.
func ByPromotionID ¶
func ByPromotionID(opts ...sql.OrderTermOption) OrderOption
ByPromotionID orders the results by the promotion_id field.
func BySort ¶
func BySort(opts ...sql.OrderTermOption) OrderOption
BySort orders the results by the sort field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.