Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProxyRedemptionCode) predicate.ProxyRedemptionCode
- func Code(v string) predicate.ProxyRedemptionCode
- func CodeContains(v string) predicate.ProxyRedemptionCode
- func CodeContainsFold(v string) predicate.ProxyRedemptionCode
- func CodeEQ(v string) predicate.ProxyRedemptionCode
- func CodeEqualFold(v string) predicate.ProxyRedemptionCode
- func CodeGT(v string) predicate.ProxyRedemptionCode
- func CodeGTE(v string) predicate.ProxyRedemptionCode
- func CodeHasPrefix(v string) predicate.ProxyRedemptionCode
- func CodeHasSuffix(v string) predicate.ProxyRedemptionCode
- func CodeIn(vs ...string) predicate.ProxyRedemptionCode
- func CodeLT(v string) predicate.ProxyRedemptionCode
- func CodeLTE(v string) predicate.ProxyRedemptionCode
- func CodeNEQ(v string) predicate.ProxyRedemptionCode
- func CodeNotIn(vs ...string) predicate.ProxyRedemptionCode
- func CreatedAt(v time.Time) predicate.ProxyRedemptionCode
- func CreatedAtEQ(v time.Time) predicate.ProxyRedemptionCode
- func CreatedAtGT(v time.Time) predicate.ProxyRedemptionCode
- func CreatedAtGTE(v time.Time) predicate.ProxyRedemptionCode
- func CreatedAtIn(vs ...time.Time) predicate.ProxyRedemptionCode
- func CreatedAtLT(v time.Time) predicate.ProxyRedemptionCode
- func CreatedAtLTE(v time.Time) predicate.ProxyRedemptionCode
- func CreatedAtNEQ(v time.Time) predicate.ProxyRedemptionCode
- func CreatedAtNotIn(vs ...time.Time) predicate.ProxyRedemptionCode
- func DeletedAt(v time.Time) predicate.ProxyRedemptionCode
- func DeletedAtEQ(v time.Time) predicate.ProxyRedemptionCode
- func DeletedAtGT(v time.Time) predicate.ProxyRedemptionCode
- func DeletedAtGTE(v time.Time) predicate.ProxyRedemptionCode
- func DeletedAtIn(vs ...time.Time) predicate.ProxyRedemptionCode
- func DeletedAtIsNil() predicate.ProxyRedemptionCode
- func DeletedAtLT(v time.Time) predicate.ProxyRedemptionCode
- func DeletedAtLTE(v time.Time) predicate.ProxyRedemptionCode
- func DeletedAtNEQ(v time.Time) predicate.ProxyRedemptionCode
- func DeletedAtNotIn(vs ...time.Time) predicate.ProxyRedemptionCode
- func DeletedAtNotNil() predicate.ProxyRedemptionCode
- func HasRecords() predicate.ProxyRedemptionCode
- func HasRecordsWith(preds ...predicate.ProxyRedemptionRecord) predicate.ProxyRedemptionCode
- func ID(id int64) predicate.ProxyRedemptionCode
- func IDEQ(id int64) predicate.ProxyRedemptionCode
- func IDGT(id int64) predicate.ProxyRedemptionCode
- func IDGTE(id int64) predicate.ProxyRedemptionCode
- func IDIn(ids ...int64) predicate.ProxyRedemptionCode
- func IDLT(id int64) predicate.ProxyRedemptionCode
- func IDLTE(id int64) predicate.ProxyRedemptionCode
- func IDNEQ(id int64) predicate.ProxyRedemptionCode
- func IDNotIn(ids ...int64) predicate.ProxyRedemptionCode
- func Not(p predicate.ProxyRedemptionCode) predicate.ProxyRedemptionCode
- func Or(predicates ...predicate.ProxyRedemptionCode) predicate.ProxyRedemptionCode
- func Quantity(v int32) predicate.ProxyRedemptionCode
- func QuantityEQ(v int32) predicate.ProxyRedemptionCode
- func QuantityGT(v int32) predicate.ProxyRedemptionCode
- func QuantityGTE(v int32) predicate.ProxyRedemptionCode
- func QuantityIn(vs ...int32) predicate.ProxyRedemptionCode
- func QuantityLT(v int32) predicate.ProxyRedemptionCode
- func QuantityLTE(v int32) predicate.ProxyRedemptionCode
- func QuantityNEQ(v int32) predicate.ProxyRedemptionCode
- func QuantityNotIn(vs ...int32) predicate.ProxyRedemptionCode
- func Status(v int8) predicate.ProxyRedemptionCode
- func StatusEQ(v int8) predicate.ProxyRedemptionCode
- func StatusGT(v int8) predicate.ProxyRedemptionCode
- func StatusGTE(v int8) predicate.ProxyRedemptionCode
- func StatusIn(vs ...int8) predicate.ProxyRedemptionCode
- func StatusLT(v int8) predicate.ProxyRedemptionCode
- func StatusLTE(v int8) predicate.ProxyRedemptionCode
- func StatusNEQ(v int8) predicate.ProxyRedemptionCode
- func StatusNotIn(vs ...int8) predicate.ProxyRedemptionCode
- func SubscribePlan(v int64) predicate.ProxyRedemptionCode
- func SubscribePlanEQ(v int64) predicate.ProxyRedemptionCode
- func SubscribePlanGT(v int64) predicate.ProxyRedemptionCode
- func SubscribePlanGTE(v int64) predicate.ProxyRedemptionCode
- func SubscribePlanIn(vs ...int64) predicate.ProxyRedemptionCode
- func SubscribePlanLT(v int64) predicate.ProxyRedemptionCode
- func SubscribePlanLTE(v int64) predicate.ProxyRedemptionCode
- func SubscribePlanNEQ(v int64) predicate.ProxyRedemptionCode
- func SubscribePlanNotIn(vs ...int64) predicate.ProxyRedemptionCode
- func TotalCount(v int32) predicate.ProxyRedemptionCode
- func TotalCountEQ(v int32) predicate.ProxyRedemptionCode
- func TotalCountGT(v int32) predicate.ProxyRedemptionCode
- func TotalCountGTE(v int32) predicate.ProxyRedemptionCode
- func TotalCountIn(vs ...int32) predicate.ProxyRedemptionCode
- func TotalCountLT(v int32) predicate.ProxyRedemptionCode
- func TotalCountLTE(v int32) predicate.ProxyRedemptionCode
- func TotalCountNEQ(v int32) predicate.ProxyRedemptionCode
- func TotalCountNotIn(vs ...int32) predicate.ProxyRedemptionCode
- func UnitTime(v string) predicate.ProxyRedemptionCode
- func UnitTimeContains(v string) predicate.ProxyRedemptionCode
- func UnitTimeContainsFold(v string) predicate.ProxyRedemptionCode
- func UnitTimeEQ(v string) predicate.ProxyRedemptionCode
- func UnitTimeEqualFold(v string) predicate.ProxyRedemptionCode
- func UnitTimeGT(v string) predicate.ProxyRedemptionCode
- func UnitTimeGTE(v string) predicate.ProxyRedemptionCode
- func UnitTimeHasPrefix(v string) predicate.ProxyRedemptionCode
- func UnitTimeHasSuffix(v string) predicate.ProxyRedemptionCode
- func UnitTimeIn(vs ...string) predicate.ProxyRedemptionCode
- func UnitTimeLT(v string) predicate.ProxyRedemptionCode
- func UnitTimeLTE(v string) predicate.ProxyRedemptionCode
- func UnitTimeNEQ(v string) predicate.ProxyRedemptionCode
- func UnitTimeNotIn(vs ...string) predicate.ProxyRedemptionCode
- func UpdatedAt(v time.Time) predicate.ProxyRedemptionCode
- func UpdatedAtEQ(v time.Time) predicate.ProxyRedemptionCode
- func UpdatedAtGT(v time.Time) predicate.ProxyRedemptionCode
- func UpdatedAtGTE(v time.Time) predicate.ProxyRedemptionCode
- func UpdatedAtIn(vs ...time.Time) predicate.ProxyRedemptionCode
- func UpdatedAtLT(v time.Time) predicate.ProxyRedemptionCode
- func UpdatedAtLTE(v time.Time) predicate.ProxyRedemptionCode
- func UpdatedAtNEQ(v time.Time) predicate.ProxyRedemptionCode
- func UpdatedAtNotIn(vs ...time.Time) predicate.ProxyRedemptionCode
- func UsedCount(v int32) predicate.ProxyRedemptionCode
- func UsedCountEQ(v int32) predicate.ProxyRedemptionCode
- func UsedCountGT(v int32) predicate.ProxyRedemptionCode
- func UsedCountGTE(v int32) predicate.ProxyRedemptionCode
- func UsedCountIn(vs ...int32) predicate.ProxyRedemptionCode
- func UsedCountLT(v int32) predicate.ProxyRedemptionCode
- func UsedCountLTE(v int32) predicate.ProxyRedemptionCode
- func UsedCountNEQ(v int32) predicate.ProxyRedemptionCode
- func UsedCountNotIn(vs ...int32) predicate.ProxyRedemptionCode
- func ValidColumn(column string) bool
- type OrderOption
- func ByCode(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByQuantity(opts ...sql.OrderTermOption) OrderOption
- func ByRecords(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRecordsCount(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func BySubscribePlan(opts ...sql.OrderTermOption) OrderOption
- func ByTotalCount(opts ...sql.OrderTermOption) OrderOption
- func ByUnitTime(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsedCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCode, FieldTotalCount, FieldUsedCount, FieldSubscribePlan, FieldUnitTime, FieldQuantity, FieldStatus, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, }
Columns holds all SQL columns for proxyredemptioncode fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ProxyRedemptionCode) predicate.ProxyRedemptionCode
And groups predicates with the AND operator between them.
func Code ¶
func Code(v string) predicate.ProxyRedemptionCode
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 ¶
func CodeEQ(v string) predicate.ProxyRedemptionCode
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 ¶
func CodeGT(v string) predicate.ProxyRedemptionCode
CodeGT applies the GT predicate on the "code" field.
func CodeGTE ¶
func CodeGTE(v string) predicate.ProxyRedemptionCode
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 ¶
func CodeLT(v string) predicate.ProxyRedemptionCode
CodeLT applies the LT predicate on the "code" field.
func CodeLTE ¶
func CodeLTE(v string) predicate.ProxyRedemptionCode
CodeLTE applies the LTE predicate on the "code" field.
func CodeNEQ ¶
func CodeNEQ(v string) predicate.ProxyRedemptionCode
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 ¶
func CreatedAt(v time.Time) predicate.ProxyRedemptionCode
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 ¶
func DeletedAt(v time.Time) predicate.ProxyRedemptionCode
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 ¶
func HasRecordsWith(preds ...predicate.ProxyRedemptionRecord) predicate.ProxyRedemptionCode
HasRecordsWith applies the HasEdge predicate on the "records" edge with a given conditions (other predicates).
func ID ¶
func ID(id int64) predicate.ProxyRedemptionCode
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int64) predicate.ProxyRedemptionCode
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.ProxyRedemptionCode
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.ProxyRedemptionCode
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 ¶
func IDLT(id int64) predicate.ProxyRedemptionCode
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.ProxyRedemptionCode
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.ProxyRedemptionCode
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 ¶
func Not(p predicate.ProxyRedemptionCode) predicate.ProxyRedemptionCode
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ProxyRedemptionCode) predicate.ProxyRedemptionCode
Or groups predicates with the OR operator between them.
func Quantity ¶
func Quantity(v int32) predicate.ProxyRedemptionCode
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 ¶
func Status(v int8) predicate.ProxyRedemptionCode
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusEQ ¶
func StatusEQ(v int8) predicate.ProxyRedemptionCode
StatusEQ applies the EQ predicate on the "status" field.
func StatusGT ¶
func StatusGT(v int8) predicate.ProxyRedemptionCode
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 ¶
func StatusLT(v int8) predicate.ProxyRedemptionCode
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 ¶
func UnitTime(v string) predicate.ProxyRedemptionCode
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 ¶
func UpdatedAt(v time.Time) predicate.ProxyRedemptionCode
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 ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.