icocoupon

package
v0.0.0-...-5b7c39b Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the icocoupon type in the database.
	Label = "ico_coupon"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// 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"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldCoupon holds the string denoting the coupon field in the database.
	FieldCoupon = "coupon"
	// FieldReward holds the string denoting the reward field in the database.
	FieldReward = "reward"
	// FieldCashback holds the string denoting the cashback field in the database.
	FieldCashback = "cashback"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// Table holds the table name of the icocoupon in the database.
	Table = "ico_coupons"
)

Variables

View Source
var (
	// 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
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() xid.ID
)

Columns holds all SQL columns for icocoupon fields.

Functions

func And

func And(predicates ...predicate.IcoCoupon) predicate.IcoCoupon

And groups predicates with the AND operator between them.

func Cashback

func Cashback(v string) predicate.IcoCoupon

Cashback applies equality check predicate on the "cashback" field. It's identical to CashbackEQ.

func CashbackContains

func CashbackContains(v string) predicate.IcoCoupon

CashbackContains applies the Contains predicate on the "cashback" field.

func CashbackContainsFold

func CashbackContainsFold(v string) predicate.IcoCoupon

CashbackContainsFold applies the ContainsFold predicate on the "cashback" field.

func CashbackEQ

func CashbackEQ(v string) predicate.IcoCoupon

CashbackEQ applies the EQ predicate on the "cashback" field.

func CashbackEqualFold

func CashbackEqualFold(v string) predicate.IcoCoupon

CashbackEqualFold applies the EqualFold predicate on the "cashback" field.

func CashbackGT

func CashbackGT(v string) predicate.IcoCoupon

CashbackGT applies the GT predicate on the "cashback" field.

func CashbackGTE

func CashbackGTE(v string) predicate.IcoCoupon

CashbackGTE applies the GTE predicate on the "cashback" field.

func CashbackHasPrefix

func CashbackHasPrefix(v string) predicate.IcoCoupon

CashbackHasPrefix applies the HasPrefix predicate on the "cashback" field.

func CashbackHasSuffix

func CashbackHasSuffix(v string) predicate.IcoCoupon

CashbackHasSuffix applies the HasSuffix predicate on the "cashback" field.

func CashbackIn

func CashbackIn(vs ...string) predicate.IcoCoupon

CashbackIn applies the In predicate on the "cashback" field.

func CashbackLT

func CashbackLT(v string) predicate.IcoCoupon

CashbackLT applies the LT predicate on the "cashback" field.

func CashbackLTE

func CashbackLTE(v string) predicate.IcoCoupon

CashbackLTE applies the LTE predicate on the "cashback" field.

func CashbackNEQ

func CashbackNEQ(v string) predicate.IcoCoupon

CashbackNEQ applies the NEQ predicate on the "cashback" field.

func CashbackNotIn

func CashbackNotIn(vs ...string) predicate.IcoCoupon

CashbackNotIn applies the NotIn predicate on the "cashback" field.

func Coupon

func Coupon(v string) predicate.IcoCoupon

Coupon applies equality check predicate on the "coupon" field. It's identical to CouponEQ.

func CouponContains

func CouponContains(v string) predicate.IcoCoupon

CouponContains applies the Contains predicate on the "coupon" field.

func CouponContainsFold

func CouponContainsFold(v string) predicate.IcoCoupon

CouponContainsFold applies the ContainsFold predicate on the "coupon" field.

func CouponEQ

func CouponEQ(v string) predicate.IcoCoupon

CouponEQ applies the EQ predicate on the "coupon" field.

func CouponEqualFold

func CouponEqualFold(v string) predicate.IcoCoupon

CouponEqualFold applies the EqualFold predicate on the "coupon" field.

func CouponGT

func CouponGT(v string) predicate.IcoCoupon

CouponGT applies the GT predicate on the "coupon" field.

func CouponGTE

func CouponGTE(v string) predicate.IcoCoupon

CouponGTE applies the GTE predicate on the "coupon" field.

func CouponHasPrefix

func CouponHasPrefix(v string) predicate.IcoCoupon

CouponHasPrefix applies the HasPrefix predicate on the "coupon" field.

func CouponHasSuffix

func CouponHasSuffix(v string) predicate.IcoCoupon

CouponHasSuffix applies the HasSuffix predicate on the "coupon" field.

func CouponIn

func CouponIn(vs ...string) predicate.IcoCoupon

CouponIn applies the In predicate on the "coupon" field.

func CouponLT

func CouponLT(v string) predicate.IcoCoupon

CouponLT applies the LT predicate on the "coupon" field.

func CouponLTE

func CouponLTE(v string) predicate.IcoCoupon

CouponLTE applies the LTE predicate on the "coupon" field.

func CouponNEQ

func CouponNEQ(v string) predicate.IcoCoupon

CouponNEQ applies the NEQ predicate on the "coupon" field.

func CouponNotIn

func CouponNotIn(vs ...string) predicate.IcoCoupon

CouponNotIn applies the NotIn predicate on the "coupon" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.IcoCoupon

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.IcoCoupon

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.IcoCoupon

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.IcoCoupon

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

func CreatedAtIn

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

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.IcoCoupon

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.IcoCoupon

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.IcoCoupon

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

func CreatedAtNotIn

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

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

func DeletedAt

func DeletedAt(v time.Time) predicate.IcoCoupon

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.IcoCoupon

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.IcoCoupon

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.IcoCoupon

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.IcoCoupon

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.IcoCoupon

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.IcoCoupon

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.IcoCoupon

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.IcoCoupon

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

func ID

func ID(id xid.ID) predicate.IcoCoupon

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id xid.ID) predicate.IcoCoupon

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id xid.ID) predicate.IcoCoupon

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id xid.ID) predicate.IcoCoupon

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...xid.ID) predicate.IcoCoupon

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id xid.ID) predicate.IcoCoupon

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id xid.ID) predicate.IcoCoupon

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id xid.ID) predicate.IcoCoupon

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...xid.ID) predicate.IcoCoupon

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.IcoCoupon) predicate.IcoCoupon

Or groups predicates with the OR operator between them.

func Reward

func Reward(v string) predicate.IcoCoupon

Reward applies equality check predicate on the "reward" field. It's identical to RewardEQ.

func RewardContains

func RewardContains(v string) predicate.IcoCoupon

RewardContains applies the Contains predicate on the "reward" field.

func RewardContainsFold

func RewardContainsFold(v string) predicate.IcoCoupon

RewardContainsFold applies the ContainsFold predicate on the "reward" field.

func RewardEQ

func RewardEQ(v string) predicate.IcoCoupon

RewardEQ applies the EQ predicate on the "reward" field.

func RewardEqualFold

func RewardEqualFold(v string) predicate.IcoCoupon

RewardEqualFold applies the EqualFold predicate on the "reward" field.

func RewardGT

func RewardGT(v string) predicate.IcoCoupon

RewardGT applies the GT predicate on the "reward" field.

func RewardGTE

func RewardGTE(v string) predicate.IcoCoupon

RewardGTE applies the GTE predicate on the "reward" field.

func RewardHasPrefix

func RewardHasPrefix(v string) predicate.IcoCoupon

RewardHasPrefix applies the HasPrefix predicate on the "reward" field.

func RewardHasSuffix

func RewardHasSuffix(v string) predicate.IcoCoupon

RewardHasSuffix applies the HasSuffix predicate on the "reward" field.

func RewardIn

func RewardIn(vs ...string) predicate.IcoCoupon

RewardIn applies the In predicate on the "reward" field.

func RewardLT

func RewardLT(v string) predicate.IcoCoupon

RewardLT applies the LT predicate on the "reward" field.

func RewardLTE

func RewardLTE(v string) predicate.IcoCoupon

RewardLTE applies the LTE predicate on the "reward" field.

func RewardNEQ

func RewardNEQ(v string) predicate.IcoCoupon

RewardNEQ applies the NEQ predicate on the "reward" field.

func RewardNotIn

func RewardNotIn(vs ...string) predicate.IcoCoupon

RewardNotIn applies the NotIn predicate on the "reward" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.IcoCoupon

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.IcoCoupon

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.IcoCoupon

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.IcoCoupon

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

func UpdatedAtIn

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

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.IcoCoupon

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.IcoCoupon

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.IcoCoupon

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

func UpdatedAtNotIn

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

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

func UserID

func UserID(v string) predicate.IcoCoupon

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDContains

func UserIDContains(v string) predicate.IcoCoupon

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.IcoCoupon

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

func UserIDEQ(v string) predicate.IcoCoupon

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.IcoCoupon

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

func UserIDGT(v string) predicate.IcoCoupon

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

func UserIDGTE(v string) predicate.IcoCoupon

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.IcoCoupon

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.IcoCoupon

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...string) predicate.IcoCoupon

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

func UserIDLT(v string) predicate.IcoCoupon

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

func UserIDLTE(v string) predicate.IcoCoupon

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

func UserIDNEQ(v string) predicate.IcoCoupon

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...string) predicate.IcoCoupon

UserIDNotIn applies the NotIn predicate on the "user_id" 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 IcoCoupon queries.

func ByCashback

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

ByCashback orders the results by the cashback field.

func ByCoupon

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

ByCoupon orders the results by the coupon 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 ByReward

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

ByReward orders the results by the reward field.

func ByUpdatedAt

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

ByUpdatedAt orders the results by the updated_at field.

func ByUserID

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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