

CREATE UNIQUE INDEX task_composite_key ON public.task USING btree (chain, store_name, product_id, week_start_date, name, sjreport_id);