-- Track when a task was assigned (for sorting and display)

ALTER TABLE "lab_case_tasks" ADD COLUMN "assignedAt" TIMESTAMP(3);

CREATE INDEX "lab_case_tasks_assignedAt_labCaseId_priority_idx"
  ON "lab_case_tasks"("assignedAt" DESC, "labCaseId" ASC, "priority" DESC);
