diff options
author | Aki <please@ignore.pl> | 2021-04-26 23:29:02 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-04-26 23:29:02 +0200 |
commit | 31caf8496ada3837da199bba3b1c27f5d6462f9a (patch) | |
tree | 6a068923adc34dbcd1a387223d5c852fa95607bf /models.go | |
parent | 60a2f794f1e04f9cc106d0df555d35c14afb3082 (diff) | |
download | field-31caf8496ada3837da199bba3b1c27f5d6462f9a.zip field-31caf8496ada3837da199bba3b1c27f5d6462f9a.tar.gz field-31caf8496ada3837da199bba3b1c27f5d6462f9a.tar.bz2 |
Remodeled battle storage
Diffstat (limited to 'models.go')
-rw-r--r-- | models.go | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -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"` } |