Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.IcoCoupon) predicate.IcoCoupon
- func Cashback(v string) predicate.IcoCoupon
- func CashbackContains(v string) predicate.IcoCoupon
- func CashbackContainsFold(v string) predicate.IcoCoupon
- func CashbackEQ(v string) predicate.IcoCoupon
- func CashbackEqualFold(v string) predicate.IcoCoupon
- func CashbackGT(v string) predicate.IcoCoupon
- func CashbackGTE(v string) predicate.IcoCoupon
- func CashbackHasPrefix(v string) predicate.IcoCoupon
- func CashbackHasSuffix(v string) predicate.IcoCoupon
- func CashbackIn(vs ...string) predicate.IcoCoupon
- func CashbackLT(v string) predicate.IcoCoupon
- func CashbackLTE(v string) predicate.IcoCoupon
- func CashbackNEQ(v string) predicate.IcoCoupon
- func CashbackNotIn(vs ...string) predicate.IcoCoupon
- func Coupon(v string) predicate.IcoCoupon
- func CouponContains(v string) predicate.IcoCoupon
- func CouponContainsFold(v string) predicate.IcoCoupon
- func CouponEQ(v string) predicate.IcoCoupon
- func CouponEqualFold(v string) predicate.IcoCoupon
- func CouponGT(v string) predicate.IcoCoupon
- func CouponGTE(v string) predicate.IcoCoupon
- func CouponHasPrefix(v string) predicate.IcoCoupon
- func CouponHasSuffix(v string) predicate.IcoCoupon
- func CouponIn(vs ...string) predicate.IcoCoupon
- func CouponLT(v string) predicate.IcoCoupon
- func CouponLTE(v string) predicate.IcoCoupon
- func CouponNEQ(v string) predicate.IcoCoupon
- func CouponNotIn(vs ...string) predicate.IcoCoupon
- func CreatedAt(v time.Time) predicate.IcoCoupon
- func CreatedAtEQ(v time.Time) predicate.IcoCoupon
- func CreatedAtGT(v time.Time) predicate.IcoCoupon
- func CreatedAtGTE(v time.Time) predicate.IcoCoupon
- func CreatedAtIn(vs ...time.Time) predicate.IcoCoupon
- func CreatedAtLT(v time.Time) predicate.IcoCoupon
- func CreatedAtLTE(v time.Time) predicate.IcoCoupon
- func CreatedAtNEQ(v time.Time) predicate.IcoCoupon
- func CreatedAtNotIn(vs ...time.Time) predicate.IcoCoupon
- func DeletedAt(v time.Time) predicate.IcoCoupon
- func DeletedAtEQ(v time.Time) predicate.IcoCoupon
- func DeletedAtGT(v time.Time) predicate.IcoCoupon
- func DeletedAtGTE(v time.Time) predicate.IcoCoupon
- func DeletedAtIn(vs ...time.Time) predicate.IcoCoupon
- func DeletedAtIsNil() predicate.IcoCoupon
- func DeletedAtLT(v time.Time) predicate.IcoCoupon
- func DeletedAtLTE(v time.Time) predicate.IcoCoupon
- func DeletedAtNEQ(v time.Time) predicate.IcoCoupon
- func DeletedAtNotIn(vs ...time.Time) predicate.IcoCoupon
- func DeletedAtNotNil() predicate.IcoCoupon
- func ID(id xid.ID) predicate.IcoCoupon
- func IDEQ(id xid.ID) predicate.IcoCoupon
- func IDGT(id xid.ID) predicate.IcoCoupon
- func IDGTE(id xid.ID) predicate.IcoCoupon
- func IDIn(ids ...xid.ID) predicate.IcoCoupon
- func IDLT(id xid.ID) predicate.IcoCoupon
- func IDLTE(id xid.ID) predicate.IcoCoupon
- func IDNEQ(id xid.ID) predicate.IcoCoupon
- func IDNotIn(ids ...xid.ID) predicate.IcoCoupon
- func Not(p predicate.IcoCoupon) predicate.IcoCoupon
- func Or(predicates ...predicate.IcoCoupon) predicate.IcoCoupon
- func Reward(v string) predicate.IcoCoupon
- func RewardContains(v string) predicate.IcoCoupon
- func RewardContainsFold(v string) predicate.IcoCoupon
- func RewardEQ(v string) predicate.IcoCoupon
- func RewardEqualFold(v string) predicate.IcoCoupon
- func RewardGT(v string) predicate.IcoCoupon
- func RewardGTE(v string) predicate.IcoCoupon
- func RewardHasPrefix(v string) predicate.IcoCoupon
- func RewardHasSuffix(v string) predicate.IcoCoupon
- func RewardIn(vs ...string) predicate.IcoCoupon
- func RewardLT(v string) predicate.IcoCoupon
- func RewardLTE(v string) predicate.IcoCoupon
- func RewardNEQ(v string) predicate.IcoCoupon
- func RewardNotIn(vs ...string) predicate.IcoCoupon
- func UpdatedAt(v time.Time) predicate.IcoCoupon
- func UpdatedAtEQ(v time.Time) predicate.IcoCoupon
- func UpdatedAtGT(v time.Time) predicate.IcoCoupon
- func UpdatedAtGTE(v time.Time) predicate.IcoCoupon
- func UpdatedAtIn(vs ...time.Time) predicate.IcoCoupon
- func UpdatedAtLT(v time.Time) predicate.IcoCoupon
- func UpdatedAtLTE(v time.Time) predicate.IcoCoupon
- func UpdatedAtNEQ(v time.Time) predicate.IcoCoupon
- func UpdatedAtNotIn(vs ...time.Time) predicate.IcoCoupon
- func UserID(v string) predicate.IcoCoupon
- func UserIDContains(v string) predicate.IcoCoupon
- func UserIDContainsFold(v string) predicate.IcoCoupon
- func UserIDEQ(v string) predicate.IcoCoupon
- func UserIDEqualFold(v string) predicate.IcoCoupon
- func UserIDGT(v string) predicate.IcoCoupon
- func UserIDGTE(v string) predicate.IcoCoupon
- func UserIDHasPrefix(v string) predicate.IcoCoupon
- func UserIDHasSuffix(v string) predicate.IcoCoupon
- func UserIDIn(vs ...string) predicate.IcoCoupon
- func UserIDLT(v string) predicate.IcoCoupon
- func UserIDLTE(v string) predicate.IcoCoupon
- func UserIDNEQ(v string) predicate.IcoCoupon
- func UserIDNotIn(vs ...string) predicate.IcoCoupon
- func ValidColumn(column string) bool
- type OrderOption
- func ByCashback(opts ...sql.OrderTermOption) OrderOption
- func ByCoupon(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByReward(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldUserID, FieldCoupon, FieldReward, FieldCashback, FieldDeletedAt, }
Columns holds all SQL columns for icocoupon fields.
Functions ¶
func Cashback ¶
Cashback applies equality check predicate on the "cashback" field. It's identical to CashbackEQ.
func CashbackContains ¶
CashbackContains applies the Contains predicate on the "cashback" field.
func CashbackContainsFold ¶
CashbackContainsFold applies the ContainsFold predicate on the "cashback" field.
func CashbackEQ ¶
CashbackEQ applies the EQ predicate on the "cashback" field.
func CashbackEqualFold ¶
CashbackEqualFold applies the EqualFold predicate on the "cashback" field.
func CashbackGT ¶
CashbackGT applies the GT predicate on the "cashback" field.
func CashbackGTE ¶
CashbackGTE applies the GTE predicate on the "cashback" field.
func CashbackHasPrefix ¶
CashbackHasPrefix applies the HasPrefix predicate on the "cashback" field.
func CashbackHasSuffix ¶
CashbackHasSuffix applies the HasSuffix predicate on the "cashback" field.
func CashbackIn ¶
CashbackIn applies the In predicate on the "cashback" field.
func CashbackLT ¶
CashbackLT applies the LT predicate on the "cashback" field.
func CashbackLTE ¶
CashbackLTE applies the LTE predicate on the "cashback" field.
func CashbackNEQ ¶
CashbackNEQ applies the NEQ predicate on the "cashback" field.
func CashbackNotIn ¶
CashbackNotIn applies the NotIn predicate on the "cashback" field.
func Coupon ¶
Coupon applies equality check predicate on the "coupon" field. It's identical to CouponEQ.
func CouponContains ¶
CouponContains applies the Contains predicate on the "coupon" field.
func CouponContainsFold ¶
CouponContainsFold applies the ContainsFold predicate on the "coupon" field.
func CouponEqualFold ¶
CouponEqualFold applies the EqualFold predicate on the "coupon" field.
func CouponHasPrefix ¶
CouponHasPrefix applies the HasPrefix predicate on the "coupon" field.
func CouponHasSuffix ¶
CouponHasSuffix applies the HasSuffix predicate on the "coupon" field.
func CouponNotIn ¶
CouponNotIn applies the NotIn predicate on the "coupon" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Reward ¶
Reward applies equality check predicate on the "reward" field. It's identical to RewardEQ.
func RewardContains ¶
RewardContains applies the Contains predicate on the "reward" field.
func RewardContainsFold ¶
RewardContainsFold applies the ContainsFold predicate on the "reward" field.
func RewardEqualFold ¶
RewardEqualFold applies the EqualFold predicate on the "reward" field.
func RewardHasPrefix ¶
RewardHasPrefix applies the HasPrefix predicate on the "reward" field.
func RewardHasSuffix ¶
RewardHasSuffix applies the HasSuffix predicate on the "reward" field.
func RewardNotIn ¶
RewardNotIn applies the NotIn predicate on the "reward" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEqualFold ¶
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDHasPrefix ¶
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDNotIn ¶
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 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.