stable ui

This commit is contained in:
2026-06-11 19:45:03 +03:30
parent b2a79df338
commit 3ce26d4d1a
21 changed files with 6368 additions and 114 deletions
+16
View File
@@ -20,11 +20,27 @@ model User {
mobile String?
role Role @default(USER)
orgId Int?
avatarUrl String? @db.LongText
challenge String? @db.Text
countings Counting[]
authenticators Authenticator[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Authenticator {
id String @id @default(cuid())
credentialID String @unique
credentialPublicKey Bytes
counter BigInt
credentialDeviceType String
credentialBackedUp Boolean
transports String?
userId Int
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}
model Location {
id Int @id @default(autoincrement())
code String @unique