Add state
This commit is contained in:
@ -11,27 +11,29 @@ import (
|
||||
type MapScoreList []MapScore
|
||||
|
||||
type Capture struct {
|
||||
Id uint
|
||||
ID int64 `bun:",pk,autoincrement"`
|
||||
Host string
|
||||
Port string
|
||||
Name string
|
||||
Active bool
|
||||
Start time.Time
|
||||
MapScores MapScoreList
|
||||
MapScores MapScoreList `bun:"rel:has-many,join:id=capture_id"`
|
||||
}
|
||||
|
||||
type MapScore struct {
|
||||
Id uint
|
||||
ID int64 `bun:",pk,autoincrement"`
|
||||
CaptureID int64 `bun:"capture_id"`
|
||||
StartTime time.Time
|
||||
Map string
|
||||
ScoreList []Score
|
||||
ScoreList []Score `bun:"rel:has-many,join:id=mapscore_id"`
|
||||
}
|
||||
|
||||
type Score struct {
|
||||
Id uint
|
||||
Name string
|
||||
Score int
|
||||
Ping int
|
||||
ID int64 `bun:",pk,autoincrement"`
|
||||
MapScoreID int64 `bun:"mapscore_id"`
|
||||
Name string
|
||||
Score int
|
||||
Ping int
|
||||
}
|
||||
|
||||
type ResultTable struct {
|
||||
|
||||
Reference in New Issue
Block a user