Выполнить лабораторную 4: S3-вложения и согласованность хранилищ

This commit is contained in:
wpyatzy
2026-11-06 19:53:58 +03:00
parent ec540a1a72
commit d228560474
77 changed files with 15769 additions and 63 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);