DROP INDEX IF EXISTS "UniqueSchedule";
CREATE UNIQUE INDEX "UniqueSchedule"
  ON public.schedule
  USING btree
  (date_start, hours_start, id_schedule_rules)
  WHERE type_schedule::text = ANY (ARRAY['A'::character varying, 'CF'::character varying]::text[]);