Add post model and lastviewedat to gamemember

This commit is contained in:
Miguel de la Cruz 2021-09-13 23:39:09 +02:00
parent 4c7e7f4add
commit 701dfbe179
4 changed files with 36 additions and 6 deletions

View file

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

9
server/model/post.go Normal file
View file

@ -0,0 +1,9 @@
package model
type Post struct {
ID int `json:"id"`
UserID int `json:"user_id"`
GameID int `json:"game_id"`
CreatedAt int `json:"createdat"`
Body string `json:"body"`
}