Import committed lab5 baseline 03899d7 via git archive: API replicas, PostgreSQL, private S3, RabbitMQ, publisher, worker, migrations, and hooks. Preserve lab6 contracts and the separate telemetry stack. Static checks pass; Docker runtime integration remains pending.
8 lines
218 B
SQL
8 lines
218 B
SQL
CREATE TABLE sessions (
|
|
token_hash bytea PRIMARY KEY,
|
|
user_id uuid NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
|
expires_at timestamptz NOT NULL
|
|
);
|
|
|
|
CREATE INDEX sessions_user_idx ON sessions (user_id);
|