added spray patterns

This commit is contained in:
2021-10-31 08:40:02 +01:00
parent 268793f0e5
commit 978232dd0a
66 changed files with 16805 additions and 11903 deletions

View File

@@ -5,9 +5,9 @@ package ent
import (
"context"
"csgowtfd/ent/match"
"csgowtfd/ent/matchplayer"
"csgowtfd/ent/player"
"csgowtfd/ent/predicate"
"csgowtfd/ent/stats"
"fmt"
"time"
@@ -188,17 +188,17 @@ func (mu *MatchUpdate) SetNillableGamebanPresent(b *bool) *MatchUpdate {
return mu
}
// AddStatIDs adds the "stats" edge to the Stats entity by IDs.
// AddStatIDs adds the "stats" edge to the MatchPlayer entity by IDs.
func (mu *MatchUpdate) AddStatIDs(ids ...int) *MatchUpdate {
mu.mutation.AddStatIDs(ids...)
return mu
}
// AddStats adds the "stats" edges to the Stats entity.
func (mu *MatchUpdate) AddStats(s ...*Stats) *MatchUpdate {
ids := make([]int, len(s))
for i := range s {
ids[i] = s[i].ID
// AddStats adds the "stats" edges to the MatchPlayer entity.
func (mu *MatchUpdate) AddStats(m ...*MatchPlayer) *MatchUpdate {
ids := make([]int, len(m))
for i := range m {
ids[i] = m[i].ID
}
return mu.AddStatIDs(ids...)
}
@@ -223,23 +223,23 @@ func (mu *MatchUpdate) Mutation() *MatchMutation {
return mu.mutation
}
// ClearStats clears all "stats" edges to the Stats entity.
// ClearStats clears all "stats" edges to the MatchPlayer entity.
func (mu *MatchUpdate) ClearStats() *MatchUpdate {
mu.mutation.ClearStats()
return mu
}
// RemoveStatIDs removes the "stats" edge to Stats entities by IDs.
// RemoveStatIDs removes the "stats" edge to MatchPlayer entities by IDs.
func (mu *MatchUpdate) RemoveStatIDs(ids ...int) *MatchUpdate {
mu.mutation.RemoveStatIDs(ids...)
return mu
}
// RemoveStats removes "stats" edges to Stats entities.
func (mu *MatchUpdate) RemoveStats(s ...*Stats) *MatchUpdate {
ids := make([]int, len(s))
for i := range s {
ids[i] = s[i].ID
// RemoveStats removes "stats" edges to MatchPlayer entities.
func (mu *MatchUpdate) RemoveStats(m ...*MatchPlayer) *MatchUpdate {
ids := make([]int, len(m))
for i := range m {
ids[i] = m[i].ID
}
return mu.RemoveStatIDs(ids...)
}
@@ -478,7 +478,7 @@ func (mu *MatchUpdate) sqlSave(ctx context.Context) (n int, err error) {
Target: &sqlgraph.EdgeTarget{
IDSpec: &sqlgraph.FieldSpec{
Type: field.TypeInt,
Column: stats.FieldID,
Column: matchplayer.FieldID,
},
},
}
@@ -494,7 +494,7 @@ func (mu *MatchUpdate) sqlSave(ctx context.Context) (n int, err error) {
Target: &sqlgraph.EdgeTarget{
IDSpec: &sqlgraph.FieldSpec{
Type: field.TypeInt,
Column: stats.FieldID,
Column: matchplayer.FieldID,
},
},
}
@@ -513,7 +513,7 @@ func (mu *MatchUpdate) sqlSave(ctx context.Context) (n int, err error) {
Target: &sqlgraph.EdgeTarget{
IDSpec: &sqlgraph.FieldSpec{
Type: field.TypeInt,
Column: stats.FieldID,
Column: matchplayer.FieldID,
},
},
}
@@ -754,17 +754,17 @@ func (muo *MatchUpdateOne) SetNillableGamebanPresent(b *bool) *MatchUpdateOne {
return muo
}
// AddStatIDs adds the "stats" edge to the Stats entity by IDs.
// AddStatIDs adds the "stats" edge to the MatchPlayer entity by IDs.
func (muo *MatchUpdateOne) AddStatIDs(ids ...int) *MatchUpdateOne {
muo.mutation.AddStatIDs(ids...)
return muo
}
// AddStats adds the "stats" edges to the Stats entity.
func (muo *MatchUpdateOne) AddStats(s ...*Stats) *MatchUpdateOne {
ids := make([]int, len(s))
for i := range s {
ids[i] = s[i].ID
// AddStats adds the "stats" edges to the MatchPlayer entity.
func (muo *MatchUpdateOne) AddStats(m ...*MatchPlayer) *MatchUpdateOne {
ids := make([]int, len(m))
for i := range m {
ids[i] = m[i].ID
}
return muo.AddStatIDs(ids...)
}
@@ -789,23 +789,23 @@ func (muo *MatchUpdateOne) Mutation() *MatchMutation {
return muo.mutation
}
// ClearStats clears all "stats" edges to the Stats entity.
// ClearStats clears all "stats" edges to the MatchPlayer entity.
func (muo *MatchUpdateOne) ClearStats() *MatchUpdateOne {
muo.mutation.ClearStats()
return muo
}
// RemoveStatIDs removes the "stats" edge to Stats entities by IDs.
// RemoveStatIDs removes the "stats" edge to MatchPlayer entities by IDs.
func (muo *MatchUpdateOne) RemoveStatIDs(ids ...int) *MatchUpdateOne {
muo.mutation.RemoveStatIDs(ids...)
return muo
}
// RemoveStats removes "stats" edges to Stats entities.
func (muo *MatchUpdateOne) RemoveStats(s ...*Stats) *MatchUpdateOne {
ids := make([]int, len(s))
for i := range s {
ids[i] = s[i].ID
// RemoveStats removes "stats" edges to MatchPlayer entities.
func (muo *MatchUpdateOne) RemoveStats(m ...*MatchPlayer) *MatchUpdateOne {
ids := make([]int, len(m))
for i := range m {
ids[i] = m[i].ID
}
return muo.RemoveStatIDs(ids...)
}
@@ -1068,7 +1068,7 @@ func (muo *MatchUpdateOne) sqlSave(ctx context.Context) (_node *Match, err error
Target: &sqlgraph.EdgeTarget{
IDSpec: &sqlgraph.FieldSpec{
Type: field.TypeInt,
Column: stats.FieldID,
Column: matchplayer.FieldID,
},
},
}
@@ -1084,7 +1084,7 @@ func (muo *MatchUpdateOne) sqlSave(ctx context.Context) (_node *Match, err error
Target: &sqlgraph.EdgeTarget{
IDSpec: &sqlgraph.FieldSpec{
Type: field.TypeInt,
Column: stats.FieldID,
Column: matchplayer.FieldID,
},
},
}
@@ -1103,7 +1103,7 @@ func (muo *MatchUpdateOne) sqlSave(ctx context.Context) (_node *Match, err error
Target: &sqlgraph.EdgeTarget{
IDSpec: &sqlgraph.FieldSpec{
Type: field.TypeInt,
Column: stats.FieldID,
Column: matchplayer.FieldID,
},
},
}