20 lines
404 B
Go
20 lines
404 B
Go
|
package model
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type GameID string
|
||
|
|
||
|
type Game struct {
|
||
|
ID GameID
|
||
|
Added time.Time `json:"added"`
|
||
|
Author PlayerID `json:"author"`
|
||
|
Team0Player0 PlayerID `json:"t0p0"`
|
||
|
Team0Player1 PlayerID `json:"t0p1"`
|
||
|
Team1Player0 PlayerID `json:"t1p0"`
|
||
|
Team1Player1 PlayerID `json:"t1p1"`
|
||
|
Score int `json:"score"`
|
||
|
Overtime bool `jsone:"ot"`
|
||
|
}
|