feat(db): add sessions table for /api/* auth

Stores sha256(token) plus user_agent + last_seen_at so future
active-sessions UI doesn't need another migration.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-20 19:37:26 -04:00
parent 9b0433ad9b
commit 1741b57a0b
2 changed files with 20 additions and 0 deletions
@@ -0,0 +1,2 @@
DROP INDEX IF EXISTS sessions_user_id_idx;
DROP TABLE IF EXISTS sessions;