mirror of
https://github.com/diced/zipline.git
synced 2025-12-12 15:50:11 -08:00
feat: webauthn passkeys
This commit is contained in:
@@ -28,6 +28,7 @@ model User {
|
||||
view Json @default("{}")
|
||||
|
||||
totpSecret String?
|
||||
passkeys UserPasskey[]
|
||||
|
||||
files File[]
|
||||
urls Url[]
|
||||
@@ -38,6 +39,20 @@ model User {
|
||||
IncompleteFile IncompleteFile[]
|
||||
}
|
||||
|
||||
model UserPasskey {
|
||||
id String @id @default(cuid())
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
lastUsed DateTime?
|
||||
|
||||
name String
|
||||
reg Json
|
||||
|
||||
User User @relation(fields: [userId], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
||||
userId String
|
||||
}
|
||||
|
||||
enum Role {
|
||||
USER
|
||||
ADMIN
|
||||
|
||||
Reference in New Issue
Block a user