proxyrechargepromotion

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 proxyrechargepromotion type in the database.
	Label = "proxy_recharge_promotion"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldStartTime holds the string denoting the start_time field in the database.
	FieldStartTime = "start_time"
	// FieldEndTime holds the string denoting the end_time field in the database.
	FieldEndTime = "end_time"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldPriority holds the string denoting the priority field in the database.
	FieldPriority = "priority"
	// FieldStackMode holds the string denoting the stack_mode field in the database.
	FieldStackMode = "stack_mode"
	// FieldCustomBonusEnabled holds the string denoting the custom_bonus_enabled field in the database.
	FieldCustomBonusEnabled = "custom_bonus_enabled"
	// FieldCustomBonusPercent holds the string denoting the custom_bonus_percent field in the database.
	FieldCustomBonusPercent = "custom_bonus_percent"
	// FieldSort holds the string denoting the sort field in the database.
	FieldSort = "sort"
	// 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"
	// EdgeTiers holds the string denoting the tiers edge name in mutations.
	EdgeTiers = "tiers"
	// Table holds the table name of the proxyrechargepromotion in the database.
	Table = "recharge_promotion"
	// TiersTable is the table that holds the tiers relation/edge.
	TiersTable = "recharge_promotion_tier"
	// TiersInverseTable is the table name for the ProxyRechargePromotionTier entity.
	// It exists in this package in order to avoid circular dependency with the "proxyrechargepromotiontier" package.
	TiersInverseTable = "recharge_promotion_tier"
	// TiersColumn is the table column denoting the tiers relation/edge.
	TiersColumn = "promotion_id"
)

Variables

View Source
var (
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator func(string) error
	// DefaultDescription holds the default value on creation for the "description" field.
	DefaultDescription string
	// DefaultStartTime holds the default value on creation for the "start_time" field.
	DefaultStartTime int64
	// DefaultEndTime holds the default value on creation for the "end_time" field.
	DefaultEndTime int64
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus bool
	// DefaultPriority holds the default value on creation for the "priority" field.
	DefaultPriority int32
	// DefaultStackMode holds the default value on creation for the "stack_mode" field.
	DefaultStackMode int8
	// DefaultCustomBonusEnabled holds the default value on creation for the "custom_bonus_enabled" field.
	DefaultCustomBonusEnabled bool
	// DefaultCustomBonusPercent holds the default value on creation for the "custom_bonus_percent" field.
	DefaultCustomBonusPercent int32
	// DefaultSort holds the default value on creation for the "sort" field.
	DefaultSort int32
	// 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 proxyrechargepromotion fields.

Functions

func And

And groups predicates with the AND operator between them.

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

func CreatedAtGTE(v time.Time) predicate.ProxyRechargePromotion

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

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

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ProxyRechargePromotion

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ProxyRechargePromotion

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

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

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

func CustomBonusEnabled

func CustomBonusEnabled(v bool) predicate.ProxyRechargePromotion

CustomBonusEnabled applies equality check predicate on the "custom_bonus_enabled" field. It's identical to CustomBonusEnabledEQ.

func CustomBonusEnabledEQ

func CustomBonusEnabledEQ(v bool) predicate.ProxyRechargePromotion

CustomBonusEnabledEQ applies the EQ predicate on the "custom_bonus_enabled" field.

func CustomBonusEnabledNEQ

func CustomBonusEnabledNEQ(v bool) predicate.ProxyRechargePromotion

CustomBonusEnabledNEQ applies the NEQ predicate on the "custom_bonus_enabled" field.

func CustomBonusPercent

func CustomBonusPercent(v int32) predicate.ProxyRechargePromotion

CustomBonusPercent applies equality check predicate on the "custom_bonus_percent" field. It's identical to CustomBonusPercentEQ.

func CustomBonusPercentEQ

func CustomBonusPercentEQ(v int32) predicate.ProxyRechargePromotion

CustomBonusPercentEQ applies the EQ predicate on the "custom_bonus_percent" field.

func CustomBonusPercentGT

func CustomBonusPercentGT(v int32) predicate.ProxyRechargePromotion

CustomBonusPercentGT applies the GT predicate on the "custom_bonus_percent" field.

func CustomBonusPercentGTE

func CustomBonusPercentGTE(v int32) predicate.ProxyRechargePromotion

CustomBonusPercentGTE applies the GTE predicate on the "custom_bonus_percent" field.

func CustomBonusPercentIn

func CustomBonusPercentIn(vs ...int32) predicate.ProxyRechargePromotion

CustomBonusPercentIn applies the In predicate on the "custom_bonus_percent" field.

func CustomBonusPercentLT

func CustomBonusPercentLT(v int32) predicate.ProxyRechargePromotion

CustomBonusPercentLT applies the LT predicate on the "custom_bonus_percent" field.

func CustomBonusPercentLTE

func CustomBonusPercentLTE(v int32) predicate.ProxyRechargePromotion

CustomBonusPercentLTE applies the LTE predicate on the "custom_bonus_percent" field.

func CustomBonusPercentNEQ

func CustomBonusPercentNEQ(v int32) predicate.ProxyRechargePromotion

CustomBonusPercentNEQ applies the NEQ predicate on the "custom_bonus_percent" field.

func CustomBonusPercentNotIn

func CustomBonusPercentNotIn(vs ...int32) predicate.ProxyRechargePromotion

CustomBonusPercentNotIn applies the NotIn predicate on the "custom_bonus_percent" field.

func Description

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.ProxyRechargePromotion

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.ProxyRechargePromotion

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.ProxyRechargePromotion

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.ProxyRechargePromotion

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.ProxyRechargePromotion

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.ProxyRechargePromotion

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.ProxyRechargePromotion

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.ProxyRechargePromotion

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.ProxyRechargePromotion

DescriptionIn applies the In predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.ProxyRechargePromotion

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.ProxyRechargePromotion

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.ProxyRechargePromotion

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.ProxyRechargePromotion

DescriptionNotIn applies the NotIn predicate on the "description" field.

func EndTime

EndTime applies equality check predicate on the "end_time" field. It's identical to EndTimeEQ.

func EndTimeEQ

EndTimeEQ applies the EQ predicate on the "end_time" field.

func EndTimeGT

EndTimeGT applies the GT predicate on the "end_time" field.

func EndTimeGTE

EndTimeGTE applies the GTE predicate on the "end_time" field.

func EndTimeIn

func EndTimeIn(vs ...int64) predicate.ProxyRechargePromotion

EndTimeIn applies the In predicate on the "end_time" field.

func EndTimeLT

EndTimeLT applies the LT predicate on the "end_time" field.

func EndTimeLTE

EndTimeLTE applies the LTE predicate on the "end_time" field.

func EndTimeNEQ

EndTimeNEQ applies the NEQ predicate on the "end_time" field.

func EndTimeNotIn

func EndTimeNotIn(vs ...int64) predicate.ProxyRechargePromotion

EndTimeNotIn applies the NotIn predicate on the "end_time" field.

func HasTiers

HasTiers applies the HasEdge predicate on the "tiers" edge.

func HasTiersWith

HasTiersWith applies the HasEdge predicate on the "tiers" 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

func IDNotIn(ids ...int64) predicate.ProxyRechargePromotion

IDNotIn applies the NotIn predicate on the ID field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.ProxyRechargePromotion

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.ProxyRechargePromotion

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.ProxyRechargePromotion

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

NameGT applies the GT predicate on the "name" field.

func NameGTE

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.ProxyRechargePromotion

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.ProxyRechargePromotion

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

NameIn applies the In predicate on the "name" field.

func NameLT

NameLT applies the LT predicate on the "name" field.

func NameLTE

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.ProxyRechargePromotion

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Priority

Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.

func PriorityEQ

PriorityEQ applies the EQ predicate on the "priority" field.

func PriorityGT

PriorityGT applies the GT predicate on the "priority" field.

func PriorityGTE

func PriorityGTE(v int32) predicate.ProxyRechargePromotion

PriorityGTE applies the GTE predicate on the "priority" field.

func PriorityIn

func PriorityIn(vs ...int32) predicate.ProxyRechargePromotion

PriorityIn applies the In predicate on the "priority" field.

func PriorityLT

PriorityLT applies the LT predicate on the "priority" field.

func PriorityLTE

func PriorityLTE(v int32) predicate.ProxyRechargePromotion

PriorityLTE applies the LTE predicate on the "priority" field.

func PriorityNEQ

func PriorityNEQ(v int32) predicate.ProxyRechargePromotion

PriorityNEQ applies the NEQ predicate on the "priority" field.

func PriorityNotIn

func PriorityNotIn(vs ...int32) predicate.ProxyRechargePromotion

PriorityNotIn applies the NotIn predicate on the "priority" 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

func SortNotIn(vs ...int32) predicate.ProxyRechargePromotion

SortNotIn applies the NotIn predicate on the "sort" field.

func StackMode

StackMode applies equality check predicate on the "stack_mode" field. It's identical to StackModeEQ.

func StackModeEQ

func StackModeEQ(v int8) predicate.ProxyRechargePromotion

StackModeEQ applies the EQ predicate on the "stack_mode" field.

func StackModeGT

func StackModeGT(v int8) predicate.ProxyRechargePromotion

StackModeGT applies the GT predicate on the "stack_mode" field.

func StackModeGTE

func StackModeGTE(v int8) predicate.ProxyRechargePromotion

StackModeGTE applies the GTE predicate on the "stack_mode" field.

func StackModeIn

func StackModeIn(vs ...int8) predicate.ProxyRechargePromotion

StackModeIn applies the In predicate on the "stack_mode" field.

func StackModeLT

func StackModeLT(v int8) predicate.ProxyRechargePromotion

StackModeLT applies the LT predicate on the "stack_mode" field.

func StackModeLTE

func StackModeLTE(v int8) predicate.ProxyRechargePromotion

StackModeLTE applies the LTE predicate on the "stack_mode" field.

func StackModeNEQ

func StackModeNEQ(v int8) predicate.ProxyRechargePromotion

StackModeNEQ applies the NEQ predicate on the "stack_mode" field.

func StackModeNotIn

func StackModeNotIn(vs ...int8) predicate.ProxyRechargePromotion

StackModeNotIn applies the NotIn predicate on the "stack_mode" field.

func StartTime

StartTime applies equality check predicate on the "start_time" field. It's identical to StartTimeEQ.

func StartTimeEQ

func StartTimeEQ(v int64) predicate.ProxyRechargePromotion

StartTimeEQ applies the EQ predicate on the "start_time" field.

func StartTimeGT

func StartTimeGT(v int64) predicate.ProxyRechargePromotion

StartTimeGT applies the GT predicate on the "start_time" field.

func StartTimeGTE

func StartTimeGTE(v int64) predicate.ProxyRechargePromotion

StartTimeGTE applies the GTE predicate on the "start_time" field.

func StartTimeIn

func StartTimeIn(vs ...int64) predicate.ProxyRechargePromotion

StartTimeIn applies the In predicate on the "start_time" field.

func StartTimeLT

func StartTimeLT(v int64) predicate.ProxyRechargePromotion

StartTimeLT applies the LT predicate on the "start_time" field.

func StartTimeLTE

func StartTimeLTE(v int64) predicate.ProxyRechargePromotion

StartTimeLTE applies the LTE predicate on the "start_time" field.

func StartTimeNEQ

func StartTimeNEQ(v int64) predicate.ProxyRechargePromotion

StartTimeNEQ applies the NEQ predicate on the "start_time" field.

func StartTimeNotIn

func StartTimeNotIn(vs ...int64) predicate.ProxyRechargePromotion

StartTimeNotIn applies the NotIn predicate on the "start_time" field.

func Status

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusEQ

StatusEQ applies the EQ predicate on the "status" field.

func StatusNEQ

StatusNEQ applies the NEQ predicate on the "status" 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

func UpdatedAtGTE(v time.Time) predicate.ProxyRechargePromotion

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

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

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ProxyRechargePromotion

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ProxyRechargePromotion

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

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

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 ProxyRechargePromotion queries.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCustomBonusEnabled

func ByCustomBonusEnabled(opts ...sql.OrderTermOption) OrderOption

ByCustomBonusEnabled orders the results by the custom_bonus_enabled field.

func ByCustomBonusPercent

func ByCustomBonusPercent(opts ...sql.OrderTermOption) OrderOption

ByCustomBonusPercent orders the results by the custom_bonus_percent field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByEndTime

func ByEndTime(opts ...sql.OrderTermOption) OrderOption

ByEndTime orders the results by the end_time field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByName

func ByName(opts ...sql.OrderTermOption) OrderOption

ByName orders the results by the name field.

func ByPriority

func ByPriority(opts ...sql.OrderTermOption) OrderOption

ByPriority orders the results by the priority field.

func BySort

func BySort(opts ...sql.OrderTermOption) OrderOption

BySort orders the results by the sort field.

func ByStackMode

func ByStackMode(opts ...sql.OrderTermOption) OrderOption

ByStackMode orders the results by the stack_mode field.

func ByStartTime

func ByStartTime(opts ...sql.OrderTermOption) OrderOption

ByStartTime orders the results by the start_time field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByTiers

func ByTiers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTiers orders the results by tiers terms.

func ByTiersCount

func ByTiersCount(opts ...sql.OrderTermOption) OrderOption

ByTiersCount orders the results by tiers count.

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