Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserVoucher) predicate.UserVoucher
- func CreatedAt(v time.Time) predicate.UserVoucher
- func CreatedAtEQ(v time.Time) predicate.UserVoucher
- func CreatedAtGT(v time.Time) predicate.UserVoucher
- func CreatedAtGTE(v time.Time) predicate.UserVoucher
- func CreatedAtIn(vs ...time.Time) predicate.UserVoucher
- func CreatedAtLT(v time.Time) predicate.UserVoucher
- func CreatedAtLTE(v time.Time) predicate.UserVoucher
- func CreatedAtNEQ(v time.Time) predicate.UserVoucher
- func CreatedAtNotIn(vs ...time.Time) predicate.UserVoucher
- func ID(id int) predicate.UserVoucher
- func IDEQ(id int) predicate.UserVoucher
- func IDGT(id int) predicate.UserVoucher
- func IDGTE(id int) predicate.UserVoucher
- func IDIn(ids ...int) predicate.UserVoucher
- func IDLT(id int) predicate.UserVoucher
- func IDLTE(id int) predicate.UserVoucher
- func IDNEQ(id int) predicate.UserVoucher
- func IDNotIn(ids ...int) predicate.UserVoucher
- func Not(p predicate.UserVoucher) predicate.UserVoucher
- func Or(predicates ...predicate.UserVoucher) predicate.UserVoucher
- func UpdatedAt(v time.Time) predicate.UserVoucher
- func UpdatedAtEQ(v time.Time) predicate.UserVoucher
- func UpdatedAtGT(v time.Time) predicate.UserVoucher
- func UpdatedAtGTE(v time.Time) predicate.UserVoucher
- func UpdatedAtIn(vs ...time.Time) predicate.UserVoucher
- func UpdatedAtLT(v time.Time) predicate.UserVoucher
- func UpdatedAtLTE(v time.Time) predicate.UserVoucher
- func UpdatedAtNEQ(v time.Time) predicate.UserVoucher
- func UpdatedAtNotIn(vs ...time.Time) predicate.UserVoucher
- func UserID(v string) predicate.UserVoucher
- func UserIDContains(v string) predicate.UserVoucher
- func UserIDContainsFold(v string) predicate.UserVoucher
- func UserIDEQ(v string) predicate.UserVoucher
- func UserIDEqualFold(v string) predicate.UserVoucher
- func UserIDGT(v string) predicate.UserVoucher
- func UserIDGTE(v string) predicate.UserVoucher
- func UserIDHasPrefix(v string) predicate.UserVoucher
- func UserIDHasSuffix(v string) predicate.UserVoucher
- func UserIDIn(vs ...string) predicate.UserVoucher
- func UserIDLT(v string) predicate.UserVoucher
- func UserIDLTE(v string) predicate.UserVoucher
- func UserIDNEQ(v string) predicate.UserVoucher
- func UserIDNotIn(vs ...string) predicate.UserVoucher
- func ValidColumn(column string) bool
- func VoucherCampaignID(v int64) predicate.UserVoucher
- func VoucherCampaignIDEQ(v int64) predicate.UserVoucher
- func VoucherCampaignIDGT(v int64) predicate.UserVoucher
- func VoucherCampaignIDGTE(v int64) predicate.UserVoucher
- func VoucherCampaignIDIn(vs ...int64) predicate.UserVoucher
- func VoucherCampaignIDLT(v int64) predicate.UserVoucher
- func VoucherCampaignIDLTE(v int64) predicate.UserVoucher
- func VoucherCampaignIDNEQ(v int64) predicate.UserVoucher
- func VoucherCampaignIDNotIn(vs ...int64) predicate.UserVoucher
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the uservoucher type in the database. Label = "user_voucher" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldVoucherCampaignID holds the string denoting the voucher_campaign_id field in the database. FieldVoucherCampaignID = "voucher_campaign_id" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_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" // Table holds the table name of the uservoucher in the database. Table = "user_vouchers" )
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 )
var Columns = []string{ FieldID, FieldVoucherCampaignID, FieldUserID, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for uservoucher fields.
Functions ¶
func And ¶
func And(predicates ...predicate.UserVoucher) predicate.UserVoucher
And groups predicates with the AND operator between them.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.UserVoucher
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.UserVoucher
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.UserVoucher
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.UserVoucher
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.UserVoucher
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.UserVoucher
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.UserVoucher
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.UserVoucher
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.UserVoucher
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func IDGTE ¶
func IDGTE(id int) predicate.UserVoucher
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.UserVoucher
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.UserVoucher
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.UserVoucher
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.UserVoucher
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.UserVoucher) predicate.UserVoucher
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserVoucher) predicate.UserVoucher
Or groups predicates with the OR operator between them.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.UserVoucher
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.UserVoucher
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.UserVoucher
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.UserVoucher
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.UserVoucher
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.UserVoucher
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.UserVoucher
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.UserVoucher
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.UserVoucher
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UserID ¶
func UserID(v string) predicate.UserVoucher
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDContains ¶
func UserIDContains(v string) predicate.UserVoucher
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
func UserIDContainsFold(v string) predicate.UserVoucher
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEQ ¶
func UserIDEQ(v string) predicate.UserVoucher
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDEqualFold ¶
func UserIDEqualFold(v string) predicate.UserVoucher
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDGT ¶
func UserIDGT(v string) predicate.UserVoucher
UserIDGT applies the GT predicate on the "user_id" field.
func UserIDGTE ¶
func UserIDGTE(v string) predicate.UserVoucher
UserIDGTE applies the GTE predicate on the "user_id" field.
func UserIDHasPrefix ¶
func UserIDHasPrefix(v string) predicate.UserVoucher
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
func UserIDHasSuffix(v string) predicate.UserVoucher
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...string) predicate.UserVoucher
UserIDIn applies the In predicate on the "user_id" field.
func UserIDLT ¶
func UserIDLT(v string) predicate.UserVoucher
UserIDLT applies the LT predicate on the "user_id" field.
func UserIDLTE ¶
func UserIDLTE(v string) predicate.UserVoucher
UserIDLTE applies the LTE predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v string) predicate.UserVoucher
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...string) predicate.UserVoucher
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).
func VoucherCampaignID ¶
func VoucherCampaignID(v int64) predicate.UserVoucher
VoucherCampaignID applies equality check predicate on the "voucher_campaign_id" field. It's identical to VoucherCampaignIDEQ.
func VoucherCampaignIDEQ ¶
func VoucherCampaignIDEQ(v int64) predicate.UserVoucher
VoucherCampaignIDEQ applies the EQ predicate on the "voucher_campaign_id" field.
func VoucherCampaignIDGT ¶
func VoucherCampaignIDGT(v int64) predicate.UserVoucher
VoucherCampaignIDGT applies the GT predicate on the "voucher_campaign_id" field.
func VoucherCampaignIDGTE ¶
func VoucherCampaignIDGTE(v int64) predicate.UserVoucher
VoucherCampaignIDGTE applies the GTE predicate on the "voucher_campaign_id" field.
func VoucherCampaignIDIn ¶
func VoucherCampaignIDIn(vs ...int64) predicate.UserVoucher
VoucherCampaignIDIn applies the In predicate on the "voucher_campaign_id" field.
func VoucherCampaignIDLT ¶
func VoucherCampaignIDLT(v int64) predicate.UserVoucher
VoucherCampaignIDLT applies the LT predicate on the "voucher_campaign_id" field.
func VoucherCampaignIDLTE ¶
func VoucherCampaignIDLTE(v int64) predicate.UserVoucher
VoucherCampaignIDLTE applies the LTE predicate on the "voucher_campaign_id" field.
func VoucherCampaignIDNEQ ¶
func VoucherCampaignIDNEQ(v int64) predicate.UserVoucher
VoucherCampaignIDNEQ applies the NEQ predicate on the "voucher_campaign_id" field.
func VoucherCampaignIDNotIn ¶
func VoucherCampaignIDNotIn(vs ...int64) predicate.UserVoucher
VoucherCampaignIDNotIn applies the NotIn predicate on the "voucher_campaign_id" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the UserVoucher 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 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.
func ByVoucherCampaignID ¶
func ByVoucherCampaignID(opts ...sql.OrderTermOption) OrderOption
ByVoucherCampaignID orders the results by the voucher_campaign_id field.