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

15 lines
373 B
Go
Raw Permalink Normal View History

2019-05-27 21:46:09 +00:00
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"`
}