Add post model and lastviewedat to gamemember
This commit is contained in:
parent
4c7e7f4add
commit
701dfbe179
4 changed files with 36 additions and 6 deletions
|
@ -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
9
server/model/post.go
Normal 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"`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue