-- DropForeignKey
ALTER TABLE `BotInstance` DROP FOREIGN KEY `BotInstance_empresaId_fkey`;

-- DropIndex
DROP INDEX `BotInstance_empresaId_key` ON `BotInstance`;

-- AlterTable
ALTER TABLE `BotInstance` ADD COLUMN `diasEnvioResumo` VARCHAR(191) NULL DEFAULT '[1,2,3,4,5]',
    ADD COLUMN `empresasResumo` VARCHAR(191) NULL DEFAULT '[]',
    ADD COLUMN `enviosAdicionais` JSON NULL,
    ADD COLUMN `isInstancePrincipal` BOOLEAN NULL DEFAULT false,
    MODIFY `empresaId` VARCHAR(191) NULL;

-- AddForeignKey
ALTER TABLE `BotInstance` ADD CONSTRAINT `BotInstance_empresaId_fkey` FOREIGN KEY (`empresaId`) REFERENCES `Empresa`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
