added roundstats with eco info, switched to avatar hash
This commit is contained in:
@@ -3805,6 +3805,34 @@ func HasWeaponStatsWith(preds ...predicate.WeaponStats) predicate.Stats {
|
||||
})
|
||||
}
|
||||
|
||||
// HasRoundStats applies the HasEdge predicate on the "round_stats" edge.
|
||||
func HasRoundStats() predicate.Stats {
|
||||
return predicate.Stats(func(s *sql.Selector) {
|
||||
step := sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(RoundStatsTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.O2M, false, RoundStatsTable, RoundStatsColumn),
|
||||
)
|
||||
sqlgraph.HasNeighbors(s, step)
|
||||
})
|
||||
}
|
||||
|
||||
// HasRoundStatsWith applies the HasEdge predicate on the "round_stats" edge with a given conditions (other predicates).
|
||||
func HasRoundStatsWith(preds ...predicate.RoundStats) predicate.Stats {
|
||||
return predicate.Stats(func(s *sql.Selector) {
|
||||
step := sqlgraph.NewStep(
|
||||
sqlgraph.From(Table, FieldID),
|
||||
sqlgraph.To(RoundStatsInverseTable, FieldID),
|
||||
sqlgraph.Edge(sqlgraph.O2M, false, RoundStatsTable, RoundStatsColumn),
|
||||
)
|
||||
sqlgraph.HasNeighborsWith(s, step, func(s *sql.Selector) {
|
||||
for _, p := range preds {
|
||||
p(s)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// And groups predicates with the AND operator between them.
|
||||
func And(predicates ...predicate.Stats) predicate.Stats {
|
||||
return predicate.Stats(func(s *sql.Selector) {
|
||||
|
Reference in New Issue
Block a user