Реализовать лабораторную 4 на оценку 5

Добавить приватное S3-хранилище, вложения, presigned upload, reconciler и доказательства.
This commit is contained in:
Чиняева
2026-11-07 01:37:21 +03:00
parent ec540a1a72
commit f39ae06ef3
69 changed files with 5254 additions and 31 deletions
+10
View File
@@ -0,0 +1,10 @@
-- The idempotency reservation is inserted before the message row inside one
-- transaction. A deferred foreign key lets both statements commit together
-- while still guaranteeing that a committed key always points at a message.
ALTER TABLE idempotency_keys
DROP CONSTRAINT IF EXISTS idempotency_keys_message_id_fkey;
ALTER TABLE idempotency_keys
ADD CONSTRAINT idempotency_keys_message_id_fkey
FOREIGN KEY (message_id) REFERENCES messages(id) ON DELETE CASCADE
DEFERRABLE INITIALLY DEFERRED;