20 lines
404 B
Go
Raw Normal View History

2025-01-05 02:53:54 +01:00
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"`
}