-- AlterTable
ALTER TABLE "PerformanceParticipation" ADD COLUMN     "isTrainingRow" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN     "overrideCostumePct" DECIMAL(5,2),
ADD COLUMN     "overrideChoreographyPct" DECIMAL(5,2),
ADD COLUMN     "overrideDoublingPct" DECIMAL(5,2),
ADD COLUMN     "overrideMemorizeAPct" DECIMAL(5,2),
ADD COLUMN     "overrideMemorizeBPct" DECIMAL(5,2),
ADD COLUMN     "overrideMusicianId" TEXT,
ADD COLUMN     "overrideOnstagePct" DECIMAL(5,2),
ADD COLUMN     "parentTrackId" TEXT;

-- CreateIndex
CREATE INDEX "PerformanceParticipation_overrideMusicianId_idx" ON "PerformanceParticipation"("overrideMusicianId");

-- CreateIndex
CREATE INDEX "PerformanceParticipation_parentTrackId_idx" ON "PerformanceParticipation"("parentTrackId");

-- AddForeignKey
ALTER TABLE "PerformanceParticipation" ADD CONSTRAINT "PerformanceParticipation_overrideMusicianId_fkey" FOREIGN KEY ("overrideMusicianId") REFERENCES "Musician"("id") ON DELETE SET NULL ON UPDATE CASCADE;
