/*
  Warnings:

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

*/
-- AlterTable
ALTER TABLE "guru" ADD COLUMN     "userId" TEXT;

-- CreateIndex
CREATE UNIQUE INDEX "guru_userId_key" ON "guru"("userId");

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