-- DropForeignKey
ALTER TABLE `vacancy_benefits` DROP FOREIGN KEY `vacancy_benefits_id_vacancy_fkey`;

-- DropForeignKey
ALTER TABLE `vacancy_benefits` DROP FOREIGN KEY `vacancy_benefits_id_benefit_fkey`;

-- AddForeignKey
ALTER TABLE `vacancy_benefits` ADD CONSTRAINT `vacancy_benefits_id_vacancy_fkey` FOREIGN KEY (`id_vacancy`) REFERENCES `vacancies`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;

-- AddForeignKey
ALTER TABLE `vacancy_benefits` ADD CONSTRAINT `vacancy_benefits_id_benefit_fkey` FOREIGN KEY (`id_benefit`) REFERENCES `benefits`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
