chore: import lab6 baseline

This commit is contained in:
2026-11-01 17:59:39 +03:00
parent 20afc2c790
commit 69ec859cae
123 changed files with 18072 additions and 0 deletions
@@ -0,0 +1,9 @@
ALTER TABLE attachments
DROP CONSTRAINT attachments_ready_at;
ALTER TABLE attachments
ADD CONSTRAINT attachments_ready_at CHECK (
(status = 'pending' AND ready_at IS NULL) OR
(status = 'ready' AND ready_at IS NOT NULL) OR
status = 'deleting'
);