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

@@ -5,6 +5,7 @@ import (
"fmt"
uuid "github.com/satori/go.uuid"
"hamster-tycoon/randomizer"
"time"
)
const (
@@ -48,6 +49,8 @@ type Hamster struct {
GestationCooldown int8 `json:"gestation_cooldown"`
GestationFather *Hamster `json:"gestation_father"`
Child []*Hamster `json:"childs"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
}
func (h *Hamster) Die() {