Move everything to backend

This commit is contained in:
2024-10-27 23:00:51 +01:00
parent 4d21c77f99
commit a74f722c58
11 changed files with 0 additions and 0 deletions

39
backend/types.go Normal file
View File

@@ -0,0 +1,39 @@
package main
import "time"
type (
Guild struct {
ID int64
Name string `json:"name"`
}
Player struct {
ID int64
Name string `json:"name"`
Guild Guild `json:"guild"`
}
Association struct {
ID int64
LHS Player
RHS Player
Note string
}
Note struct {
ID int64
Content string
Timestamp time.Time
Player Player
}
)
type NoteData struct {
Player string
Date time.Time
Guild string
Note string
Associations []NoteAssociationData
}
type NoteAssociationData struct {
Player string
Note string
}