1
0

test seven

This commit is contained in:
2024-04-11 06:11:26 +09:00
parent 1d5cb2ad9f
commit 833fbe5dbc
42 changed files with 15150 additions and 22 deletions

View File

@ -2629,6 +2629,29 @@ func HasMaWith(preds ...predicate.Ma) predicate.User {
})
}
// HasSev applies the HasEdge predicate on the "sev" edge.
func HasSev() predicate.User {
return predicate.User(func(s *sql.Selector) {
step := sqlgraph.NewStep(
sqlgraph.From(Table, FieldID),
sqlgraph.Edge(sqlgraph.O2M, false, SevTable, SevColumn),
)
sqlgraph.HasNeighbors(s, step)
})
}
// HasSevWith applies the HasEdge predicate on the "sev" edge with a given conditions (other predicates).
func HasSevWith(preds ...predicate.Sev) predicate.User {
return predicate.User(func(s *sql.Selector) {
step := newSevStep()
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.User) predicate.User {
return predicate.User(func(s *sql.Selector) {