feat(lab4): implement S3 attachments with fault tolerance

This commit is contained in:
sashadugina06
2026-11-06 18:15:53 +03:00
parent ec540a1a72
commit b4704b47b2
67 changed files with 3436 additions and 46 deletions
+9
View File
@@ -0,0 +1,9 @@
CREATE TABLE message_requests (
chat_id UUID NOT NULL REFERENCES chats(id),
sender_id UUID NOT NULL REFERENCES users(id),
key VARCHAR(128) NOT NULL,
text TEXT NOT NULL,
message_id UUID REFERENCES messages(id),
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
PRIMARY KEY (chat_id, sender_id, key)
);