Выполнить лабораторную 5: асинхронный pipeline и исследование идемпотентности

This commit is contained in:
wpyatzy
2026-11-20 18:47:23 +03:00
parent 276dbdad8a
commit ec277e7e64
72 changed files with 6521 additions and 27 deletions
+10
View File
@@ -0,0 +1,10 @@
CREATE TABLE message_requests (
sender_id UUID NOT NULL REFERENCES users(id),
chat_id UUID NOT NULL REFERENCES chats(id),
key VARCHAR(128) NOT NULL,
body TEXT NOT NULL,
response JSONB NOT NULL,
expires_at TIMESTAMPTZ NOT NULL,
PRIMARY KEY(sender_id, chat_id, key)
);
CREATE INDEX message_requests_expiry ON message_requests(expires_at);