text: /*
    Warnings:
  
    - The primary key for the `Account` table will be changed. If it partially fails, the table could be left without primary key constraint.
    - The primary key for the `Session` table will be changed. If it partially fails, the table could be left without primary key constraint.
    - The primary key for the `User` table will be changed. If it partially fails, the table could be left without primary key constraint.
    - The primary key for the `VerificationRequest` table will be changed. If it partially fails, the table could be left without primary key constraint.
  
  */
  -- RedefineTables
  PRAGMA foreign_keys=OFF;
  CREATE TABLE "new_Account" (
      "id" TEXT NOT NULL PRIMARY KEY,
      "userId" TEXT NOT NULL,
      "providerType" TEXT NOT NULL,
      "providerId" TEXT NOT NULL,
      "providerAccountId" TEXT NOT NULL,
      "refreshToken" TEXT,
      "accessToken" TEXT,
      "accessTokenExpires" DATETIME,
      "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" DATETIME NOT NULL,
      FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE
  );
  INSERT INTO "new_Account" ("id", "userId", "providerType", "providerId", "providerAccountId", "refreshToken", "accessToken", "accessTokenExpires", "createdAt", "updatedAt") SELECT "id", "userId", "providerType", "providerId", "providerAccountId", "refreshToken", "accessToken", "accessTokenExpires", "createdAt", "updatedAt" FROM "Account";
  DROP TABLE "Account";
  ALTER TABLE "new_Account" RENAME TO "Account";
  CREATE UNIQUE INDEX "Account.providerId_providerAccountId_unique" ON "Account"("providerId", "providerAccountId");
  CREATE TABLE "new_Session" (
      "id" TEXT NOT NULL PRIMARY KEY,
      "userId" TEXT NOT NULL,
      "expires" DATETIME NOT NULL,
      "sessionToken" TEXT NOT NULL,
      "accessToken" TEXT NOT NULL,
      "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" DATETIME NOT NULL,
      FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE CASCADE ON UPDATE CASCADE
  );
  INSERT INTO "new_Session" ("id", "userId", "expires", "sessionToken", "accessToken", "createdAt", "updatedAt") SELECT "id", "userId", "expires", "sessionToken", "accessToken", "createdAt", "updatedAt" FROM "Session";
  DROP TABLE "Session";
  ALTER TABLE "new_Session" RENAME TO "Session";
  CREATE UNIQUE INDEX "Session.sessionToken_unique" ON "Session"("sessionToken");
  CREATE UNIQUE INDEX "Session.accessToken_unique" ON "Session"("accessToken");
  CREATE TABLE "new_User" (
      "id" TEXT NOT NULL PRIMARY KEY,
      "name" TEXT,
      "email" TEXT,
      "emailVerified" DATETIME,
      "image" TEXT,
      "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" DATETIME NOT NULL
  );
  INSERT INTO "new_User" ("id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt") SELECT "id", "name", "email", "emailVerified", "image", "createdAt", "updatedAt" FROM "User";
  DROP TABLE "User";
  ALTER TABLE "new_User" RENAME TO "User";
  CREATE UNIQUE INDEX "User.email_unique" ON "User"("email");
  CREATE TABLE "new_VerificationRequest" (
      "id" TEXT NOT NULL PRIMARY KEY,
      "identifier" TEXT NOT NULL,
      "token" TEXT NOT NULL,
      "expires" DATETIME NOT NULL,
      "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" DATETIME NOT NULL
  );
  INSERT INTO "new_VerificationRequest" ("id", "identifier", "token", "expires", "createdAt", "updatedAt") SELECT "id", "identifier", "token", "expires", "createdAt", "updatedAt" FROM "VerificationRequest";
  DROP TABLE "VerificationRequest";
  ALTER TABLE "new_VerificationRequest" RENAME TO "VerificationRequest";
  CREATE UNIQUE INDEX "VerificationRequest.token_unique" ON "VerificationRequest"("token");
  CREATE UNIQUE INDEX "VerificationRequest.identifier_token_unique" ON "VerificationRequest"("identifier", "token");
  PRAGMA foreign_key_check;
  PRAGMA foreign_keys=ON;
  