fixed match win/loss/ties
This commit is contained in:
@@ -14,7 +14,7 @@ type Match struct {
|
||||
// Fields of the Match.
|
||||
func (Match) Fields() []ent.Field {
|
||||
return []ent.Field{
|
||||
field.Uint64("match_id").Unique().Immutable().StructTag(`json:"match_id,string"`),
|
||||
field.Uint64("id").Unique().Immutable().StructTag(`json:"match_id,string"`),
|
||||
field.String("share_code"),
|
||||
field.String("map").Optional(),
|
||||
field.Time("date"),
|
||||
|
@@ -15,7 +15,7 @@ type Player struct {
|
||||
// Fields of the Player.
|
||||
func (Player) Fields() []ent.Field {
|
||||
return []ent.Field{
|
||||
field.Uint64("steamid").Unique().Immutable().StructTag(`json:",string"`),
|
||||
field.Uint64("id").Unique().Immutable().StructTag(`json:"steamid,string"`),
|
||||
field.String("name").Optional(),
|
||||
field.String("avatar_url").Optional(),
|
||||
field.String("vanity_url").Optional(),
|
||||
|
Reference in New Issue
Block a user