summaryrefslogtreecommitdiffhomepage
path: root/models.go
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2021-04-26 23:29:02 +0200
committerAki <please@ignore.pl>2021-04-26 23:29:02 +0200
commit31caf8496ada3837da199bba3b1c27f5d6462f9a (patch)
tree6a068923adc34dbcd1a387223d5c852fa95607bf /models.go
parent60a2f794f1e04f9cc106d0df555d35c14afb3082 (diff)
downloadfield-31caf8496ada3837da199bba3b1c27f5d6462f9a.zip
field-31caf8496ada3837da199bba3b1c27f5d6462f9a.tar.gz
field-31caf8496ada3837da199bba3b1c27f5d6462f9a.tar.bz2
Remodeled battle storage
Diffstat (limited to 'models.go')
-rw-r--r--models.go13
1 files changed, 6 insertions, 7 deletions
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"`
}