Rework tables

This commit is contained in:
2024-10-27 17:39:09 +01:00
parent af7fc09078
commit beec0ca989
2 changed files with 34 additions and 17 deletions

View File

@@ -5,28 +5,35 @@ import "time"
type (
Guild struct {
ID int
Name string
Name string `json:"name"`
}
Stinky struct {
ID int
Name string
Guild Guild
Player struct {
ID int
Name string `json:"name"`
Guild Guild `json:"guild"`
}
Association struct {
ID int
LHS Player
RHS Player
Note string
}
Note struct {
ID int
Content string
Timestamp time.Time
Stinky Stinky
Player Player
}
)
type NoteData struct {
Player string
PlayerID int
Date time.Time
Guild string
GuildID int
Note string
Player string
Date time.Time
Guild string
Note string
Associations []NoteAssociationData
}
type NoteAssociationData struct {
Player string
Note string
}