/*
  Warnings:

  - A unique constraint covering the columns `[mobile]` on the table `candidate` will be added. If there are existing duplicate values, this will fail.
  - Made the column `user_id` on table `candidate` required. This step will fail if there are existing NULL values in that column.

*/
-- DropIndex
DROP INDEX "candidate.email_unique";

-- AlterTable
ALTER TABLE "candidate" ALTER COLUMN "user_id" SET NOT NULL;

-- CreateIndex
CREATE UNIQUE INDEX "candidate.mobile_unique" ON "candidate"("mobile");
