first commit

This commit is contained in:
2026-08-12 12:56:22 +01:00
commit ff96be2708
153 changed files with 27779 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
package db
import "time"
type AdminUser struct {
ID int64
Username string
PasswordHash string
MustChangePassword bool
TOTPSecret string
TOTPEnabled bool
IsGlobalAdmin bool
CreatedBy *int64
CreatedAt time.Time
}
type AdminSession struct {
Token string
UserID int64
MFAVerified bool
CreatedAt time.Time
ExpiresAt time.Time
}
type WebAuthnCredential struct {
ID int64
UserID int64
Name string
CredentialID string
CredentialData string
CreatedAt time.Time
}