text: -- CreateTable
  CREATE TABLE "User" (
      "id" SERIAL NOT NULL,
      "name" TEXT NOT NULL,
      "surname" TEXT NOT NULL,
      "email" TEXT NOT NULL,
      "password" TEXT NOT NULL,
      "cellphone" TEXT NOT NULL,
      "createAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updateAt" TIMESTAMP(3) NOT NULL,
  
      CONSTRAINT "User_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Team" (
      "id" SERIAL NOT NULL,
      "name" TEXT NOT NULL,
      "createAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updateAt" TIMESTAMP(3) NOT NULL,
  
      CONSTRAINT "Team_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Objective" (
      "id" SERIAL NOT NULL,
      "description" TEXT NOT NULL,
      "assignedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "assignedBy" TEXT NOT NULL,
      "userId" INTEGER,
  
      CONSTRAINT "Objective_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Keyresults" (
      "id" SERIAL NOT NULL,
      "name" TEXT NOT NULL,
      "description" TEXT NOT NULL,
      "startEnd" TEXT NOT NULL,
      "deadLine" TEXT NOT NULL,
      "createAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updateAt" TIMESTAMP(3) NOT NULL,
      "userId" INTEGER,
      "okrId" INTEGER,
  
      CONSTRAINT "Keyresults_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "_TeamToUser" (
      "A" INTEGER NOT NULL,
      "B" INTEGER NOT NULL
  );
  
  -- CreateIndex
  CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "_TeamToUser_AB_unique" ON "_TeamToUser"("A", "B");
  
  -- CreateIndex
  CREATE INDEX "_TeamToUser_B_index" ON "_TeamToUser"("B");
  
  -- AddForeignKey
  ALTER TABLE "Objective" ADD CONSTRAINT "Objective_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "Keyresults" ADD CONSTRAINT "Keyresults_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "Keyresults" ADD CONSTRAINT "Keyresults_okrId_fkey" FOREIGN KEY ("okrId") REFERENCES "Objective"("id") ON DELETE SET NULL ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "_TeamToUser" ADD FOREIGN KEY ("A") REFERENCES "Team"("id") ON DELETE CASCADE ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "_TeamToUser" ADD FOREIGN KEY ("B") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
  