added spray patterns

This commit is contained in:
2021-10-31 08:40:02 +01:00
parent 268793f0e5
commit 978232dd0a
66 changed files with 16805 additions and 11903 deletions

53
ent/spray/spray.go Normal file
View File

@@ -0,0 +1,53 @@
// Code generated by entc, DO NOT EDIT.
package spray
const (
// Label holds the string label denoting the spray type in the database.
Label = "spray"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldWeapon holds the string denoting the weapon field in the database.
FieldWeapon = "weapon"
// FieldSpray holds the string denoting the spray field in the database.
FieldSpray = "spray"
// EdgeMatchPlayers holds the string denoting the match_players edge name in mutations.
EdgeMatchPlayers = "match_players"
// Table holds the table name of the spray in the database.
Table = "sprays"
// MatchPlayersTable is the table that holds the match_players relation/edge.
MatchPlayersTable = "sprays"
// MatchPlayersInverseTable is the table name for the MatchPlayer entity.
// It exists in this package in order to avoid circular dependency with the "matchplayer" package.
MatchPlayersInverseTable = "match_players"
// MatchPlayersColumn is the table column denoting the match_players relation/edge.
MatchPlayersColumn = "match_player_spray"
)
// Columns holds all SQL columns for spray fields.
var Columns = []string{
FieldID,
FieldWeapon,
FieldSpray,
}
// ForeignKeys holds the SQL foreign-keys that are owned by the "sprays"
// table and are not defined as standalone fields in the schema.
var ForeignKeys = []string{
"match_player_spray",
}
// ValidColumn reports if the column name is valid (part of the table columns).
func ValidColumn(column string) bool {
for i := range Columns {
if column == Columns[i] {
return true
}
}
for i := range ForeignKeys {
if column == ForeignKeys[i] {
return true
}
}
return false
}