Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ProxyRedemptionRecord) predicate.ProxyRedemptionRecord
- func CreatedAt(v time.Time) predicate.ProxyRedemptionRecord
- func CreatedAtEQ(v time.Time) predicate.ProxyRedemptionRecord
- func CreatedAtGT(v time.Time) predicate.ProxyRedemptionRecord
- func CreatedAtGTE(v time.Time) predicate.ProxyRedemptionRecord
- func CreatedAtIn(vs ...time.Time) predicate.ProxyRedemptionRecord
- func CreatedAtLT(v time.Time) predicate.ProxyRedemptionRecord
- func CreatedAtLTE(v time.Time) predicate.ProxyRedemptionRecord
- func CreatedAtNEQ(v time.Time) predicate.ProxyRedemptionRecord
- func CreatedAtNotIn(vs ...time.Time) predicate.ProxyRedemptionRecord
- func HasRedemptionCode() predicate.ProxyRedemptionRecord
- func HasRedemptionCodeWith(preds ...predicate.ProxyRedemptionCode) predicate.ProxyRedemptionRecord
- func HasUser() predicate.ProxyRedemptionRecord
- func HasUserWith(preds ...predicate.ProxyUser) predicate.ProxyRedemptionRecord
- func ID(id int64) predicate.ProxyRedemptionRecord
- func IDEQ(id int64) predicate.ProxyRedemptionRecord
- func IDGT(id int64) predicate.ProxyRedemptionRecord
- func IDGTE(id int64) predicate.ProxyRedemptionRecord
- func IDIn(ids ...int64) predicate.ProxyRedemptionRecord
- func IDLT(id int64) predicate.ProxyRedemptionRecord
- func IDLTE(id int64) predicate.ProxyRedemptionRecord
- func IDNEQ(id int64) predicate.ProxyRedemptionRecord
- func IDNotIn(ids ...int64) predicate.ProxyRedemptionRecord
- func Not(p predicate.ProxyRedemptionRecord) predicate.ProxyRedemptionRecord
- func Or(predicates ...predicate.ProxyRedemptionRecord) predicate.ProxyRedemptionRecord
- func Quantity(v int32) predicate.ProxyRedemptionRecord
- func QuantityEQ(v int32) predicate.ProxyRedemptionRecord
- func QuantityGT(v int32) predicate.ProxyRedemptionRecord
- func QuantityGTE(v int32) predicate.ProxyRedemptionRecord
- func QuantityIn(vs ...int32) predicate.ProxyRedemptionRecord
- func QuantityLT(v int32) predicate.ProxyRedemptionRecord
- func QuantityLTE(v int32) predicate.ProxyRedemptionRecord
- func QuantityNEQ(v int32) predicate.ProxyRedemptionRecord
- func QuantityNotIn(vs ...int32) predicate.ProxyRedemptionRecord
- func RedeemedAt(v time.Time) predicate.ProxyRedemptionRecord
- func RedeemedAtEQ(v time.Time) predicate.ProxyRedemptionRecord
- func RedeemedAtGT(v time.Time) predicate.ProxyRedemptionRecord
- func RedeemedAtGTE(v time.Time) predicate.ProxyRedemptionRecord
- func RedeemedAtIn(vs ...time.Time) predicate.ProxyRedemptionRecord
- func RedeemedAtLT(v time.Time) predicate.ProxyRedemptionRecord
- func RedeemedAtLTE(v time.Time) predicate.ProxyRedemptionRecord
- func RedeemedAtNEQ(v time.Time) predicate.ProxyRedemptionRecord
- func RedeemedAtNotIn(vs ...time.Time) predicate.ProxyRedemptionRecord
- func RedemptionCodeID(v int64) predicate.ProxyRedemptionRecord
- func RedemptionCodeIDEQ(v int64) predicate.ProxyRedemptionRecord
- func RedemptionCodeIDIn(vs ...int64) predicate.ProxyRedemptionRecord
- func RedemptionCodeIDNEQ(v int64) predicate.ProxyRedemptionRecord
- func RedemptionCodeIDNotIn(vs ...int64) predicate.ProxyRedemptionRecord
- func SubscribeID(v int64) predicate.ProxyRedemptionRecord
- func SubscribeIDEQ(v int64) predicate.ProxyRedemptionRecord
- func SubscribeIDGT(v int64) predicate.ProxyRedemptionRecord
- func SubscribeIDGTE(v int64) predicate.ProxyRedemptionRecord
- func SubscribeIDIn(vs ...int64) predicate.ProxyRedemptionRecord
- func SubscribeIDLT(v int64) predicate.ProxyRedemptionRecord
- func SubscribeIDLTE(v int64) predicate.ProxyRedemptionRecord
- func SubscribeIDNEQ(v int64) predicate.ProxyRedemptionRecord
- func SubscribeIDNotIn(vs ...int64) predicate.ProxyRedemptionRecord
- func UnitTime(v string) predicate.ProxyRedemptionRecord
- func UnitTimeContains(v string) predicate.ProxyRedemptionRecord
- func UnitTimeContainsFold(v string) predicate.ProxyRedemptionRecord
- func UnitTimeEQ(v string) predicate.ProxyRedemptionRecord
- func UnitTimeEqualFold(v string) predicate.ProxyRedemptionRecord
- func UnitTimeGT(v string) predicate.ProxyRedemptionRecord
- func UnitTimeGTE(v string) predicate.ProxyRedemptionRecord
- func UnitTimeHasPrefix(v string) predicate.ProxyRedemptionRecord
- func UnitTimeHasSuffix(v string) predicate.ProxyRedemptionRecord
- func UnitTimeIn(vs ...string) predicate.ProxyRedemptionRecord
- func UnitTimeLT(v string) predicate.ProxyRedemptionRecord
- func UnitTimeLTE(v string) predicate.ProxyRedemptionRecord
- func UnitTimeNEQ(v string) predicate.ProxyRedemptionRecord
- func UnitTimeNotIn(vs ...string) predicate.ProxyRedemptionRecord
- func UserID(v int64) predicate.ProxyRedemptionRecord
- func UserIDEQ(v int64) predicate.ProxyRedemptionRecord
- func UserIDIn(vs ...int64) predicate.ProxyRedemptionRecord
- func UserIDNEQ(v int64) predicate.ProxyRedemptionRecord
- func UserIDNotIn(vs ...int64) predicate.ProxyRedemptionRecord
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByQuantity(opts ...sql.OrderTermOption) OrderOption
- func ByRedeemedAt(opts ...sql.OrderTermOption) OrderOption
- func ByRedemptionCodeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByRedemptionCodeID(opts ...sql.OrderTermOption) OrderOption
- func BySubscribeID(opts ...sql.OrderTermOption) OrderOption
- func ByUnitTime(opts ...sql.OrderTermOption) OrderOption
- func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the proxyredemptionrecord type in the database. Label = "proxy_redemption_record" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldRedemptionCodeID holds the string denoting the redemption_code_id field in the database. FieldRedemptionCodeID = "redemption_code_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldSubscribeID holds the string denoting the subscribe_id field in the database. FieldSubscribeID = "subscribe_id" // 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" // FieldRedeemedAt holds the string denoting the redeemed_at field in the database. FieldRedeemedAt = "redeemed_at" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // EdgeRedemptionCode holds the string denoting the redemption_code edge name in mutations. EdgeRedemptionCode = "redemption_code" // Table holds the table name of the proxyredemptionrecord in the database. Table = "redemption_record" // UserTable is the table that holds the user relation/edge. UserTable = "redemption_record" // UserInverseTable is the table name for the ProxyUser entity. // It exists in this package in order to avoid circular dependency with the "proxyuser" package. UserInverseTable = "user" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" // RedemptionCodeTable is the table that holds the redemption_code relation/edge. RedemptionCodeTable = "redemption_record" // RedemptionCodeInverseTable is the table name for the ProxyRedemptionCode entity. // It exists in this package in order to avoid circular dependency with the "proxyredemptioncode" package. RedemptionCodeInverseTable = "redemption_code" // RedemptionCodeColumn is the table column denoting the redemption_code relation/edge. RedemptionCodeColumn = "redemption_code_id" )
Variables ¶
var ( // 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 // DefaultRedeemedAt holds the default value on creation for the "redeemed_at" field. DefaultRedeemedAt func() time.Time // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt 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, FieldRedemptionCodeID, FieldUserID, FieldSubscribeID, FieldUnitTime, FieldQuantity, FieldRedeemedAt, FieldCreatedAt, }
Columns holds all SQL columns for proxyredemptionrecord fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ProxyRedemptionRecord) predicate.ProxyRedemptionRecord
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ProxyRedemptionRecord
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ProxyRedemptionRecord
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ProxyRedemptionRecord
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ProxyRedemptionRecord
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ProxyRedemptionRecord
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ProxyRedemptionRecord
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ProxyRedemptionRecord
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ProxyRedemptionRecord
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ProxyRedemptionRecord
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func HasRedemptionCode ¶
func HasRedemptionCode() predicate.ProxyRedemptionRecord
HasRedemptionCode applies the HasEdge predicate on the "redemption_code" edge.
func HasRedemptionCodeWith ¶
func HasRedemptionCodeWith(preds ...predicate.ProxyRedemptionCode) predicate.ProxyRedemptionRecord
HasRedemptionCodeWith applies the HasEdge predicate on the "redemption_code" edge with a given conditions (other predicates).
func HasUser ¶
func HasUser() predicate.ProxyRedemptionRecord
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.ProxyUser) predicate.ProxyRedemptionRecord
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func ID ¶
func ID(id int64) predicate.ProxyRedemptionRecord
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id int64) predicate.ProxyRedemptionRecord
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id int64) predicate.ProxyRedemptionRecord
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id int64) predicate.ProxyRedemptionRecord
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int64) predicate.ProxyRedemptionRecord
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id int64) predicate.ProxyRedemptionRecord
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id int64) predicate.ProxyRedemptionRecord
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int64) predicate.ProxyRedemptionRecord
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int64) predicate.ProxyRedemptionRecord
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.ProxyRedemptionRecord) predicate.ProxyRedemptionRecord
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ProxyRedemptionRecord) predicate.ProxyRedemptionRecord
Or groups predicates with the OR operator between them.
func Quantity ¶
func Quantity(v int32) predicate.ProxyRedemptionRecord
Quantity applies equality check predicate on the "quantity" field. It's identical to QuantityEQ.
func QuantityEQ ¶
func QuantityEQ(v int32) predicate.ProxyRedemptionRecord
QuantityEQ applies the EQ predicate on the "quantity" field.
func QuantityGT ¶
func QuantityGT(v int32) predicate.ProxyRedemptionRecord
QuantityGT applies the GT predicate on the "quantity" field.
func QuantityGTE ¶
func QuantityGTE(v int32) predicate.ProxyRedemptionRecord
QuantityGTE applies the GTE predicate on the "quantity" field.
func QuantityIn ¶
func QuantityIn(vs ...int32) predicate.ProxyRedemptionRecord
QuantityIn applies the In predicate on the "quantity" field.
func QuantityLT ¶
func QuantityLT(v int32) predicate.ProxyRedemptionRecord
QuantityLT applies the LT predicate on the "quantity" field.
func QuantityLTE ¶
func QuantityLTE(v int32) predicate.ProxyRedemptionRecord
QuantityLTE applies the LTE predicate on the "quantity" field.
func QuantityNEQ ¶
func QuantityNEQ(v int32) predicate.ProxyRedemptionRecord
QuantityNEQ applies the NEQ predicate on the "quantity" field.
func QuantityNotIn ¶
func QuantityNotIn(vs ...int32) predicate.ProxyRedemptionRecord
QuantityNotIn applies the NotIn predicate on the "quantity" field.
func RedeemedAt ¶
func RedeemedAt(v time.Time) predicate.ProxyRedemptionRecord
RedeemedAt applies equality check predicate on the "redeemed_at" field. It's identical to RedeemedAtEQ.
func RedeemedAtEQ ¶
func RedeemedAtEQ(v time.Time) predicate.ProxyRedemptionRecord
RedeemedAtEQ applies the EQ predicate on the "redeemed_at" field.
func RedeemedAtGT ¶
func RedeemedAtGT(v time.Time) predicate.ProxyRedemptionRecord
RedeemedAtGT applies the GT predicate on the "redeemed_at" field.
func RedeemedAtGTE ¶
func RedeemedAtGTE(v time.Time) predicate.ProxyRedemptionRecord
RedeemedAtGTE applies the GTE predicate on the "redeemed_at" field.
func RedeemedAtIn ¶
func RedeemedAtIn(vs ...time.Time) predicate.ProxyRedemptionRecord
RedeemedAtIn applies the In predicate on the "redeemed_at" field.
func RedeemedAtLT ¶
func RedeemedAtLT(v time.Time) predicate.ProxyRedemptionRecord
RedeemedAtLT applies the LT predicate on the "redeemed_at" field.
func RedeemedAtLTE ¶
func RedeemedAtLTE(v time.Time) predicate.ProxyRedemptionRecord
RedeemedAtLTE applies the LTE predicate on the "redeemed_at" field.
func RedeemedAtNEQ ¶
func RedeemedAtNEQ(v time.Time) predicate.ProxyRedemptionRecord
RedeemedAtNEQ applies the NEQ predicate on the "redeemed_at" field.
func RedeemedAtNotIn ¶
func RedeemedAtNotIn(vs ...time.Time) predicate.ProxyRedemptionRecord
RedeemedAtNotIn applies the NotIn predicate on the "redeemed_at" field.
func RedemptionCodeID ¶
func RedemptionCodeID(v int64) predicate.ProxyRedemptionRecord
RedemptionCodeID applies equality check predicate on the "redemption_code_id" field. It's identical to RedemptionCodeIDEQ.
func RedemptionCodeIDEQ ¶
func RedemptionCodeIDEQ(v int64) predicate.ProxyRedemptionRecord
RedemptionCodeIDEQ applies the EQ predicate on the "redemption_code_id" field.
func RedemptionCodeIDIn ¶
func RedemptionCodeIDIn(vs ...int64) predicate.ProxyRedemptionRecord
RedemptionCodeIDIn applies the In predicate on the "redemption_code_id" field.
func RedemptionCodeIDNEQ ¶
func RedemptionCodeIDNEQ(v int64) predicate.ProxyRedemptionRecord
RedemptionCodeIDNEQ applies the NEQ predicate on the "redemption_code_id" field.
func RedemptionCodeIDNotIn ¶
func RedemptionCodeIDNotIn(vs ...int64) predicate.ProxyRedemptionRecord
RedemptionCodeIDNotIn applies the NotIn predicate on the "redemption_code_id" field.
func SubscribeID ¶
func SubscribeID(v int64) predicate.ProxyRedemptionRecord
SubscribeID applies equality check predicate on the "subscribe_id" field. It's identical to SubscribeIDEQ.
func SubscribeIDEQ ¶
func SubscribeIDEQ(v int64) predicate.ProxyRedemptionRecord
SubscribeIDEQ applies the EQ predicate on the "subscribe_id" field.
func SubscribeIDGT ¶
func SubscribeIDGT(v int64) predicate.ProxyRedemptionRecord
SubscribeIDGT applies the GT predicate on the "subscribe_id" field.
func SubscribeIDGTE ¶
func SubscribeIDGTE(v int64) predicate.ProxyRedemptionRecord
SubscribeIDGTE applies the GTE predicate on the "subscribe_id" field.
func SubscribeIDIn ¶
func SubscribeIDIn(vs ...int64) predicate.ProxyRedemptionRecord
SubscribeIDIn applies the In predicate on the "subscribe_id" field.
func SubscribeIDLT ¶
func SubscribeIDLT(v int64) predicate.ProxyRedemptionRecord
SubscribeIDLT applies the LT predicate on the "subscribe_id" field.
func SubscribeIDLTE ¶
func SubscribeIDLTE(v int64) predicate.ProxyRedemptionRecord
SubscribeIDLTE applies the LTE predicate on the "subscribe_id" field.
func SubscribeIDNEQ ¶
func SubscribeIDNEQ(v int64) predicate.ProxyRedemptionRecord
SubscribeIDNEQ applies the NEQ predicate on the "subscribe_id" field.
func SubscribeIDNotIn ¶
func SubscribeIDNotIn(vs ...int64) predicate.ProxyRedemptionRecord
SubscribeIDNotIn applies the NotIn predicate on the "subscribe_id" field.
func UnitTime ¶
func UnitTime(v string) predicate.ProxyRedemptionRecord
UnitTime applies equality check predicate on the "unit_time" field. It's identical to UnitTimeEQ.
func UnitTimeContains ¶
func UnitTimeContains(v string) predicate.ProxyRedemptionRecord
UnitTimeContains applies the Contains predicate on the "unit_time" field.
func UnitTimeContainsFold ¶
func UnitTimeContainsFold(v string) predicate.ProxyRedemptionRecord
UnitTimeContainsFold applies the ContainsFold predicate on the "unit_time" field.
func UnitTimeEQ ¶
func UnitTimeEQ(v string) predicate.ProxyRedemptionRecord
UnitTimeEQ applies the EQ predicate on the "unit_time" field.
func UnitTimeEqualFold ¶
func UnitTimeEqualFold(v string) predicate.ProxyRedemptionRecord
UnitTimeEqualFold applies the EqualFold predicate on the "unit_time" field.
func UnitTimeGT ¶
func UnitTimeGT(v string) predicate.ProxyRedemptionRecord
UnitTimeGT applies the GT predicate on the "unit_time" field.
func UnitTimeGTE ¶
func UnitTimeGTE(v string) predicate.ProxyRedemptionRecord
UnitTimeGTE applies the GTE predicate on the "unit_time" field.
func UnitTimeHasPrefix ¶
func UnitTimeHasPrefix(v string) predicate.ProxyRedemptionRecord
UnitTimeHasPrefix applies the HasPrefix predicate on the "unit_time" field.
func UnitTimeHasSuffix ¶
func UnitTimeHasSuffix(v string) predicate.ProxyRedemptionRecord
UnitTimeHasSuffix applies the HasSuffix predicate on the "unit_time" field.
func UnitTimeIn ¶
func UnitTimeIn(vs ...string) predicate.ProxyRedemptionRecord
UnitTimeIn applies the In predicate on the "unit_time" field.
func UnitTimeLT ¶
func UnitTimeLT(v string) predicate.ProxyRedemptionRecord
UnitTimeLT applies the LT predicate on the "unit_time" field.
func UnitTimeLTE ¶
func UnitTimeLTE(v string) predicate.ProxyRedemptionRecord
UnitTimeLTE applies the LTE predicate on the "unit_time" field.
func UnitTimeNEQ ¶
func UnitTimeNEQ(v string) predicate.ProxyRedemptionRecord
UnitTimeNEQ applies the NEQ predicate on the "unit_time" field.
func UnitTimeNotIn ¶
func UnitTimeNotIn(vs ...string) predicate.ProxyRedemptionRecord
UnitTimeNotIn applies the NotIn predicate on the "unit_time" field.
func UserID ¶
func UserID(v int64) predicate.ProxyRedemptionRecord
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v int64) predicate.ProxyRedemptionRecord
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...int64) predicate.ProxyRedemptionRecord
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v int64) predicate.ProxyRedemptionRecord
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...int64) predicate.ProxyRedemptionRecord
UserIDNotIn applies the NotIn predicate on the "user_id" 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 ProxyRedemptionRecord queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_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 ByRedeemedAt ¶
func ByRedeemedAt(opts ...sql.OrderTermOption) OrderOption
ByRedeemedAt orders the results by the redeemed_at field.
func ByRedemptionCodeField ¶
func ByRedemptionCodeField(field string, opts ...sql.OrderTermOption) OrderOption
ByRedemptionCodeField orders the results by redemption_code field.
func ByRedemptionCodeID ¶
func ByRedemptionCodeID(opts ...sql.OrderTermOption) OrderOption
ByRedemptionCodeID orders the results by the redemption_code_id field.
func BySubscribeID ¶
func BySubscribeID(opts ...sql.OrderTermOption) OrderOption
BySubscribeID orders the results by the subscribe_id field.
func ByUnitTime ¶
func ByUnitTime(opts ...sql.OrderTermOption) OrderOption
ByUnitTime orders the results by the unit_time field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.
func ByUserID ¶
func ByUserID(opts ...sql.OrderTermOption) OrderOption
ByUserID orders the results by the user_id field.