card

package
v0.0.0-...-214d0a7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: GPL-3.0 Imports: 7 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"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// 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"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldRole holds the string denoting the role field in the database.
	FieldRole = "role"
	// FieldTale holds the string denoting the tale field in the database.
	FieldTale = "tale"
	// FieldRed holds the string denoting the red field in the database.
	FieldRed = "red"
	// EdgeGameUsers holds the string denoting the game_users edge name in mutations.
	EdgeGameUsers = "game_users"
	// Table holds the table name of the card in the database.
	Table = "cards"
	// GameUsersTable is the table that holds the game_users relation/edge.
	GameUsersTable = "game_users"
	// GameUsersInverseTable is the table name for the GameUser entity.
	// It exists in this package in order to avoid circular dependency with the "gameuser" package.
	GameUsersInverseTable = "game_users"
	// GameUsersColumn is the table column denoting the game_users relation/edge.
	GameUsersColumn = "card_id"
)
View Source
const DefaultName = NameMerlin

NameMerlin is the default value of the Name enum.

Variables

View Source
var (
	// DefaultCreatedBy holds the default value on creation for the "created_by" field.
	DefaultCreatedBy int64
	// DefaultUpdatedBy holds the default value on creation for the "updated_by" field.
	DefaultUpdatedBy int64
	// 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
	// DefaultDeletedAt holds the default value on creation for the "deleted_at" field.
	DefaultDeletedAt time.Time
	// DefaultTale holds the default value on creation for the "tale" field.
	DefaultTale string
	// DefaultRed holds the default value on creation for the "red" field.
	DefaultRed bool
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() int64
)

Columns holds all SQL columns for card fields.

Functions

func And

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

And groups predicates with the AND operator between them.

func CreatedAt

func CreatedAt(v time.Time) predicate.Card

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Card

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Card

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Card

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

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

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Card

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Card

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Card

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

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

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v int64) predicate.Card

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByEQ

func CreatedByEQ(v int64) predicate.Card

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v int64) predicate.Card

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v int64) predicate.Card

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...int64) predicate.Card

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v int64) predicate.Card

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v int64) predicate.Card

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v int64) predicate.Card

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...int64) predicate.Card

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Card

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Card

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Card

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Card

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

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

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Card

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Card

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Card

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

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

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func HasGameUsers

func HasGameUsers() predicate.Card

HasGameUsers applies the HasEdge predicate on the "game_users" edge.

func HasGameUsersWith

func HasGameUsersWith(preds ...predicate.GameUser) predicate.Card

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

func ID

func ID(id int64) predicate.Card

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int64) predicate.Card

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int64) predicate.Card

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int64) predicate.Card

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int64) predicate.Card

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int64) predicate.Card

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int64) predicate.Card

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func NameEQ

func NameEQ(v Name) predicate.Card

NameEQ applies the EQ predicate on the "name" field.

func NameIn

func NameIn(vs ...Name) predicate.Card

NameIn applies the In predicate on the "name" field.

func NameNEQ

func NameNEQ(v Name) predicate.Card

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...Name) predicate.Card

NameNotIn applies the NotIn predicate on the "name" field.

func NameValidator

func NameValidator(n Name) error

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

func Not

Not applies the not operator on the given predicate.

func Or

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

Or groups predicates with the OR operator between them.

func Red

func Red(v bool) predicate.Card

Red applies equality check predicate on the "red" field. It's identical to RedEQ.

func RedEQ

func RedEQ(v bool) predicate.Card

RedEQ applies the EQ predicate on the "red" field.

func RedNEQ

func RedNEQ(v bool) predicate.Card

RedNEQ applies the NEQ predicate on the "red" field.

func RoleEQ

func RoleEQ(v Role) predicate.Card

RoleEQ applies the EQ predicate on the "role" field.

func RoleIn

func RoleIn(vs ...Role) predicate.Card

RoleIn applies the In predicate on the "role" field.

func RoleNEQ

func RoleNEQ(v Role) predicate.Card

RoleNEQ applies the NEQ predicate on the "role" field.

func RoleNotIn

func RoleNotIn(vs ...Role) predicate.Card

RoleNotIn applies the NotIn predicate on the "role" field.

func RoleValidator

func RoleValidator(r Role) error

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

func Tale

func Tale(v string) predicate.Card

Tale applies equality check predicate on the "tale" field. It's identical to TaleEQ.

func TaleContains

func TaleContains(v string) predicate.Card

TaleContains applies the Contains predicate on the "tale" field.

func TaleContainsFold

func TaleContainsFold(v string) predicate.Card

TaleContainsFold applies the ContainsFold predicate on the "tale" field.

func TaleEQ

func TaleEQ(v string) predicate.Card

TaleEQ applies the EQ predicate on the "tale" field.

func TaleEqualFold

func TaleEqualFold(v string) predicate.Card

TaleEqualFold applies the EqualFold predicate on the "tale" field.

func TaleGT

func TaleGT(v string) predicate.Card

TaleGT applies the GT predicate on the "tale" field.

func TaleGTE

func TaleGTE(v string) predicate.Card

TaleGTE applies the GTE predicate on the "tale" field.

func TaleHasPrefix

func TaleHasPrefix(v string) predicate.Card

TaleHasPrefix applies the HasPrefix predicate on the "tale" field.

func TaleHasSuffix

func TaleHasSuffix(v string) predicate.Card

TaleHasSuffix applies the HasSuffix predicate on the "tale" field.

func TaleIn

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

TaleIn applies the In predicate on the "tale" field.

func TaleLT

func TaleLT(v string) predicate.Card

TaleLT applies the LT predicate on the "tale" field.

func TaleLTE

func TaleLTE(v string) predicate.Card

TaleLTE applies the LTE predicate on the "tale" field.

func TaleNEQ

func TaleNEQ(v string) predicate.Card

TaleNEQ applies the NEQ predicate on the "tale" field.

func TaleNotIn

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

TaleNotIn applies the NotIn predicate on the "tale" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Card

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Card

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Card

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Card

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

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

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Card

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Card

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Card

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

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

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v int64) predicate.Card

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByEQ

func UpdatedByEQ(v int64) predicate.Card

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v int64) predicate.Card

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v int64) predicate.Card

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...int64) predicate.Card

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v int64) predicate.Card

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v int64) predicate.Card

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v int64) predicate.Card

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...int64) predicate.Card

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type Name

type Name string

Name defines the type for the "name" enum field.

const (
	NameMerlin   Name = "Merlin"
	NamePercival Name = "Percival"
	NameGalahad  Name = "Galahad"
	NameBors     Name = "Bors"
	NameBedivere Name = "Bedivere"
	NameGawain   Name = "Gawain"
	NameKay      Name = "Kay"
	NameEctor    Name = "Ector"
	NameMordred  Name = "Mordred"
	NameMorgana  Name = "Morgana"
	NameOberon   Name = "Oberon"
	NameAgravain Name = "Agravain"
	NameLancelot Name = "Lancelot"
	NameKevin    Name = "Kevin"
	NameStuart   Name = "Stuart"
	NameBob      Name = "Bob"
)

Name values.

func (Name) MarshalGQL

func (e Name) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Name) String

func (n Name) String() string

func (*Name) UnmarshalGQL

func (e *Name) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type Role

type Role string

Role defines the type for the "role" enum field.

const (
	RoleProphet     Role = "Prophet"
	RoleKnight      Role = "Knight"
	RoleLoyal       Role = "Loyal"
	RoleUsurper     Role = "Usurper"
	RoleEnchantress Role = "Enchantress"
	RoleAssassin    Role = "Assassin"
	RoleErlking     Role = "Erlking"
	RoleAce         Role = "Ace"
	RoleSinner      Role = "Sinner"
	RoleMinion      Role = "Minion"
)

Role values.

func (Role) MarshalGQL

func (e Role) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (Role) String

func (r Role) String() string

func (*Role) UnmarshalGQL

func (e *Role) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

Jump to

Keyboard shortcuts

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