added roundstats with eco info, switched to avatar hash

This commit is contained in:
2021-10-17 03:52:20 +02:00
parent 7f5a2f8956
commit fd8c026a8e
35 changed files with 4187 additions and 160 deletions

View File

@@ -36,16 +36,16 @@ func (pc *PlayerCreate) SetNillableName(s *string) *PlayerCreate {
return pc
}
// SetAvatarURL sets the "avatar_url" field.
func (pc *PlayerCreate) SetAvatarURL(s string) *PlayerCreate {
pc.mutation.SetAvatarURL(s)
// SetAvatar sets the "avatar" field.
func (pc *PlayerCreate) SetAvatar(s string) *PlayerCreate {
pc.mutation.SetAvatar(s)
return pc
}
// SetNillableAvatarURL sets the "avatar_url" field if the given value is not nil.
func (pc *PlayerCreate) SetNillableAvatarURL(s *string) *PlayerCreate {
// SetNillableAvatar sets the "avatar" field if the given value is not nil.
func (pc *PlayerCreate) SetNillableAvatar(s *string) *PlayerCreate {
if s != nil {
pc.SetAvatarURL(*s)
pc.SetAvatar(*s)
}
return pc
}
@@ -342,13 +342,13 @@ func (pc *PlayerCreate) createSpec() (*Player, *sqlgraph.CreateSpec) {
})
_node.Name = value
}
if value, ok := pc.mutation.AvatarURL(); ok {
if value, ok := pc.mutation.Avatar(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{
Type: field.TypeString,
Value: value,
Column: player.FieldAvatarURL,
Column: player.FieldAvatar,
})
_node.AvatarURL = value
_node.Avatar = value
}
if value, ok := pc.mutation.VanityURL(); ok {
_spec.Fields = append(_spec.Fields, &sqlgraph.FieldSpec{