proxyrechargepromotiontier

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for proxyrechargepromotiontier fields.

Functions

func Amount

Amount applies equality check predicate on the "amount" field. It's identical to AmountEQ.

func AmountEQ

AmountEQ applies the EQ predicate on the "amount" field.

func AmountGT

AmountGT applies the GT predicate on the "amount" field.

func AmountGTE

AmountGTE applies the GTE predicate on the "amount" field.

func AmountIn

AmountIn applies the In predicate on the "amount" field.

func AmountLT

AmountLT applies the LT predicate on the "amount" field.

func AmountLTE

AmountLTE applies the LTE predicate on the "amount" field.

func AmountNEQ

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

And groups predicates with the AND operator between them.

func Bonus

Bonus applies equality check predicate on the "bonus" field. It's identical to BonusEQ.

func BonusEQ

BonusEQ applies the EQ predicate on the "bonus" field.

func BonusGT

BonusGT applies the GT predicate on the "bonus" field.

func BonusGTE

BonusGTE applies the GTE predicate on the "bonus" field.

func BonusIn

BonusIn applies the In predicate on the "bonus" field.

func BonusLT

BonusLT applies the LT predicate on the "bonus" field.

func BonusLTE

BonusLTE applies the LTE predicate on the "bonus" field.

func BonusNEQ

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

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

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

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

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

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

func Enable

Enable applies equality check predicate on the "enable" field. It's identical to EnableEQ.

func EnableEQ

EnableEQ applies the EQ predicate on the "enable" field.

func EnableNEQ

EnableNEQ applies the NEQ predicate on the "enable" field.

func HasPromotion

HasPromotion applies the HasEdge predicate on the "promotion" edge.

func HasPromotionWith

HasPromotionWith applies the HasEdge predicate on the "promotion" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

IDNotIn applies the NotIn predicate on the ID field.

func LabelContains

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

LabelEQ applies the EQ predicate on the "label" field.

func LabelEqualFold

LabelEqualFold applies the EqualFold predicate on the "label" field.

func LabelGT

LabelGT applies the GT predicate on the "label" field.

func LabelGTE

LabelGTE applies the GTE predicate on the "label" field.

func LabelHasPrefix

LabelHasPrefix applies the HasPrefix predicate on the "label" field.

func LabelHasSuffix

LabelHasSuffix applies the HasSuffix predicate on the "label" field.

func LabelIn

LabelIn applies the In predicate on the "label" field.

func LabelLT

LabelLT applies the LT predicate on the "label" field.

func LabelLTE

LabelLTE applies the LTE predicate on the "label" field.

func LabelNEQ

LabelNEQ applies the NEQ predicate on the "label" field.

func LabelNotIn

LabelNotIn applies the NotIn predicate on the "label" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func PromotionID

PromotionID applies equality check predicate on the "promotion_id" field. It's identical to PromotionIDEQ.

func PromotionIDEQ

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

Sort applies equality check predicate on the "sort" field. It's identical to SortEQ.

func SortEQ

SortEQ applies the EQ predicate on the "sort" field.

func SortGT

SortGT applies the GT predicate on the "sort" field.

func SortGTE

SortGTE applies the GTE predicate on the "sort" field.

func SortIn

SortIn applies the In predicate on the "sort" field.

func SortLT

SortLT applies the LT predicate on the "sort" field.

func SortLTE

SortLTE applies the LTE predicate on the "sort" field.

func SortNEQ

SortNEQ applies the NEQ predicate on the "sort" field.

func SortNotIn

SortNotIn applies the NotIn predicate on the "sort" 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

func UpdatedAtIn(vs ...time.Time) predicate.ProxyRechargePromotionTier

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

func UpdatedAtNotIn(vs ...time.Time) predicate.ProxyRechargePromotionTier

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the 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.

Jump to

Keyboard shortcuts

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