feat(server): Add the field api_key at the database

This commit is contained in:
maooyer
2026-04-21 21:05:32 +08:00
committed by shuaiplus
parent 77794e43ce
commit d6e5a1c40b
4 changed files with 12 additions and 6 deletions
+1
View File
@@ -13,6 +13,7 @@ const SCHEMA_STATEMENTS: readonly string[] = [
'ALTER TABLE users ADD COLUMN verify_devices INTEGER NOT NULL DEFAULT 1',
'ALTER TABLE users ADD COLUMN totp_secret TEXT',
'ALTER TABLE users ADD COLUMN totp_recovery_code TEXT',
'ALTER TABLE users ADD COLUMN api_key TEXT',
'CREATE TABLE IF NOT EXISTS user_revisions (' +
'user_id TEXT PRIMARY KEY, revision_date TEXT NOT NULL, ' +