ЛР4: S3-вложения, приватный bucket и согласованность хранилищ (трек 2)

This commit is contained in:
IvanMeln1k
2026-12-04 14:19:19 +03:00
parent ec540a1a72
commit f1fae32722
1134 changed files with 557640 additions and 21 deletions
@@ -0,0 +1,10 @@
-- Lab4 contract: a message may carry text = "" when it references at least one
-- attachment of the chat (contracts/README.md, "Вложения"). The HTTP handler
-- still rejects empty or blank text without attachments; the database
-- constraint only widens to permit the documented attachment-only message.
ALTER TABLE messages
DROP CONSTRAINT messages_text_length;
ALTER TABLE messages
ADD CONSTRAINT messages_text_length
CHECK (char_length(text) BETWEEN 0 AND 4000);