This commit is contained in:
Baobhan Sith
2025-04-24 10:20:00 +08:00
parent 53279f28c6
commit dae660a72a
4 changed files with 14 additions and 11 deletions
@@ -57,7 +57,7 @@ export const tableDefinitions: TableDefinition[] = [
init: settingsRepository.ensureDefaultSettingsExist // <-- Use the function from the repository
},
{ name: 'audit_logs', sql: schemaSql.createAuditLogsTableSQL },
{ name: 'api_keys', sql: schemaSql.createApiKeysTableSQL },
// { name: 'api_keys', sql: schemaSql.createApiKeysTableSQL }, // Removed API Keys table from registry
{ name: 'passkeys', sql: schemaSql.createPasskeysTableSQL },
{ name: 'notification_settings', sql: schemaSql.createNotificationSettingsTableSQL },
{ name: 'users', sql: schemaSql.createUsersTableSQL },
+9 -8
View File
@@ -18,14 +18,15 @@ CREATE TABLE IF NOT EXISTS audit_logs (
);
`;
export const createApiKeysTableSQL = `
CREATE TABLE IF NOT EXISTS api_keys (
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
hashed_key TEXT UNIQUE NOT NULL,
created_at INTEGER NOT NULL
);
`;
// Removed API Keys table definition
// export const createApiKeysTableSQL = `
// CREATE TABLE IF NOT EXISTS api_keys (
// id INTEGER PRIMARY KEY AUTOINCREMENT,
// name TEXT NOT NULL,
// hashed_key TEXT UNIQUE NOT NULL,
// created_at INTEGER NOT NULL
// );
// `;
export const createPasskeysTableSQL = `
CREATE TABLE IF NOT EXISTS passkeys (