chore: import lab5 baseline

This commit is contained in:
2026-11-01 14:46:14 +03:00
parent 470d9d6f1e
commit 8b1cedea26
97 changed files with 14849 additions and 1 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'
);