From 31caf8496ada3837da199bba3b1c27f5d6462f9a Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 26 Apr 2021 23:29:02 +0200 Subject: Remodeled battle storage --- models.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'models.go') diff --git a/models.go b/models.go index 37059dc..9a0a67f 100644 --- a/models.go +++ b/models.go @@ -5,16 +5,15 @@ import ( ) type Killmail struct { - Id string `json:"id"` + Id uint64 `json:"id"` Hash string `json:"hash"` } -type Wreck struct { - Killmail - Team string `json:"team"` -} +type Team []uint32 type Battle struct { - Id string - Date time.Time + Id string `json:"-"` + LastModified time.Time `json:"-"` + Teams [2]Team `json:"teams"` + Killmails []Killmail `json:"killmails"` } -- cgit v1.1