feat: add sql request for getting game

This commit is contained in:
Jeffrey Duroyon
2020-05-11 01:05:30 +02:00
parent 8d40337a1c
commit c6a2ae5447
4 changed files with 40 additions and 3 deletions

View File

@@ -1,9 +1,13 @@
package model
import "time"
type Game struct {
ID string `json:"game_id"`
User User `json:"-"`
Server Server `json:"server"`
Cages []*Cage `json:"cages"`
SoldHamster []*Hamster `json:"sold_hamsters"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
}