feat: add first-run admin setup

This commit is contained in:
i vib committed 2026-10-25 06:12:47 -07:00
1 parent dd2fc71867
commit 2aaa9335e3
16 files changed
+644 -152

No files matched your search

+10
View File
@@ -41,6 +41,16 @@ model ApiKey {
@@map("api_keys")
}
model AdminUser {
id Int @id @default(1) @db.SmallInt
email String @unique
passwordSalt Bytes @map("password_salt")
passwordHash Bytes @map("password_hash")
createdAt DateTime @default(now()) @map("created_at")
@@map("admin_users")
}
model AdminSettings {
id String @id @default("default")
serverPort Int @default(4000)