Remove 'enabled' field from API key model and related database operations

This commit is contained in:
2025-12-06 17:59:11 +01:00
parent 80d5d44a0b
commit c37c1b8161
5 changed files with 11 additions and 20 deletions

View File

@@ -36,7 +36,6 @@ CREATE TABLE IF NOT EXISTS api_keys (
user_id TEXT NOT NULL,
permission_mode TEXT NOT NULL CHECK(permission_mode IN ('allow_all', 'per_instance')) DEFAULT 'per_instance',
expires_at INTEGER NULL,
enabled INTEGER NOT NULL DEFAULT 1,
created_at INTEGER NOT NULL,
updated_at INTEGER NOT NULL,
last_used_at INTEGER NULL