54 lines
1.7 KiB
Go
54 lines
1.7 KiB
Go
// Code generated by ent, 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
|
|
}
|