33 lines
600 B
Go
33 lines
600 B
Go
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
|
|
}
|