feat(imaging): lab5 add optimized webp generation and update enums
This commit is contained in:
@@ -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)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user