card

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the card type in the database.
	Label = "card"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldType holds the string denoting the type field in the database.
	FieldType = "type"
	// FieldNumber holds the string denoting the number field in the database.
	FieldNumber = "number"
	// FieldStartDate holds the string denoting the startdate field in the database.
	FieldStartDate = "start_date"
	// FieldExpiryDate holds the string denoting the expirydate field in the database.
	FieldExpiryDate = "expiry_date"
	// FieldHolderName holds the string denoting the holdername field in the database.
	FieldHolderName = "holder_name"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldURL holds the string denoting the url field in the database.
	FieldURL = "url"
	// EdgeNetwork holds the string denoting the network edge name in mutations.
	EdgeNetwork = "network"
	// EdgeAccount holds the string denoting the account edge name in mutations.
	EdgeAccount = "account"
	// Table holds the table name of the card in the database.
	Table = "cards"
	// NetworkTable is the table the holds the network relation/edge.
	NetworkTable = "cards"
	// NetworkInverseTable is the table name for the CardNetwork entity.
	// It exists in this package in order to avoid circular dependency with the "cardnetwork" package.
	NetworkInverseTable = "card_networks"
	// NetworkColumn is the table column denoting the network relation/edge.
	NetworkColumn = "card_network"
	// AccountTable is the table the holds the account relation/edge.
	AccountTable = "cards"
	// AccountInverseTable is the table name for the Account entity.
	// It exists in this package in order to avoid circular dependency with the "account" package.
	AccountInverseTable = "accounts"
	// AccountColumn is the table column denoting the account relation/edge.
	AccountColumn = "account_cards"
)

Variables

Columns holds all SQL columns for card fields.

View Source
var ForeignKeys = []string{
	"account_cards",
	"card_network",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "cards" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Card) predicate.Card

And groups predicates with the AND operator between them.

func ExpiryDate

func ExpiryDate(v time.Time) predicate.Card

ExpiryDate applies equality check predicate on the "expiryDate" field. It's identical to ExpiryDateEQ.

func ExpiryDateEQ

func ExpiryDateEQ(v time.Time) predicate.Card

ExpiryDateEQ applies the EQ predicate on the "expiryDate" field.

func ExpiryDateGT

func ExpiryDateGT(v time.Time) predicate.Card

ExpiryDateGT applies the GT predicate on the "expiryDate" field.

func ExpiryDateGTE

func ExpiryDateGTE(v time.Time) predicate.Card

ExpiryDateGTE applies the GTE predicate on the "expiryDate" field.

func ExpiryDateIn

func ExpiryDateIn(vs ...time.Time) predicate.Card

ExpiryDateIn applies the In predicate on the "expiryDate" field.

func ExpiryDateLT

func ExpiryDateLT(v time.Time) predicate.Card

ExpiryDateLT applies the LT predicate on the "expiryDate" field.

func ExpiryDateLTE

func ExpiryDateLTE(v time.Time) predicate.Card

ExpiryDateLTE applies the LTE predicate on the "expiryDate" field.

func ExpiryDateNEQ

func ExpiryDateNEQ(v time.Time) predicate.Card

ExpiryDateNEQ applies the NEQ predicate on the "expiryDate" field.

func ExpiryDateNotIn

func ExpiryDateNotIn(vs ...time.Time) predicate.Card

ExpiryDateNotIn applies the NotIn predicate on the "expiryDate" field.

func HasAccount

func HasAccount() predicate.Card

HasAccount applies the HasEdge predicate on the "account" edge.

func HasAccountWith

func HasAccountWith(preds ...predicate.Account) predicate.Card

HasAccountWith applies the HasEdge predicate on the "account" edge with a given conditions (other predicates).

func HasNetwork

func HasNetwork() predicate.Card

HasNetwork applies the HasEdge predicate on the "network" edge.

func HasNetworkWith

func HasNetworkWith(preds ...predicate.CardNetwork) predicate.Card

HasNetworkWith applies the HasEdge predicate on the "network" edge with a given conditions (other predicates).

func HolderName

func HolderName(v string) predicate.Card

HolderName applies equality check predicate on the "holderName" field. It's identical to HolderNameEQ.

func HolderNameContains

func HolderNameContains(v string) predicate.Card

HolderNameContains applies the Contains predicate on the "holderName" field.

func HolderNameContainsFold

func HolderNameContainsFold(v string) predicate.Card

HolderNameContainsFold applies the ContainsFold predicate on the "holderName" field.

func HolderNameEQ

func HolderNameEQ(v string) predicate.Card

HolderNameEQ applies the EQ predicate on the "holderName" field.

func HolderNameEqualFold

func HolderNameEqualFold(v string) predicate.Card

HolderNameEqualFold applies the EqualFold predicate on the "holderName" field.

func HolderNameGT

func HolderNameGT(v string) predicate.Card

HolderNameGT applies the GT predicate on the "holderName" field.

func HolderNameGTE

func HolderNameGTE(v string) predicate.Card

HolderNameGTE applies the GTE predicate on the "holderName" field.

func HolderNameHasPrefix

func HolderNameHasPrefix(v string) predicate.Card

HolderNameHasPrefix applies the HasPrefix predicate on the "holderName" field.

func HolderNameHasSuffix

func HolderNameHasSuffix(v string) predicate.Card

HolderNameHasSuffix applies the HasSuffix predicate on the "holderName" field.

func HolderNameIn

func HolderNameIn(vs ...string) predicate.Card

HolderNameIn applies the In predicate on the "holderName" field.

func HolderNameLT

func HolderNameLT(v string) predicate.Card

HolderNameLT applies the LT predicate on the "holderName" field.

func HolderNameLTE

func HolderNameLTE(v string) predicate.Card

HolderNameLTE applies the LTE predicate on the "holderName" field.

func HolderNameNEQ

func HolderNameNEQ(v string) predicate.Card

HolderNameNEQ applies the NEQ predicate on the "holderName" field.

func HolderNameNotIn

func HolderNameNotIn(vs ...string) predicate.Card

HolderNameNotIn applies the NotIn predicate on the "holderName" field.

func ID

func ID(id int) predicate.Card

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Card

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Card

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Card

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Card

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Card

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Card

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Card

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Card

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Number

func Number(v string) predicate.Card

Number applies equality check predicate on the "number" field. It's identical to NumberEQ.

func NumberContains

func NumberContains(v string) predicate.Card

NumberContains applies the Contains predicate on the "number" field.

func NumberContainsFold

func NumberContainsFold(v string) predicate.Card

NumberContainsFold applies the ContainsFold predicate on the "number" field.

func NumberEQ

func NumberEQ(v string) predicate.Card

NumberEQ applies the EQ predicate on the "number" field.

func NumberEqualFold

func NumberEqualFold(v string) predicate.Card

NumberEqualFold applies the EqualFold predicate on the "number" field.

func NumberGT

func NumberGT(v string) predicate.Card

NumberGT applies the GT predicate on the "number" field.

func NumberGTE

func NumberGTE(v string) predicate.Card

NumberGTE applies the GTE predicate on the "number" field.

func NumberHasPrefix

func NumberHasPrefix(v string) predicate.Card

NumberHasPrefix applies the HasPrefix predicate on the "number" field.

func NumberHasSuffix

func NumberHasSuffix(v string) predicate.Card

NumberHasSuffix applies the HasSuffix predicate on the "number" field.

func NumberIn

func NumberIn(vs ...string) predicate.Card

NumberIn applies the In predicate on the "number" field.

func NumberLT

func NumberLT(v string) predicate.Card

NumberLT applies the LT predicate on the "number" field.

func NumberLTE

func NumberLTE(v string) predicate.Card

NumberLTE applies the LTE predicate on the "number" field.

func NumberNEQ

func NumberNEQ(v string) predicate.Card

NumberNEQ applies the NEQ predicate on the "number" field.

func NumberNotIn

func NumberNotIn(vs ...string) predicate.Card

NumberNotIn applies the NotIn predicate on the "number" field.

func Or

func Or(predicates ...predicate.Card) predicate.Card

Or groups predicates with the OR operator between them.

func StartDate

func StartDate(v time.Time) predicate.Card

StartDate applies equality check predicate on the "startDate" field. It's identical to StartDateEQ.

func StartDateEQ

func StartDateEQ(v time.Time) predicate.Card

StartDateEQ applies the EQ predicate on the "startDate" field.

func StartDateGT

func StartDateGT(v time.Time) predicate.Card

StartDateGT applies the GT predicate on the "startDate" field.

func StartDateGTE

func StartDateGTE(v time.Time) predicate.Card

StartDateGTE applies the GTE predicate on the "startDate" field.

func StartDateIn

func StartDateIn(vs ...time.Time) predicate.Card

StartDateIn applies the In predicate on the "startDate" field.

func StartDateLT

func StartDateLT(v time.Time) predicate.Card

StartDateLT applies the LT predicate on the "startDate" field.

func StartDateLTE

func StartDateLTE(v time.Time) predicate.Card

StartDateLTE applies the LTE predicate on the "startDate" field.

func StartDateNEQ

func StartDateNEQ(v time.Time) predicate.Card

StartDateNEQ applies the NEQ predicate on the "startDate" field.

func StartDateNotIn

func StartDateNotIn(vs ...time.Time) predicate.Card

StartDateNotIn applies the NotIn predicate on the "startDate" field.

func StatusEQ

func StatusEQ(v Status) predicate.Card

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.Card

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.Card

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.Card

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func TypeEQ

func TypeEQ(v Type) predicate.Card

TypeEQ applies the EQ predicate on the "type" field.

func TypeIn

func TypeIn(vs ...Type) predicate.Card

TypeIn applies the In predicate on the "type" field.

func TypeNEQ

func TypeNEQ(v Type) predicate.Card

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn

func TypeNotIn(vs ...Type) predicate.Card

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeValidator

func TypeValidator(_type Type) error

TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.

func URL

func URL(v string) predicate.Card

URL applies equality check predicate on the "url" field. It's identical to URLEQ.

func URLContains

func URLContains(v string) predicate.Card

URLContains applies the Contains predicate on the "url" field.

func URLContainsFold

func URLContainsFold(v string) predicate.Card

URLContainsFold applies the ContainsFold predicate on the "url" field.

func URLEQ

func URLEQ(v string) predicate.Card

URLEQ applies the EQ predicate on the "url" field.

func URLEqualFold

func URLEqualFold(v string) predicate.Card

URLEqualFold applies the EqualFold predicate on the "url" field.

func URLGT

func URLGT(v string) predicate.Card

URLGT applies the GT predicate on the "url" field.

func URLGTE

func URLGTE(v string) predicate.Card

URLGTE applies the GTE predicate on the "url" field.

func URLHasPrefix

func URLHasPrefix(v string) predicate.Card

URLHasPrefix applies the HasPrefix predicate on the "url" field.

func URLHasSuffix

func URLHasSuffix(v string) predicate.Card

URLHasSuffix applies the HasSuffix predicate on the "url" field.

func URLIn

func URLIn(vs ...string) predicate.Card

URLIn applies the In predicate on the "url" field.

func URLLT

func URLLT(v string) predicate.Card

URLLT applies the LT predicate on the "url" field.

func URLLTE

func URLLTE(v string) predicate.Card

URLLTE applies the LTE predicate on the "url" field.

func URLNEQ

func URLNEQ(v string) predicate.Card

URLNEQ applies the NEQ predicate on the "url" field.

func URLNotIn

func URLNotIn(vs ...string) predicate.Card

URLNotIn applies the NotIn predicate on the "url" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusLOCKED      Status = "LOCKED"
	StatusOPERATIONAL Status = "OPERATIONAL"
)

Status values.

func (Status) String

func (s Status) String() string

type Type

type Type string

Type defines the type for the "type" enum field.

const (
	TypeCREDIT  Type = "CREDIT"
	TypeDEBIT   Type = "DEBIT"
	TypeLOYALTY Type = "LOYALTY"
)

Type values.

func (Type) String

func (_type Type) String() string

Jump to

Keyboard shortcuts

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