feat: add first-run admin setup
This commit is contained in:
1 parent
dd2fc71867
commit
2aaa9335e3
16 files changed
+644
-152
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user