-- DropForeignKey
ALTER TABLE "LoadEntry" DROP CONSTRAINT "LoadEntry_calculationId_fkey";

-- DropForeignKey
ALTER TABLE "LoadEntry" DROP CONSTRAINT "LoadEntry_stationId_fkey";

-- DropForeignKey
ALTER TABLE "LoadStation" DROP CONSTRAINT "LoadStation_configId_fkey";

-- AddForeignKey
ALTER TABLE "LoadStation" ADD CONSTRAINT "LoadStation_configId_fkey" FOREIGN KEY ("configId") REFERENCES "WeightBalanceConfig"("id") ON DELETE CASCADE ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "LoadEntry" ADD CONSTRAINT "LoadEntry_calculationId_fkey" FOREIGN KEY ("calculationId") REFERENCES "WeightBalanceCalculation"("id") ON DELETE CASCADE ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "LoadEntry" ADD CONSTRAINT "LoadEntry_stationId_fkey" FOREIGN KEY ("stationId") REFERENCES "LoadStation"("id") ON DELETE CASCADE ON UPDATE CASCADE;
