/*
  Warnings:

  - A unique constraint covering the columns `[userId,externalCompanyId]` on the table `department` will be added. If there are existing duplicate values, this will fail.

*/
-- AlterTable
ALTER TABLE `department` ADD COLUMN `externalCompanyId` INTEGER NULL;

-- CreateIndex
CREATE UNIQUE INDEX `department_userId_externalCompanyId_key` ON `department`(`userId`, `externalCompanyId`);
