Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Card) predicate.Card
- func CreatedAt(v time.Time) predicate.Card
- func CreatedAtEQ(v time.Time) predicate.Card
- func CreatedAtGT(v time.Time) predicate.Card
- func CreatedAtGTE(v time.Time) predicate.Card
- func CreatedAtIn(vs ...time.Time) predicate.Card
- func CreatedAtLT(v time.Time) predicate.Card
- func CreatedAtLTE(v time.Time) predicate.Card
- func CreatedAtNEQ(v time.Time) predicate.Card
- func CreatedAtNotIn(vs ...time.Time) predicate.Card
- func CreatedBy(v int64) predicate.Card
- func CreatedByEQ(v int64) predicate.Card
- func CreatedByGT(v int64) predicate.Card
- func CreatedByGTE(v int64) predicate.Card
- func CreatedByIn(vs ...int64) predicate.Card
- func CreatedByLT(v int64) predicate.Card
- func CreatedByLTE(v int64) predicate.Card
- func CreatedByNEQ(v int64) predicate.Card
- func CreatedByNotIn(vs ...int64) predicate.Card
- func DeletedAt(v time.Time) predicate.Card
- func DeletedAtEQ(v time.Time) predicate.Card
- func DeletedAtGT(v time.Time) predicate.Card
- func DeletedAtGTE(v time.Time) predicate.Card
- func DeletedAtIn(vs ...time.Time) predicate.Card
- func DeletedAtLT(v time.Time) predicate.Card
- func DeletedAtLTE(v time.Time) predicate.Card
- func DeletedAtNEQ(v time.Time) predicate.Card
- func DeletedAtNotIn(vs ...time.Time) predicate.Card
- func HasGameUsers() predicate.Card
- func HasGameUsersWith(preds ...predicate.GameUser) predicate.Card
- func ID(id int64) predicate.Card
- func IDEQ(id int64) predicate.Card
- func IDGT(id int64) predicate.Card
- func IDGTE(id int64) predicate.Card
- func IDIn(ids ...int64) predicate.Card
- func IDLT(id int64) predicate.Card
- func IDLTE(id int64) predicate.Card
- func IDNEQ(id int64) predicate.Card
- func IDNotIn(ids ...int64) predicate.Card
- func NameEQ(v Name) predicate.Card
- func NameIn(vs ...Name) predicate.Card
- func NameNEQ(v Name) predicate.Card
- func NameNotIn(vs ...Name) predicate.Card
- func NameValidator(n Name) error
- func Not(p predicate.Card) predicate.Card
- func Or(predicates ...predicate.Card) predicate.Card
- func Red(v bool) predicate.Card
- func RedEQ(v bool) predicate.Card
- func RedNEQ(v bool) predicate.Card
- func RoleEQ(v Role) predicate.Card
- func RoleIn(vs ...Role) predicate.Card
- func RoleNEQ(v Role) predicate.Card
- func RoleNotIn(vs ...Role) predicate.Card
- func RoleValidator(r Role) error
- func Tale(v string) predicate.Card
- func TaleContains(v string) predicate.Card
- func TaleContainsFold(v string) predicate.Card
- func TaleEQ(v string) predicate.Card
- func TaleEqualFold(v string) predicate.Card
- func TaleGT(v string) predicate.Card
- func TaleGTE(v string) predicate.Card
- func TaleHasPrefix(v string) predicate.Card
- func TaleHasSuffix(v string) predicate.Card
- func TaleIn(vs ...string) predicate.Card
- func TaleLT(v string) predicate.Card
- func TaleLTE(v string) predicate.Card
- func TaleNEQ(v string) predicate.Card
- func TaleNotIn(vs ...string) predicate.Card
- func UpdatedAt(v time.Time) predicate.Card
- func UpdatedAtEQ(v time.Time) predicate.Card
- func UpdatedAtGT(v time.Time) predicate.Card
- func UpdatedAtGTE(v time.Time) predicate.Card
- func UpdatedAtIn(vs ...time.Time) predicate.Card
- func UpdatedAtLT(v time.Time) predicate.Card
- func UpdatedAtLTE(v time.Time) predicate.Card
- func UpdatedAtNEQ(v time.Time) predicate.Card
- func UpdatedAtNotIn(vs ...time.Time) predicate.Card
- func UpdatedBy(v int64) predicate.Card
- func UpdatedByEQ(v int64) predicate.Card
- func UpdatedByGT(v int64) predicate.Card
- func UpdatedByGTE(v int64) predicate.Card
- func UpdatedByIn(vs ...int64) predicate.Card
- func UpdatedByLT(v int64) predicate.Card
- func UpdatedByLTE(v int64) predicate.Card
- func UpdatedByNEQ(v int64) predicate.Card
- func UpdatedByNotIn(vs ...int64) predicate.Card
- func ValidColumn(column string) bool
- type Name
- type Role
Constants ¶
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" )
const DefaultName = NameMerlin
NameMerlin is the default value of the Name enum.
Variables ¶
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 )
var Columns = []string{ FieldID, FieldCreatedBy, FieldUpdatedBy, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldName, FieldRole, FieldTale, FieldRed, }
Columns holds all SQL columns for card fields.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func HasGameUsers ¶
HasGameUsers applies the HasEdge predicate on the "game_users" edge.
func HasGameUsersWith ¶
HasGameUsersWith applies the HasEdge predicate on the "game_users" edge with a given conditions (other predicates).
func NameValidator ¶
NameValidator is a validator for the "name" field enum values. It is called by the builders before save.
func RoleValidator ¶
RoleValidator is a validator for the "role" field enum values. It is called by the builders before save.
func TaleContains ¶
TaleContains applies the Contains predicate on the "tale" field.
func TaleContainsFold ¶
TaleContainsFold applies the ContainsFold predicate on the "tale" field.
func TaleEqualFold ¶
TaleEqualFold applies the EqualFold predicate on the "tale" field.
func TaleHasPrefix ¶
TaleHasPrefix applies the HasPrefix predicate on the "tale" field.
func TaleHasSuffix ¶
TaleHasSuffix applies the HasSuffix predicate on the "tale" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func ValidColumn ¶
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 ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Name) UnmarshalGQL ¶
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 ¶
MarshalGQL implements graphql.Marshaler interface.
func (*Role) UnmarshalGQL ¶
UnmarshalGQL implements graphql.Unmarshaler interface.