feat(imaging): lab5 add optimized webp generation and update enums

This commit is contained in:
Голиков Maximillian Антон
2026-11-09 17:28:59 +03:00
parent b8d6e0efda
commit 9b28579031
3 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ CREATE TABLE attachment_variants (
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
CONSTRAINT attachment_variants_pkey PRIMARY KEY (attachment_id, name),
CONSTRAINT attachment_variants_name_chk CHECK (name IN ('thumbnail', 'crop', 'webp')),
CONSTRAINT attachment_variants_name_chk CHECK (name IN ('thumbnail', 'crop', 'optimized')),
CONSTRAINT attachment_variants_size_chk CHECK (size_bytes > 0),
CONSTRAINT attachment_variants_sha256_len CHECK (octet_length(sha256) = 32)
);