Feat: add journal [wip]

This commit is contained in:
Grail Finder
2025-07-05 14:15:31 +03:00
parent 5b24378956
commit 27e31603da
3 changed files with 31 additions and 1 deletions

View File

@ -130,6 +130,14 @@ type CardMark struct {
Username string `db:"username"`
}
type Journal struct {
ID uint32 `db:"id"`
Username string `db:"username"`
RoomID string `db:"room_id"`
Entry string `db:"entry"`
CreatedAt time.Time `db:"created_at"`
}
type Room struct {
ID string `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
@ -151,7 +159,7 @@ type Room struct {
BlueTeam Team `db:"-"`
Cards []WordCard `db:"-"`
BotMap map[string]BotPlayer `db:"-"`
LogJournal []string `db:"-"`
LogJournal []Journal `db:"-"`
Settings GameSettings `db:"-"`
}