first commit

This commit is contained in:
2026-05-21 23:47:36 +02:00
commit 546406a85a
14 changed files with 1163 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
CREATE TABLE IF NOT EXISTS users (
id TEXT PRIMARY KEY,
expires_at TEXT
);
CREATE TABLE IF NOT EXISTS auth_tokens (
token TEXT PRIMARY KEY,
user_id TEXT NOT NULL REFERENCES users(id),
expires_at TEXT
);
CREATE TABLE IF NOT EXISTS api_tokens (
token TEXT PRIMARY KEY,
user_id TEXT NOT NULL REFERENCES users(id),
expires_at TEXT
);
CREATE INDEX IF NOT EXISTS
idx_auth_tokens_user ON auth_tokens(user_id);
CREATE INDEX IF NOT EXISTS
idx_api_tokens_user ON api_tokens(user_id);