ЛР 7 — БПИ2304 — Кирюпина — на 3
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
SashaKirupina
2026-11-28 00:31:13 +03:00
parent 20afc2c790
commit 7fb93b31ba
93 changed files with 8017 additions and 122 deletions
+11
View File
@@ -0,0 +1,11 @@
CREATE TABLE message_requests (
user_id uuid NOT NULL REFERENCES users(id),
chat_id uuid NOT NULL REFERENCES chats(id),
key text NOT NULL,
text text NOT NULL,
message_id uuid NOT NULL REFERENCES messages(id),
response jsonb NOT NULL,
expires_at timestamptz NOT NULL,
PRIMARY KEY (user_id, chat_id, key)
);
CREATE INDEX message_requests_expiry ON message_requests(expires_at);