userpromocode

package
v0.0.0-...-e91a8f2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

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

Columns holds all SQL columns for userpromocode 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 City

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

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

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

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

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

Not applies the not operator on the given predicate.

func Or

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

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

This section is empty.

Jump to

Keyboard shortcuts

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