Game store and create store functions

This commit is contained in:
Miguel de la Cruz 2021-09-13 15:21:37 +02:00
parent 3c7c32423e
commit f280c0701f
5 changed files with 139 additions and 44 deletions

View file

@ -1,7 +1,7 @@
package model
type Game struct {
ID int
UserID int
Name string
ID int `json:"id"`
UserID int `json:"user_id"`
Name string `json:"name"`
}

View file

@ -6,7 +6,7 @@ const (
)
type GameMember struct {
GameID int
UserID int
Role string
GameID int `json:"game_id"`
UserID int `json:"user_id"`
Role string `json:"role"`
}