first commit
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user