proxyredemptioncode

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the proxyredemptioncode type in the database.
	Label = "proxy_redemption_code"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCode holds the string denoting the code field in the database.
	FieldCode = "code"
	// FieldTotalCount holds the string denoting the total_count field in the database.
	FieldTotalCount = "total_count"
	// FieldUsedCount holds the string denoting the used_count field in the database.
	FieldUsedCount = "used_count"
	// FieldSubscribePlan holds the string denoting the subscribe_plan field in the database.
	FieldSubscribePlan = "subscribe_plan"
	// FieldUnitTime holds the string denoting the unit_time field in the database.
	FieldUnitTime = "unit_time"
	// FieldQuantity holds the string denoting the quantity field in the database.
	FieldQuantity = "quantity"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// EdgeRecords holds the string denoting the records edge name in mutations.
	EdgeRecords = "records"
	// Table holds the table name of the proxyredemptioncode in the database.
	Table = "redemption_code"
	// RecordsTable is the table that holds the records relation/edge.
	RecordsTable = "redemption_record"
	// RecordsInverseTable is the table name for the ProxyRedemptionRecord entity.
	// It exists in this package in order to avoid circular dependency with the "proxyredemptionrecord" package.
	RecordsInverseTable = "redemption_record"
	// RecordsColumn is the table column denoting the records relation/edge.
	RecordsColumn = "redemption_code_id"
)

Variables

View Source
var (
	// CodeValidator is a validator for the "code" field. It is called by the builders before save.
	CodeValidator func(string) error
	// DefaultTotalCount holds the default value on creation for the "total_count" field.
	DefaultTotalCount int32
	// DefaultUsedCount holds the default value on creation for the "used_count" field.
	DefaultUsedCount int32
	// DefaultSubscribePlan holds the default value on creation for the "subscribe_plan" field.
	DefaultSubscribePlan int64
	// DefaultUnitTime holds the default value on creation for the "unit_time" field.
	DefaultUnitTime string
	// UnitTimeValidator is a validator for the "unit_time" field. It is called by the builders before save.
	UnitTimeValidator func(string) error
	// DefaultQuantity holds the default value on creation for the "quantity" field.
	DefaultQuantity int32
	// DefaultStatus holds the default value on creation for the "status" field.
	DefaultStatus int8
	// 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 proxyredemptioncode fields.

Functions

func And

And groups predicates with the AND operator between them.

func Code

Code applies equality check predicate on the "code" field. It's identical to CodeEQ.

func CodeContains

func CodeContains(v string) predicate.ProxyRedemptionCode

CodeContains applies the Contains predicate on the "code" field.

func CodeContainsFold

func CodeContainsFold(v string) predicate.ProxyRedemptionCode

CodeContainsFold applies the ContainsFold predicate on the "code" field.

func CodeEQ

CodeEQ applies the EQ predicate on the "code" field.

func CodeEqualFold

func CodeEqualFold(v string) predicate.ProxyRedemptionCode

CodeEqualFold applies the EqualFold predicate on the "code" field.

func CodeGT

CodeGT applies the GT predicate on the "code" field.

func CodeGTE

CodeGTE applies the GTE predicate on the "code" field.

func CodeHasPrefix

func CodeHasPrefix(v string) predicate.ProxyRedemptionCode

CodeHasPrefix applies the HasPrefix predicate on the "code" field.

func CodeHasSuffix

func CodeHasSuffix(v string) predicate.ProxyRedemptionCode

CodeHasSuffix applies the HasSuffix predicate on the "code" field.

func CodeIn

func CodeIn(vs ...string) predicate.ProxyRedemptionCode

CodeIn applies the In predicate on the "code" field.

func CodeLT

CodeLT applies the LT predicate on the "code" field.

func CodeLTE

CodeLTE applies the LTE predicate on the "code" field.

func CodeNEQ

CodeNEQ applies the NEQ predicate on the "code" field.

func CodeNotIn

func CodeNotIn(vs ...string) predicate.ProxyRedemptionCode

CodeNotIn applies the NotIn predicate on the "code" field.

func CreatedAt

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.ProxyRedemptionCode

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.ProxyRedemptionCode

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.ProxyRedemptionCode

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.ProxyRedemptionCode

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.ProxyRedemptionCode

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.ProxyRedemptionCode

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

func CreatedAtNotIn

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

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

func DeletedAt

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.ProxyRedemptionCode

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.ProxyRedemptionCode

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.ProxyRedemptionCode

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.ProxyRedemptionCode

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.ProxyRedemptionCode

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.ProxyRedemptionCode

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.ProxyRedemptionCode

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.ProxyRedemptionCode

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.ProxyRedemptionCode

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.ProxyRedemptionCode

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func HasRecords

func HasRecords() predicate.ProxyRedemptionCode

HasRecords applies the HasEdge predicate on the "records" edge.

func HasRecordsWith

HasRecordsWith applies the HasEdge predicate on the "records" 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

func IDIn(ids ...int64) predicate.ProxyRedemptionCode

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.ProxyRedemptionCode

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Quantity

Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.

func QuantityEQ

func QuantityEQ(v int32) predicate.ProxyRedemptionCode

QuantityEQ applies the EQ predicate on the "quantity" field.

func QuantityGT

func QuantityGT(v int32) predicate.ProxyRedemptionCode

QuantityGT applies the GT predicate on the "quantity" field.

func QuantityGTE

func QuantityGTE(v int32) predicate.ProxyRedemptionCode

QuantityGTE applies the GTE predicate on the "quantity" field.

func QuantityIn

func QuantityIn(vs ...int32) predicate.ProxyRedemptionCode

QuantityIn applies the In predicate on the "quantity" field.

func QuantityLT

func QuantityLT(v int32) predicate.ProxyRedemptionCode

QuantityLT applies the LT predicate on the "quantity" field.

func QuantityLTE

func QuantityLTE(v int32) predicate.ProxyRedemptionCode

QuantityLTE applies the LTE predicate on the "quantity" field.

func QuantityNEQ

func QuantityNEQ(v int32) predicate.ProxyRedemptionCode

QuantityNEQ applies the NEQ predicate on the "quantity" field.

func QuantityNotIn

func QuantityNotIn(vs ...int32) predicate.ProxyRedemptionCode

QuantityNotIn applies the NotIn predicate on the "quantity" 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 StatusGT

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v int8) predicate.ProxyRedemptionCode

StatusGTE applies the GTE predicate on the "status" field.

func StatusIn

func StatusIn(vs ...int8) predicate.ProxyRedemptionCode

StatusIn applies the In predicate on the "status" field.

func StatusLT

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v int8) predicate.ProxyRedemptionCode

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v int8) predicate.ProxyRedemptionCode

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...int8) predicate.ProxyRedemptionCode

StatusNotIn applies the NotIn predicate on the "status" field.

func SubscribePlan

func SubscribePlan(v int64) predicate.ProxyRedemptionCode

SubscribePlan applies equality check predicate on the "subscribe_plan" field. It's identical to SubscribePlanEQ.

func SubscribePlanEQ

func SubscribePlanEQ(v int64) predicate.ProxyRedemptionCode

SubscribePlanEQ applies the EQ predicate on the "subscribe_plan" field.

func SubscribePlanGT

func SubscribePlanGT(v int64) predicate.ProxyRedemptionCode

SubscribePlanGT applies the GT predicate on the "subscribe_plan" field.

func SubscribePlanGTE

func SubscribePlanGTE(v int64) predicate.ProxyRedemptionCode

SubscribePlanGTE applies the GTE predicate on the "subscribe_plan" field.

func SubscribePlanIn

func SubscribePlanIn(vs ...int64) predicate.ProxyRedemptionCode

SubscribePlanIn applies the In predicate on the "subscribe_plan" field.

func SubscribePlanLT

func SubscribePlanLT(v int64) predicate.ProxyRedemptionCode

SubscribePlanLT applies the LT predicate on the "subscribe_plan" field.

func SubscribePlanLTE

func SubscribePlanLTE(v int64) predicate.ProxyRedemptionCode

SubscribePlanLTE applies the LTE predicate on the "subscribe_plan" field.

func SubscribePlanNEQ

func SubscribePlanNEQ(v int64) predicate.ProxyRedemptionCode

SubscribePlanNEQ applies the NEQ predicate on the "subscribe_plan" field.

func SubscribePlanNotIn

func SubscribePlanNotIn(vs ...int64) predicate.ProxyRedemptionCode

SubscribePlanNotIn applies the NotIn predicate on the "subscribe_plan" field.

func TotalCount

func TotalCount(v int32) predicate.ProxyRedemptionCode

TotalCount applies equality check predicate on the "total_count" field. It's identical to TotalCountEQ.

func TotalCountEQ

func TotalCountEQ(v int32) predicate.ProxyRedemptionCode

TotalCountEQ applies the EQ predicate on the "total_count" field.

func TotalCountGT

func TotalCountGT(v int32) predicate.ProxyRedemptionCode

TotalCountGT applies the GT predicate on the "total_count" field.

func TotalCountGTE

func TotalCountGTE(v int32) predicate.ProxyRedemptionCode

TotalCountGTE applies the GTE predicate on the "total_count" field.

func TotalCountIn

func TotalCountIn(vs ...int32) predicate.ProxyRedemptionCode

TotalCountIn applies the In predicate on the "total_count" field.

func TotalCountLT

func TotalCountLT(v int32) predicate.ProxyRedemptionCode

TotalCountLT applies the LT predicate on the "total_count" field.

func TotalCountLTE

func TotalCountLTE(v int32) predicate.ProxyRedemptionCode

TotalCountLTE applies the LTE predicate on the "total_count" field.

func TotalCountNEQ

func TotalCountNEQ(v int32) predicate.ProxyRedemptionCode

TotalCountNEQ applies the NEQ predicate on the "total_count" field.

func TotalCountNotIn

func TotalCountNotIn(vs ...int32) predicate.ProxyRedemptionCode

TotalCountNotIn applies the NotIn predicate on the "total_count" field.

func UnitTime

UnitTime applies equality check predicate on the "unit_time" field. It's identical to UnitTimeEQ.

func UnitTimeContains

func UnitTimeContains(v string) predicate.ProxyRedemptionCode

UnitTimeContains applies the Contains predicate on the "unit_time" field.

func UnitTimeContainsFold

func UnitTimeContainsFold(v string) predicate.ProxyRedemptionCode

UnitTimeContainsFold applies the ContainsFold predicate on the "unit_time" field.

func UnitTimeEQ

func UnitTimeEQ(v string) predicate.ProxyRedemptionCode

UnitTimeEQ applies the EQ predicate on the "unit_time" field.

func UnitTimeEqualFold

func UnitTimeEqualFold(v string) predicate.ProxyRedemptionCode

UnitTimeEqualFold applies the EqualFold predicate on the "unit_time" field.

func UnitTimeGT

func UnitTimeGT(v string) predicate.ProxyRedemptionCode

UnitTimeGT applies the GT predicate on the "unit_time" field.

func UnitTimeGTE

func UnitTimeGTE(v string) predicate.ProxyRedemptionCode

UnitTimeGTE applies the GTE predicate on the "unit_time" field.

func UnitTimeHasPrefix

func UnitTimeHasPrefix(v string) predicate.ProxyRedemptionCode

UnitTimeHasPrefix applies the HasPrefix predicate on the "unit_time" field.

func UnitTimeHasSuffix

func UnitTimeHasSuffix(v string) predicate.ProxyRedemptionCode

UnitTimeHasSuffix applies the HasSuffix predicate on the "unit_time" field.

func UnitTimeIn

func UnitTimeIn(vs ...string) predicate.ProxyRedemptionCode

UnitTimeIn applies the In predicate on the "unit_time" field.

func UnitTimeLT

func UnitTimeLT(v string) predicate.ProxyRedemptionCode

UnitTimeLT applies the LT predicate on the "unit_time" field.

func UnitTimeLTE

func UnitTimeLTE(v string) predicate.ProxyRedemptionCode

UnitTimeLTE applies the LTE predicate on the "unit_time" field.

func UnitTimeNEQ

func UnitTimeNEQ(v string) predicate.ProxyRedemptionCode

UnitTimeNEQ applies the NEQ predicate on the "unit_time" field.

func UnitTimeNotIn

func UnitTimeNotIn(vs ...string) predicate.ProxyRedemptionCode

UnitTimeNotIn applies the NotIn predicate on the "unit_time" field.

func UpdatedAt

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.ProxyRedemptionCode

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.ProxyRedemptionCode

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.ProxyRedemptionCode

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.ProxyRedemptionCode

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.ProxyRedemptionCode

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.ProxyRedemptionCode

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

func UpdatedAtNotIn

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

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

func UsedCount

func UsedCount(v int32) predicate.ProxyRedemptionCode

UsedCount applies equality check predicate on the "used_count" field. It's identical to UsedCountEQ.

func UsedCountEQ

func UsedCountEQ(v int32) predicate.ProxyRedemptionCode

UsedCountEQ applies the EQ predicate on the "used_count" field.

func UsedCountGT

func UsedCountGT(v int32) predicate.ProxyRedemptionCode

UsedCountGT applies the GT predicate on the "used_count" field.

func UsedCountGTE

func UsedCountGTE(v int32) predicate.ProxyRedemptionCode

UsedCountGTE applies the GTE predicate on the "used_count" field.

func UsedCountIn

func UsedCountIn(vs ...int32) predicate.ProxyRedemptionCode

UsedCountIn applies the In predicate on the "used_count" field.

func UsedCountLT

func UsedCountLT(v int32) predicate.ProxyRedemptionCode

UsedCountLT applies the LT predicate on the "used_count" field.

func UsedCountLTE

func UsedCountLTE(v int32) predicate.ProxyRedemptionCode

UsedCountLTE applies the LTE predicate on the "used_count" field.

func UsedCountNEQ

func UsedCountNEQ(v int32) predicate.ProxyRedemptionCode

UsedCountNEQ applies the NEQ predicate on the "used_count" field.

func UsedCountNotIn

func UsedCountNotIn(vs ...int32) predicate.ProxyRedemptionCode

UsedCountNotIn applies the NotIn predicate on the "used_count" 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 ProxyRedemptionCode queries.

func ByCode

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

ByCode orders the results by the code field.

func ByCreatedAt

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

ByCreatedAt orders the results by the created_at field.

func ByDeletedAt

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

ByDeletedAt orders the results by the deleted_at field.

func ByID

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

ByID orders the results by the id field.

func ByQuantity

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

ByQuantity orders the results by the quantity field.

func ByRecords

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

ByRecords orders the results by records terms.

func ByRecordsCount

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

ByRecordsCount orders the results by records count.

func ByStatus

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

ByStatus orders the results by the status field.

func BySubscribePlan

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

BySubscribePlan orders the results by the subscribe_plan field.

func ByTotalCount

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

ByTotalCount orders the results by the total_count field.

func ByUnitTime

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

ByUnitTime orders the results by the unit_time field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUsedCount

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

ByUsedCount orders the results by the used_count field.

Jump to

Keyboard shortcuts

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