add badges

This commit is contained in:
Stanislaw
2023-01-21 02:10:32 +01:00
parent fa0ae10a7f
commit 4c33520f46
7 changed files with 41 additions and 12 deletions

View File

@@ -21,5 +21,9 @@ func CreateConnection() {
&QuoteLine{},
&Image{},
&Admincard{},
&Splash{})
&Splash{},
&User{},
&Badge{},
&GivenBadges{},
)
}

View File

@@ -38,3 +38,23 @@ type Splash struct {
Id string
Splash string
}
type User struct {
Id string
UserId string
AccentColor string
}
type Badge struct {
Id string
Name string
Desc string
Expl string
Img string
}
type GivenBadges struct {
UserId string
BadgeId string
Date *time.Time
}