Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.UserPromoCode) predicate.UserPromoCode
- func City(v string) predicate.UserPromoCode
- func CityContains(v string) predicate.UserPromoCode
- func CityContainsFold(v string) predicate.UserPromoCode
- func CityEQ(v string) predicate.UserPromoCode
- func CityEqualFold(v string) predicate.UserPromoCode
- func CityGT(v string) predicate.UserPromoCode
- func CityGTE(v string) predicate.UserPromoCode
- func CityHasPrefix(v string) predicate.UserPromoCode
- func CityHasSuffix(v string) predicate.UserPromoCode
- func CityIn(vs ...string) predicate.UserPromoCode
- func CityLT(v string) predicate.UserPromoCode
- func CityLTE(v string) predicate.UserPromoCode
- func CityNEQ(v string) predicate.UserPromoCode
- func CityNotIn(vs ...string) predicate.UserPromoCode
- func Code(v string) predicate.UserPromoCode
- func CodeContains(v string) predicate.UserPromoCode
- func CodeContainsFold(v string) predicate.UserPromoCode
- func CodeEQ(v string) predicate.UserPromoCode
- func CodeEqualFold(v string) predicate.UserPromoCode
- func CodeGT(v string) predicate.UserPromoCode
- func CodeGTE(v string) predicate.UserPromoCode
- func CodeHasPrefix(v string) predicate.UserPromoCode
- func CodeHasSuffix(v string) predicate.UserPromoCode
- func CodeIn(vs ...string) predicate.UserPromoCode
- func CodeLT(v string) predicate.UserPromoCode
- func CodeLTE(v string) predicate.UserPromoCode
- func CodeNEQ(v string) predicate.UserPromoCode
- func CodeNotIn(vs ...string) predicate.UserPromoCode
- func HasUser() predicate.UserPromoCode
- func HasUserWith(preds ...predicate.User) predicate.UserPromoCode
- func ID(id uuid.UUID) predicate.UserPromoCode
- func IDEQ(id uuid.UUID) predicate.UserPromoCode
- func IDGT(id uuid.UUID) predicate.UserPromoCode
- func IDGTE(id uuid.UUID) predicate.UserPromoCode
- func IDIn(ids ...uuid.UUID) predicate.UserPromoCode
- func IDLT(id uuid.UUID) predicate.UserPromoCode
- func IDLTE(id uuid.UUID) predicate.UserPromoCode
- func IDNEQ(id uuid.UUID) predicate.UserPromoCode
- func IDNotIn(ids ...uuid.UUID) predicate.UserPromoCode
- func Not(p predicate.UserPromoCode) predicate.UserPromoCode
- func Or(predicates ...predicate.UserPromoCode) predicate.UserPromoCode
- func Timestamp(v time.Time) predicate.UserPromoCode
- func TimestampEQ(v time.Time) predicate.UserPromoCode
- func TimestampGT(v time.Time) predicate.UserPromoCode
- func TimestampGTE(v time.Time) predicate.UserPromoCode
- func TimestampIn(vs ...time.Time) predicate.UserPromoCode
- func TimestampIsNil() predicate.UserPromoCode
- func TimestampLT(v time.Time) predicate.UserPromoCode
- func TimestampLTE(v time.Time) predicate.UserPromoCode
- func TimestampNEQ(v time.Time) predicate.UserPromoCode
- func TimestampNotIn(vs ...time.Time) predicate.UserPromoCode
- func TimestampNotNil() predicate.UserPromoCode
- func UsageCount(v int) predicate.UserPromoCode
- func UsageCountEQ(v int) predicate.UserPromoCode
- func UsageCountGT(v int) predicate.UserPromoCode
- func UsageCountGTE(v int) predicate.UserPromoCode
- func UsageCountIn(vs ...int) predicate.UserPromoCode
- func UsageCountIsNil() predicate.UserPromoCode
- func UsageCountLT(v int) predicate.UserPromoCode
- func UsageCountLTE(v int) predicate.UserPromoCode
- func UsageCountNEQ(v int) predicate.UserPromoCode
- func UsageCountNotIn(vs ...int) predicate.UserPromoCode
- func UsageCountNotNil() predicate.UserPromoCode
- func UserID(v uuid.UUID) predicate.UserPromoCode
- func UserIDEQ(v uuid.UUID) predicate.UserPromoCode
- func UserIDIn(vs ...uuid.UUID) predicate.UserPromoCode
- func UserIDNEQ(v uuid.UUID) predicate.UserPromoCode
- func UserIDNotIn(vs ...uuid.UUID) predicate.UserPromoCode
- func ValidColumn(column string) bool
Constants ¶
const ( // Label holds the string label denoting the userpromocode type in the database. Label = "user_promo_code" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCity holds the string denoting the city field in the database. FieldCity = "city" // FieldUserID holds the string denoting the user_id field in the database. FieldUserID = "user_id" // FieldCode holds the string denoting the code field in the database. FieldCode = "code" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // FieldUsageCount holds the string denoting the usage_count field in the database. FieldUsageCount = "usage_count" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the userpromocode in the database. Table = "user_promo_codes" // UserTable is the table that holds the user relation/edge. UserTable = "user_promo_codes" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_id" )
Variables ¶
var Columns = []string{ FieldID, FieldCity, FieldUserID, FieldCode, FieldTimestamp, FieldUsageCount, }
Columns holds all SQL columns for userpromocode fields.
var ( // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
Functions ¶
func And ¶
func And(predicates ...predicate.UserPromoCode) predicate.UserPromoCode
And groups predicates with the AND operator between them.
func City ¶
func City(v string) predicate.UserPromoCode
City applies equality check predicate on the "city" field. It's identical to CityEQ.
func CityContains ¶
func CityContains(v string) predicate.UserPromoCode
CityContains applies the Contains predicate on the "city" field.
func CityContainsFold ¶
func CityContainsFold(v string) predicate.UserPromoCode
CityContainsFold applies the ContainsFold predicate on the "city" field.
func CityEQ ¶
func CityEQ(v string) predicate.UserPromoCode
CityEQ applies the EQ predicate on the "city" field.
func CityEqualFold ¶
func CityEqualFold(v string) predicate.UserPromoCode
CityEqualFold applies the EqualFold predicate on the "city" field.
func CityGT ¶
func CityGT(v string) predicate.UserPromoCode
CityGT applies the GT predicate on the "city" field.
func CityGTE ¶
func CityGTE(v string) predicate.UserPromoCode
CityGTE applies the GTE predicate on the "city" field.
func CityHasPrefix ¶
func CityHasPrefix(v string) predicate.UserPromoCode
CityHasPrefix applies the HasPrefix predicate on the "city" field.
func CityHasSuffix ¶
func CityHasSuffix(v string) predicate.UserPromoCode
CityHasSuffix applies the HasSuffix predicate on the "city" field.
func CityIn ¶
func CityIn(vs ...string) predicate.UserPromoCode
CityIn applies the In predicate on the "city" field.
func CityLT ¶
func CityLT(v string) predicate.UserPromoCode
CityLT applies the LT predicate on the "city" field.
func CityLTE ¶
func CityLTE(v string) predicate.UserPromoCode
CityLTE applies the LTE predicate on the "city" field.
func CityNEQ ¶
func CityNEQ(v string) predicate.UserPromoCode
CityNEQ applies the NEQ predicate on the "city" field.
func CityNotIn ¶
func CityNotIn(vs ...string) predicate.UserPromoCode
CityNotIn applies the NotIn predicate on the "city" field.
func Code ¶
func Code(v string) predicate.UserPromoCode
Code applies equality check predicate on the "code" field. It's identical to CodeEQ.
func CodeContains ¶
func CodeContains(v string) predicate.UserPromoCode
CodeContains applies the Contains predicate on the "code" field.
func CodeContainsFold ¶
func CodeContainsFold(v string) predicate.UserPromoCode
CodeContainsFold applies the ContainsFold predicate on the "code" field.
func CodeEQ ¶
func CodeEQ(v string) predicate.UserPromoCode
CodeEQ applies the EQ predicate on the "code" field.
func CodeEqualFold ¶
func CodeEqualFold(v string) predicate.UserPromoCode
CodeEqualFold applies the EqualFold predicate on the "code" field.
func CodeGT ¶
func CodeGT(v string) predicate.UserPromoCode
CodeGT applies the GT predicate on the "code" field.
func CodeGTE ¶
func CodeGTE(v string) predicate.UserPromoCode
CodeGTE applies the GTE predicate on the "code" field.
func CodeHasPrefix ¶
func CodeHasPrefix(v string) predicate.UserPromoCode
CodeHasPrefix applies the HasPrefix predicate on the "code" field.
func CodeHasSuffix ¶
func CodeHasSuffix(v string) predicate.UserPromoCode
CodeHasSuffix applies the HasSuffix predicate on the "code" field.
func CodeIn ¶
func CodeIn(vs ...string) predicate.UserPromoCode
CodeIn applies the In predicate on the "code" field.
func CodeLT ¶
func CodeLT(v string) predicate.UserPromoCode
CodeLT applies the LT predicate on the "code" field.
func CodeLTE ¶
func CodeLTE(v string) predicate.UserPromoCode
CodeLTE applies the LTE predicate on the "code" field.
func CodeNEQ ¶
func CodeNEQ(v string) predicate.UserPromoCode
CodeNEQ applies the NEQ predicate on the "code" field.
func CodeNotIn ¶
func CodeNotIn(vs ...string) predicate.UserPromoCode
CodeNotIn applies the NotIn predicate on the "code" field.
func HasUser ¶
func HasUser() predicate.UserPromoCode
HasUser applies the HasEdge predicate on the "user" edge.
func HasUserWith ¶
func HasUserWith(preds ...predicate.User) predicate.UserPromoCode
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func ID ¶
func ID(id uuid.UUID) predicate.UserPromoCode
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id uuid.UUID) predicate.UserPromoCode
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id uuid.UUID) predicate.UserPromoCode
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id uuid.UUID) predicate.UserPromoCode
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...uuid.UUID) predicate.UserPromoCode
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id uuid.UUID) predicate.UserPromoCode
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id uuid.UUID) predicate.UserPromoCode
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id uuid.UUID) predicate.UserPromoCode
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...uuid.UUID) predicate.UserPromoCode
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.UserPromoCode) predicate.UserPromoCode
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.UserPromoCode) predicate.UserPromoCode
Or groups predicates with the OR operator between them.
func Timestamp ¶
func Timestamp(v time.Time) predicate.UserPromoCode
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
func TimestampEQ(v time.Time) predicate.UserPromoCode
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
func TimestampGT(v time.Time) predicate.UserPromoCode
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
func TimestampGTE(v time.Time) predicate.UserPromoCode
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
func TimestampIn(vs ...time.Time) predicate.UserPromoCode
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampIsNil ¶
func TimestampIsNil() predicate.UserPromoCode
TimestampIsNil applies the IsNil predicate on the "timestamp" field.
func TimestampLT ¶
func TimestampLT(v time.Time) predicate.UserPromoCode
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
func TimestampLTE(v time.Time) predicate.UserPromoCode
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
func TimestampNEQ(v time.Time) predicate.UserPromoCode
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
func TimestampNotIn(vs ...time.Time) predicate.UserPromoCode
TimestampNotIn applies the NotIn predicate on the "timestamp" field.
func TimestampNotNil ¶
func TimestampNotNil() predicate.UserPromoCode
TimestampNotNil applies the NotNil predicate on the "timestamp" field.
func UsageCount ¶
func UsageCount(v int) predicate.UserPromoCode
UsageCount applies equality check predicate on the "usage_count" field. It's identical to UsageCountEQ.
func UsageCountEQ ¶
func UsageCountEQ(v int) predicate.UserPromoCode
UsageCountEQ applies the EQ predicate on the "usage_count" field.
func UsageCountGT ¶
func UsageCountGT(v int) predicate.UserPromoCode
UsageCountGT applies the GT predicate on the "usage_count" field.
func UsageCountGTE ¶
func UsageCountGTE(v int) predicate.UserPromoCode
UsageCountGTE applies the GTE predicate on the "usage_count" field.
func UsageCountIn ¶
func UsageCountIn(vs ...int) predicate.UserPromoCode
UsageCountIn applies the In predicate on the "usage_count" field.
func UsageCountIsNil ¶
func UsageCountIsNil() predicate.UserPromoCode
UsageCountIsNil applies the IsNil predicate on the "usage_count" field.
func UsageCountLT ¶
func UsageCountLT(v int) predicate.UserPromoCode
UsageCountLT applies the LT predicate on the "usage_count" field.
func UsageCountLTE ¶
func UsageCountLTE(v int) predicate.UserPromoCode
UsageCountLTE applies the LTE predicate on the "usage_count" field.
func UsageCountNEQ ¶
func UsageCountNEQ(v int) predicate.UserPromoCode
UsageCountNEQ applies the NEQ predicate on the "usage_count" field.
func UsageCountNotIn ¶
func UsageCountNotIn(vs ...int) predicate.UserPromoCode
UsageCountNotIn applies the NotIn predicate on the "usage_count" field.
func UsageCountNotNil ¶
func UsageCountNotNil() predicate.UserPromoCode
UsageCountNotNil applies the NotNil predicate on the "usage_count" field.
func UserID ¶
func UserID(v uuid.UUID) predicate.UserPromoCode
UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserIDEQ ¶
func UserIDEQ(v uuid.UUID) predicate.UserPromoCode
UserIDEQ applies the EQ predicate on the "user_id" field.
func UserIDIn ¶
func UserIDIn(vs ...uuid.UUID) predicate.UserPromoCode
UserIDIn applies the In predicate on the "user_id" field.
func UserIDNEQ ¶
func UserIDNEQ(v uuid.UUID) predicate.UserPromoCode
UserIDNEQ applies the NEQ predicate on the "user_id" field.
func UserIDNotIn ¶
func UserIDNotIn(vs ...uuid.UUID) predicate.UserPromoCode
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 ¶
This section is empty.