feat: Carry runnable lab5 business stack into lab6 (U1)

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.
This commit is contained in:
Самохвалов Андрей Ремович
2026-10-02 14:43:04 +03:00
parent 22e1764d84
commit c60b3e652b
38 changed files with 2542 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
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);