cycleredeemcode

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
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

Columns holds all SQL columns for cycleredeemcode fields.

View Source
var (
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Functions

func And

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

Cycle applies equality check predicate on the "cycle" field. It's identical to CycleEQ.

func CycleEQ

CycleEQ applies the EQ predicate on the "cycle" field.

func CycleGT

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

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

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 ...uuid.UUID) predicate.CycleRedeemCode

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 ...uuid.UUID) predicate.CycleRedeemCode

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

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

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

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

Jump to

Keyboard shortcuts

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