Feat: add journal [wip]
This commit is contained in:
@ -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:"-"`
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user