text: -- CreateTable
  CREATE TABLE "Token" (
      "id" TEXT NOT NULL,
      "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "userId" TEXT NOT NULL,
  
      CONSTRAINT "Token_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Connection" (
      "id" TEXT NOT NULL,
      "instanceId" TEXT,
      "ipHash" TEXT,
      "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "userId" TEXT,
  
      CONSTRAINT "Connection_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "User" (
      "id" TEXT NOT NULL,
      "name" TEXT,
      "avatar" TEXT,
      "banned" BOOLEAN DEFAULT false,
      "coins" INTEGER NOT NULL DEFAULT 100,
      "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  
      CONSTRAINT "User_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Profile" (
      "id" TEXT NOT NULL,
      "provider" TEXT NOT NULL,
      "serviceId" TEXT NOT NULL,
      "name" TEXT,
      "avatar" TEXT,
      "email" TEXT,
      "accessToken" TEXT,
      "refreshToken" TEXT,
      "userId" TEXT NOT NULL,
  
      CONSTRAINT "Profile_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Project" (
      "id" TEXT NOT NULL,
      "title" TEXT NOT NULL,
      "alias" TEXT,
  
      CONSTRAINT "Project_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "ProjectState" (
      "id" TEXT NOT NULL,
      "count" INTEGER NOT NULL,
  
      CONSTRAINT "ProjectState_pkey" PRIMARY KEY ("id")
  );
  
  -- AddForeignKey
  ALTER TABLE "Token" ADD CONSTRAINT "Token_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "Connection" ADD CONSTRAINT "Connection_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "Profile" ADD CONSTRAINT "Profile_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  