added efficenciy

This commit is contained in:
Rajpreet0 2026-09-29 21:47:44 +02:00
parent bc9b0b925e
commit 7ac5713193
8 changed files with 168 additions and 38 deletions

View file

@ -0,0 +1,7 @@
-- Kleine Vorschaubilder (JPEG, im Browser beim Upload erzeugt) neben dem Original
alter table public.documents
add column if not exists thumbnail_path text;
alter table public.documents
add constraint documents_thumbnail_path_matches_client
check (thumbnail_path is null or split_part(thumbnail_path, '/', 1) = client_id::text);