Реализация на 5

This commit is contained in:
Grbisba
2026-11-13 12:48:18 +03:00
parent ce035c8528
commit 2198368a44
60 changed files with 3253 additions and 181 deletions
@@ -0,0 +1,8 @@
CREATE TABLE attachment_variants (
attachment_id uuid NOT NULL REFERENCES attachments(id), pipeline_version integer NOT NULL,
variant text NOT NULL CHECK(variant IN ('original','thumbnail','crop','optimized')),
object_key text NOT NULL UNIQUE, sha256 text NOT NULL, size_bytes bigint NOT NULL,
PRIMARY KEY(attachment_id,pipeline_version,variant)
);
---- create above / drop below ----
DROP TABLE attachment_variants;