This repository has been archived on 2019-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
scoreboard/data/group.go
2019-05-27 23:46:09 +02:00

14 lines
373 B
Go

package data
import "go.mongodb.org/mongo-driver/bson/primitive"
type Group struct {
ID primitive.ObjectID `bson:"_id,omitempty"`
Name string `bson:"name,omitempty"`
Scores []Score `bson:"scores,omitempty"`
}
type Score struct {
GameID primitive.ObjectID `bson:"_gameId,omitempty"`
Points int `bson:"points,omitempty"`
}