feat(backend): replace auth stub with real session, create users and sessions tables
This commit is contained in:
6
backend/migrations/20260523200652_create_sessions.sql
Normal file
6
backend/migrations/20260523200652_create_sessions.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
CREATE TABLE sessions (
|
||||
id TEXT PRIMARY KEY,
|
||||
user_id BIGINT NOT NULL REFERENCES users(id),
|
||||
expires_at TIMESTAMPTZ NOT NULL,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||||
);
|
||||
Reference in New Issue
Block a user