-- DropForeignKey
ALTER TABLE "MissionOnStationUsers" DROP CONSTRAINT "MissionOnStationUsers_missionId_fkey";

-- DropForeignKey
ALTER TABLE "MissionOnStationUsers" DROP CONSTRAINT "MissionOnStationUsers_userId_fkey";

-- DropForeignKey
ALTER TABLE "MissionsOnStations" DROP CONSTRAINT "MissionsOnStations_missionId_fkey";

-- AddForeignKey
ALTER TABLE "MissionOnStationUsers" ADD CONSTRAINT "MissionOnStationUsers_userId_fkey" FOREIGN KEY ("userId") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "MissionOnStationUsers" ADD CONSTRAINT "MissionOnStationUsers_missionId_fkey" FOREIGN KEY ("missionId") REFERENCES "Mission"("id") ON DELETE CASCADE ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE "MissionsOnStations" ADD CONSTRAINT "MissionsOnStations_missionId_fkey" FOREIGN KEY ("missionId") REFERENCES "Mission"("id") ON DELETE CASCADE ON UPDATE CASCADE;
