// Code generated by entc, DO NOT EDIT. package weaponstats const ( // Label holds the string label denoting the weaponstats type in the database. Label = "weapon_stats" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldVictim holds the string denoting the victim field in the database. FieldVictim = "victim" // FieldDmg holds the string denoting the dmg field in the database. FieldDmg = "dmg" // FieldEqType holds the string denoting the eq_type field in the database. FieldEqType = "eq_type" // FieldHitGroup holds the string denoting the hit_group field in the database. FieldHitGroup = "hit_group" // EdgeStat holds the string denoting the stat edge name in mutations. EdgeStat = "stat" // Table holds the table name of the weaponstats in the database. Table = "weapon_stats" // StatTable is the table that holds the stat relation/edge. StatTable = "weapon_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_weapon_stats" ) // Columns holds all SQL columns for weaponstats fields. var Columns = []string{ FieldID, FieldVictim, FieldDmg, FieldEqType, FieldHitGroup, } // ForeignKeys holds the SQL foreign-keys that are owned by the "weapon_stats" // table and are not defined as standalone fields in the schema. var ForeignKeys = []string{ "stats_weapon_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 }