Add admin-route & dropdown-menu. Add clear-cache & create-code. Adjustments for activation-code and user models. Add sweet-alert for admin-tools.

This commit is contained in:
MaxJa4
2024-01-20 16:47:22 +01:00
parent f2ab72ba1e
commit e5d13f2270
15 changed files with 281 additions and 55 deletions

View File

@@ -1,6 +1,8 @@
package models
type ActivationCode struct {
Code string
Used bool
Code string `gorm:"primary_key"`
UserRole Role
UsedForUsername string
UsedFor User `gorm:"foreignKey:UsedForUsername"`
}