added roundstats with eco info, switched to avatar hash
This commit is contained in:
59
ent/roundstats/roundstats.go
Normal file
59
ent/roundstats/roundstats.go
Normal file
@@ -0,0 +1,59 @@
|
||||
// Code generated by entc, DO NOT EDIT.
|
||||
|
||||
package roundstats
|
||||
|
||||
const (
|
||||
// Label holds the string label denoting the roundstats type in the database.
|
||||
Label = "round_stats"
|
||||
// FieldID holds the string denoting the id field in the database.
|
||||
FieldID = "id"
|
||||
// FieldRound holds the string denoting the round field in the database.
|
||||
FieldRound = "round"
|
||||
// FieldBank holds the string denoting the bank field in the database.
|
||||
FieldBank = "bank"
|
||||
// FieldEquipment holds the string denoting the equipment field in the database.
|
||||
FieldEquipment = "equipment"
|
||||
// FieldSpent holds the string denoting the spent field in the database.
|
||||
FieldSpent = "spent"
|
||||
// EdgeStat holds the string denoting the stat edge name in mutations.
|
||||
EdgeStat = "stat"
|
||||
// Table holds the table name of the roundstats in the database.
|
||||
Table = "round_stats"
|
||||
// StatTable is the table that holds the stat relation/edge.
|
||||
StatTable = "round_stats"
|
||||
// StatInverseTable is the table name for the Stats entity.
|
||||
// It exists in this package in order to avoid circular dependency with the "stats" package.
|
||||
StatInverseTable = "stats"
|
||||
// StatColumn is the table column denoting the stat relation/edge.
|
||||
StatColumn = "stats_round_stats"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for roundstats fields.
|
||||
var Columns = []string{
|
||||
FieldID,
|
||||
FieldRound,
|
||||
FieldBank,
|
||||
FieldEquipment,
|
||||
FieldSpent,
|
||||
}
|
||||
|
||||
// ForeignKeys holds the SQL foreign-keys that are owned by the "round_stats"
|
||||
// table and are not defined as standalone fields in the schema.
|
||||
var ForeignKeys = []string{
|
||||
"stats_round_stats",
|
||||
}
|
||||
|
||||
// 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
|
||||
}
|
Reference in New Issue
Block a user