-- AlterTable
ALTER TABLE "Task" ADD COLUMN     "locationId" TEXT;

-- CreateIndex
CREATE INDEX "Task_locationId_idx" ON "Task"("locationId");

-- AddForeignKey
ALTER TABLE "Task" ADD CONSTRAINT "Task_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "Location"("id") ON DELETE SET NULL ON UPDATE CASCADE;
