updated deps; regen ent

This commit is contained in:
2022-11-03 02:19:19 +01:00
parent 4b256dd594
commit ff3bbe0037
44 changed files with 938 additions and 2309 deletions

View File

@@ -179,35 +179,19 @@ func (rsc *RoundStatsCreate) createSpec() (*RoundStats, *sqlgraph.CreateSpec) {
}
)
if value, ok := rsc.mutation.Round(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeUint,
Value: value,
Column: roundstats.FieldRound,
})
_spec.SetField(roundstats.FieldRound, field.TypeUint, value)
_node.Round = value
}
if value, ok := rsc.mutation.Bank(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeUint,
Value: value,
Column: roundstats.FieldBank,
})
_spec.SetField(roundstats.FieldBank, field.TypeUint, value)
_node.Bank = value
}
if value, ok := rsc.mutation.Equipment(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeUint,
Value: value,
Column: roundstats.FieldEquipment,
})
_spec.SetField(roundstats.FieldEquipment, field.TypeUint, value)
_node.Equipment = value
}
if value, ok := rsc.mutation.Spent(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeUint,
Value: value,
Column: roundstats.FieldSpent,
})
_spec.SetField(roundstats.FieldSpent, field.TypeUint, value)
_node.Spent = value
}
if nodes := rsc.mutation.MatchPlayerIDs(); len(nodes) > 0 {