Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.CycleRedeemCode) predicate.CycleRedeemCode
- func CreateTime(v time.Time) predicate.CycleRedeemCode
- func CreateTimeEQ(v time.Time) predicate.CycleRedeemCode
- func CreateTimeGT(v time.Time) predicate.CycleRedeemCode
- func CreateTimeGTE(v time.Time) predicate.CycleRedeemCode
- func CreateTimeIn(vs ...time.Time) predicate.CycleRedeemCode
- func CreateTimeLT(v time.Time) predicate.CycleRedeemCode
- func CreateTimeLTE(v time.Time) predicate.CycleRedeemCode
- func CreateTimeNEQ(v time.Time) predicate.CycleRedeemCode
- func CreateTimeNotIn(vs ...time.Time) predicate.CycleRedeemCode
- func Cycle(v float64) predicate.CycleRedeemCode
- func CycleEQ(v float64) predicate.CycleRedeemCode
- func CycleGT(v float64) predicate.CycleRedeemCode
- func CycleGTE(v float64) predicate.CycleRedeemCode
- func CycleIn(vs ...float64) predicate.CycleRedeemCode
- func CycleLT(v float64) predicate.CycleRedeemCode
- func CycleLTE(v float64) predicate.CycleRedeemCode
- func CycleNEQ(v float64) predicate.CycleRedeemCode
- func CycleNotIn(vs ...float64) predicate.CycleRedeemCode
- func FkUserID(v uuid.UUID) predicate.CycleRedeemCode
- func FkUserIDEQ(v uuid.UUID) predicate.CycleRedeemCode
- func FkUserIDGT(v uuid.UUID) predicate.CycleRedeemCode
- func FkUserIDGTE(v uuid.UUID) predicate.CycleRedeemCode
- func FkUserIDIn(vs ...uuid.UUID) predicate.CycleRedeemCode
- func FkUserIDIsNil() predicate.CycleRedeemCode
- func FkUserIDLT(v uuid.UUID) predicate.CycleRedeemCode
- func FkUserIDLTE(v uuid.UUID) predicate.CycleRedeemCode
- func FkUserIDNEQ(v uuid.UUID) predicate.CycleRedeemCode
- func FkUserIDNotIn(vs ...uuid.UUID) predicate.CycleRedeemCode
- func FkUserIDNotNil() predicate.CycleRedeemCode
- func ID(id uuid.UUID) predicate.CycleRedeemCode
- func IDEQ(id uuid.UUID) predicate.CycleRedeemCode
- func IDGT(id uuid.UUID) predicate.CycleRedeemCode
- func IDGTE(id uuid.UUID) predicate.CycleRedeemCode
- func IDIn(ids ...uuid.UUID) predicate.CycleRedeemCode
- func IDLT(id uuid.UUID) predicate.CycleRedeemCode
- func IDLTE(id uuid.UUID) predicate.CycleRedeemCode
- func IDNEQ(id uuid.UUID) predicate.CycleRedeemCode
- func IDNotIn(ids ...uuid.UUID) predicate.CycleRedeemCode
- func Not(p predicate.CycleRedeemCode) predicate.CycleRedeemCode
- func Or(predicates ...predicate.CycleRedeemCode) predicate.CycleRedeemCode
- func RedeemCode(v string) predicate.CycleRedeemCode
- func RedeemCodeContains(v string) predicate.CycleRedeemCode
- func RedeemCodeContainsFold(v string) predicate.CycleRedeemCode
- func RedeemCodeEQ(v string) predicate.CycleRedeemCode
- func RedeemCodeEqualFold(v string) predicate.CycleRedeemCode
- func RedeemCodeGT(v string) predicate.CycleRedeemCode
- func RedeemCodeGTE(v string) predicate.CycleRedeemCode
- func RedeemCodeHasPrefix(v string) predicate.CycleRedeemCode
- func RedeemCodeHasSuffix(v string) predicate.CycleRedeemCode
- func RedeemCodeIn(vs ...string) predicate.CycleRedeemCode
- func RedeemCodeLT(v string) predicate.CycleRedeemCode
- func RedeemCodeLTE(v string) predicate.CycleRedeemCode
- func RedeemCodeNEQ(v string) predicate.CycleRedeemCode
- func RedeemCodeNotIn(vs ...string) predicate.CycleRedeemCode
- func State(v bool) predicate.CycleRedeemCode
- func StateEQ(v bool) predicate.CycleRedeemCode
- func StateNEQ(v bool) predicate.CycleRedeemCode
- func UseTime(v time.Time) predicate.CycleRedeemCode
- func UseTimeEQ(v time.Time) predicate.CycleRedeemCode
- func UseTimeGT(v time.Time) predicate.CycleRedeemCode
- func UseTimeGTE(v time.Time) predicate.CycleRedeemCode
- func UseTimeIn(vs ...time.Time) predicate.CycleRedeemCode
- func UseTimeIsNil() predicate.CycleRedeemCode
- func UseTimeLT(v time.Time) predicate.CycleRedeemCode
- func UseTimeLTE(v time.Time) predicate.CycleRedeemCode
- func UseTimeNEQ(v time.Time) predicate.CycleRedeemCode
- func UseTimeNotIn(vs ...time.Time) predicate.CycleRedeemCode
- func UseTimeNotNil() predicate.CycleRedeemCode
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByCycle(opts ...sql.OrderTermOption) OrderOption
- func ByFkUserID(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByRedeemCode(opts ...sql.OrderTermOption) OrderOption
- func ByState(opts ...sql.OrderTermOption) OrderOption
- func ByUseTime(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the cycleredeemcode type in the database. Label = "cycle_redeem_code" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldFkUserID holds the string denoting the fk_user_id field in the database. FieldFkUserID = "fk_user_id" // FieldRedeemCode holds the string denoting the redeem_code field in the database. FieldRedeemCode = "redeem_code" // FieldCycle holds the string denoting the cycle field in the database. FieldCycle = "cycle" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldUseTime holds the string denoting the use_time field in the database. FieldUseTime = "use_time" // Table holds the table name of the cycleredeemcode in the database. Table = "cycle_redeem_codes" )
Variables ¶
var Columns = []string{ FieldID, FieldFkUserID, FieldRedeemCode, FieldCycle, FieldState, FieldCreateTime, FieldUseTime, }
Columns holds all SQL columns for cycleredeemcode fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func And ¶
func And(predicates ...predicate.CycleRedeemCode) predicate.CycleRedeemCode
And groups predicates with the AND operator between them.
func CreateTime ¶
func CreateTime(v time.Time) predicate.CycleRedeemCode
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.CycleRedeemCode
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.CycleRedeemCode
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.CycleRedeemCode
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.CycleRedeemCode
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.CycleRedeemCode
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.CycleRedeemCode
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.CycleRedeemCode
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.CycleRedeemCode
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func Cycle ¶
func Cycle(v float64) predicate.CycleRedeemCode
Cycle applies equality check predicate on the "cycle" field. It's identical to CycleEQ.
func CycleEQ ¶
func CycleEQ(v float64) predicate.CycleRedeemCode
CycleEQ applies the EQ predicate on the "cycle" field.
func CycleGT ¶
func CycleGT(v float64) predicate.CycleRedeemCode
CycleGT applies the GT predicate on the "cycle" field.
func CycleGTE ¶
func CycleGTE(v float64) predicate.CycleRedeemCode
CycleGTE applies the GTE predicate on the "cycle" field.
func CycleIn ¶
func CycleIn(vs ...float64) predicate.CycleRedeemCode
CycleIn applies the In predicate on the "cycle" field.
func CycleLT ¶
func CycleLT(v float64) predicate.CycleRedeemCode
CycleLT applies the LT predicate on the "cycle" field.
func CycleLTE ¶
func CycleLTE(v float64) predicate.CycleRedeemCode
CycleLTE applies the LTE predicate on the "cycle" field.
func CycleNEQ ¶
func CycleNEQ(v float64) predicate.CycleRedeemCode
CycleNEQ applies the NEQ predicate on the "cycle" field.
func CycleNotIn ¶
func CycleNotIn(vs ...float64) predicate.CycleRedeemCode
CycleNotIn applies the NotIn predicate on the "cycle" field.
func FkUserID ¶
func FkUserID(v uuid.UUID) predicate.CycleRedeemCode
FkUserID applies equality check predicate on the "fk_user_id" field. It's identical to FkUserIDEQ.
func FkUserIDEQ ¶
func FkUserIDEQ(v uuid.UUID) predicate.CycleRedeemCode
FkUserIDEQ applies the EQ predicate on the "fk_user_id" field.
func FkUserIDGT ¶
func FkUserIDGT(v uuid.UUID) predicate.CycleRedeemCode
FkUserIDGT applies the GT predicate on the "fk_user_id" field.
func FkUserIDGTE ¶
func FkUserIDGTE(v uuid.UUID) predicate.CycleRedeemCode
FkUserIDGTE applies the GTE predicate on the "fk_user_id" field.
func FkUserIDIn ¶
func FkUserIDIn(vs ...uuid.UUID) predicate.CycleRedeemCode
FkUserIDIn applies the In predicate on the "fk_user_id" field.
func FkUserIDIsNil ¶
func FkUserIDIsNil() predicate.CycleRedeemCode
FkUserIDIsNil applies the IsNil predicate on the "fk_user_id" field.
func FkUserIDLT ¶
func FkUserIDLT(v uuid.UUID) predicate.CycleRedeemCode
FkUserIDLT applies the LT predicate on the "fk_user_id" field.
func FkUserIDLTE ¶
func FkUserIDLTE(v uuid.UUID) predicate.CycleRedeemCode
FkUserIDLTE applies the LTE predicate on the "fk_user_id" field.
func FkUserIDNEQ ¶
func FkUserIDNEQ(v uuid.UUID) predicate.CycleRedeemCode
FkUserIDNEQ applies the NEQ predicate on the "fk_user_id" field.
func FkUserIDNotIn ¶
func FkUserIDNotIn(vs ...uuid.UUID) predicate.CycleRedeemCode
FkUserIDNotIn applies the NotIn predicate on the "fk_user_id" field.
func FkUserIDNotNil ¶
func FkUserIDNotNil() predicate.CycleRedeemCode
FkUserIDNotNil applies the NotNil predicate on the "fk_user_id" field.
func ID ¶
func ID(id uuid.UUID) predicate.CycleRedeemCode
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.CycleRedeemCode
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.CycleRedeemCode
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.CycleRedeemCode
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.CycleRedeemCode
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.CycleRedeemCode
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.CycleRedeemCode
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.CycleRedeemCode
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.CycleRedeemCode
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.CycleRedeemCode) predicate.CycleRedeemCode
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.CycleRedeemCode) predicate.CycleRedeemCode
Or groups predicates with the OR operator between them.
func RedeemCode ¶
func RedeemCode(v string) predicate.CycleRedeemCode
RedeemCode applies equality check predicate on the "redeem_code" field. It's identical to RedeemCodeEQ.
func RedeemCodeContains ¶
func RedeemCodeContains(v string) predicate.CycleRedeemCode
RedeemCodeContains applies the Contains predicate on the "redeem_code" field.
func RedeemCodeContainsFold ¶
func RedeemCodeContainsFold(v string) predicate.CycleRedeemCode
RedeemCodeContainsFold applies the ContainsFold predicate on the "redeem_code" field.
func RedeemCodeEQ ¶
func RedeemCodeEQ(v string) predicate.CycleRedeemCode
RedeemCodeEQ applies the EQ predicate on the "redeem_code" field.
func RedeemCodeEqualFold ¶
func RedeemCodeEqualFold(v string) predicate.CycleRedeemCode
RedeemCodeEqualFold applies the EqualFold predicate on the "redeem_code" field.
func RedeemCodeGT ¶
func RedeemCodeGT(v string) predicate.CycleRedeemCode
RedeemCodeGT applies the GT predicate on the "redeem_code" field.
func RedeemCodeGTE ¶
func RedeemCodeGTE(v string) predicate.CycleRedeemCode
RedeemCodeGTE applies the GTE predicate on the "redeem_code" field.
func RedeemCodeHasPrefix ¶
func RedeemCodeHasPrefix(v string) predicate.CycleRedeemCode
RedeemCodeHasPrefix applies the HasPrefix predicate on the "redeem_code" field.
func RedeemCodeHasSuffix ¶
func RedeemCodeHasSuffix(v string) predicate.CycleRedeemCode
RedeemCodeHasSuffix applies the HasSuffix predicate on the "redeem_code" field.
func RedeemCodeIn ¶
func RedeemCodeIn(vs ...string) predicate.CycleRedeemCode
RedeemCodeIn applies the In predicate on the "redeem_code" field.
func RedeemCodeLT ¶
func RedeemCodeLT(v string) predicate.CycleRedeemCode
RedeemCodeLT applies the LT predicate on the "redeem_code" field.
func RedeemCodeLTE ¶
func RedeemCodeLTE(v string) predicate.CycleRedeemCode
RedeemCodeLTE applies the LTE predicate on the "redeem_code" field.
func RedeemCodeNEQ ¶
func RedeemCodeNEQ(v string) predicate.CycleRedeemCode
RedeemCodeNEQ applies the NEQ predicate on the "redeem_code" field.
func RedeemCodeNotIn ¶
func RedeemCodeNotIn(vs ...string) predicate.CycleRedeemCode
RedeemCodeNotIn applies the NotIn predicate on the "redeem_code" field.
func State ¶
func State(v bool) predicate.CycleRedeemCode
State applies equality check predicate on the "state" field. It's identical to StateEQ.
func StateEQ ¶
func StateEQ(v bool) predicate.CycleRedeemCode
StateEQ applies the EQ predicate on the "state" field.
func StateNEQ ¶
func StateNEQ(v bool) predicate.CycleRedeemCode
StateNEQ applies the NEQ predicate on the "state" field.
func UseTime ¶
func UseTime(v time.Time) predicate.CycleRedeemCode
UseTime applies equality check predicate on the "use_time" field. It's identical to UseTimeEQ.
func UseTimeEQ ¶
func UseTimeEQ(v time.Time) predicate.CycleRedeemCode
UseTimeEQ applies the EQ predicate on the "use_time" field.
func UseTimeGT ¶
func UseTimeGT(v time.Time) predicate.CycleRedeemCode
UseTimeGT applies the GT predicate on the "use_time" field.
func UseTimeGTE ¶
func UseTimeGTE(v time.Time) predicate.CycleRedeemCode
UseTimeGTE applies the GTE predicate on the "use_time" field.
func UseTimeIn ¶
func UseTimeIn(vs ...time.Time) predicate.CycleRedeemCode
UseTimeIn applies the In predicate on the "use_time" field.
func UseTimeIsNil ¶
func UseTimeIsNil() predicate.CycleRedeemCode
UseTimeIsNil applies the IsNil predicate on the "use_time" field.
func UseTimeLT ¶
func UseTimeLT(v time.Time) predicate.CycleRedeemCode
UseTimeLT applies the LT predicate on the "use_time" field.
func UseTimeLTE ¶
func UseTimeLTE(v time.Time) predicate.CycleRedeemCode
UseTimeLTE applies the LTE predicate on the "use_time" field.
func UseTimeNEQ ¶
func UseTimeNEQ(v time.Time) predicate.CycleRedeemCode
UseTimeNEQ applies the NEQ predicate on the "use_time" field.
func UseTimeNotIn ¶
func UseTimeNotIn(vs ...time.Time) predicate.CycleRedeemCode
UseTimeNotIn applies the NotIn predicate on the "use_time" field.
func UseTimeNotNil ¶
func UseTimeNotNil() predicate.CycleRedeemCode
UseTimeNotNil applies the NotNil predicate on the "use_time" 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 CycleRedeemCode queries.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByCycle ¶
func ByCycle(opts ...sql.OrderTermOption) OrderOption
ByCycle orders the results by the cycle field.
func ByFkUserID ¶
func ByFkUserID(opts ...sql.OrderTermOption) OrderOption
ByFkUserID orders the results by the fk_user_id field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByRedeemCode ¶
func ByRedeemCode(opts ...sql.OrderTermOption) OrderOption
ByRedeemCode orders the results by the redeem_code field.
func ByState ¶
func ByState(opts ...sql.OrderTermOption) OrderOption
ByState orders the results by the state field.
func ByUseTime ¶
func ByUseTime(opts ...sql.OrderTermOption) OrderOption
ByUseTime orders the results by the use_time field.