Match user and session schema changes

This commit is contained in:
2026-01-24 15:48:22 -06:00
parent 474420ac1e
commit 579a19669e
2 changed files with 180 additions and 52 deletions

View File

@@ -2,7 +2,8 @@
-- Create sessions table for auth tokens
CREATE TABLE sessions (
id UUID PRIMARY KEY,
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
token_hash TEXT UNIQUE NOT NULL,
user_id UUID NOT NULL REFERENCES users(id),
user_email_id UUID REFERENCES user_emails(id),
token_type TEXT NOT NULL,