added spray patterns
This commit is contained in:
@@ -15,17 +15,17 @@ const (
|
||||
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"
|
||||
// EdgeMatchPlayer holds the string denoting the match_player edge name in mutations.
|
||||
EdgeMatchPlayer = "match_player"
|
||||
// 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"
|
||||
// MatchPlayerTable is the table that holds the match_player relation/edge.
|
||||
MatchPlayerTable = "round_stats"
|
||||
// MatchPlayerInverseTable is the table name for the MatchPlayer entity.
|
||||
// It exists in this package in order to avoid circular dependency with the "matchplayer" package.
|
||||
MatchPlayerInverseTable = "match_players"
|
||||
// MatchPlayerColumn is the table column denoting the match_player relation/edge.
|
||||
MatchPlayerColumn = "match_player_round_stats"
|
||||
)
|
||||
|
||||
// Columns holds all SQL columns for roundstats fields.
|
||||
@@ -40,7 +40,7 @@ var Columns = []string{
|
||||
// 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",
|
||||
"match_player_round_stats",
|
||||
}
|
||||
|
||||
// ValidColumn reports if the column name is valid (part of the table columns).
|
||||
|
@@ -424,25 +424,25 @@ func SpentLTE(v uint) predicate.RoundStats {
|
||||
})
|
||||
}
|
||||
|
||||
// HasStat applies the HasEdge predicate on the "stat" edge.
|
||||
func HasStat() predicate.RoundStats {
|
||||
// HasMatchPlayer applies the HasEdge predicate on the "match_player" edge.
|
||||
func HasMatchPlayer() predicate.RoundStats {
|
||||
return predicate.RoundStats(func(s *sql.Selector) {
|
||||
step := sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(StatTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2O, true, StatTable, StatColumn),
|
||||
sqlgraph.To(MatchPlayerTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2O, true, MatchPlayerTable, MatchPlayerColumn),
|
||||
)
|
||||
sqlgraph.HasNeighbors(s, step)
|
||||
})
|
||||
}
|
||||
|
||||
// HasStatWith applies the HasEdge predicate on the "stat" edge with a given conditions (other predicates).
|
||||
func HasStatWith(preds ...predicate.Stats) predicate.RoundStats {
|
||||
// HasMatchPlayerWith applies the HasEdge predicate on the "match_player" edge with a given conditions (other predicates).
|
||||
func HasMatchPlayerWith(preds ...predicate.MatchPlayer) predicate.RoundStats {
|
||||
return predicate.RoundStats(func(s *sql.Selector) {
|
||||
step := sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(StatInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2O, true, StatTable, StatColumn),
|
||||
sqlgraph.To(MatchPlayerInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.M2O, true, MatchPlayerTable, MatchPlayerColumn),
|
||||
)
|
||||
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
||||
for _, p := range preds {
|
||||
|
Reference in New Issue
Block a user