text: -- CreateTable
  CREATE TABLE "User" (
      "id" TEXT NOT NULL,
      "name" TEXT NOT NULL,
      "cpf" INTEGER NOT NULL,
      "password" TEXT NOT NULL,
  
      CONSTRAINT "User_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Change" (
      "id" TEXT NOT NULL,
      "userId" TEXT NOT NULL,
      "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
  
      CONSTRAINT "Change_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Product" (
      "id" TEXT NOT NULL,
      "name" TEXT NOT NULL,
      "originalPrice" DOUBLE PRECISION NOT NULL,
      "discountPercent" DOUBLE PRECISION NOT NULL,
      "priceWithDiscount" DOUBLE PRECISION NOT NULL,
      "avaliable" BOOLEAN NOT NULL,
      "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
      "updatedAt" TIMESTAMP(3) NOT NULL,
  
      CONSTRAINT "Product_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Category" (
      "id" TEXT NOT NULL,
      "name" TEXT NOT NULL,
  
      CONSTRAINT "Category_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "_ChangeToProduct" (
      "A" TEXT NOT NULL,
      "B" TEXT NOT NULL
  );
  
  -- CreateTable
  CREATE TABLE "_CategoryToProduct" (
      "A" TEXT NOT NULL,
      "B" TEXT NOT NULL
  );
  
  -- CreateIndex
  CREATE UNIQUE INDEX "Product_name_key" ON "Product"("name");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "_ChangeToProduct_AB_unique" ON "_ChangeToProduct"("A", "B");
  
  -- CreateIndex
  CREATE INDEX "_ChangeToProduct_B_index" ON "_ChangeToProduct"("B");
  
  -- CreateIndex
  CREATE UNIQUE INDEX "_CategoryToProduct_AB_unique" ON "_CategoryToProduct"("A", "B");
  
  -- CreateIndex
  CREATE INDEX "_CategoryToProduct_B_index" ON "_CategoryToProduct"("B");
  
  -- AddForeignKey
  ALTER TABLE "Change" ADD CONSTRAINT "Change_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "_ChangeToProduct" ADD FOREIGN KEY ("A") REFERENCES "Change"("id") ON DELETE CASCADE ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "_ChangeToProduct" ADD FOREIGN KEY ("B") REFERENCES "Product"("id") ON DELETE CASCADE ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "_CategoryToProduct" ADD FOREIGN KEY ("A") REFERENCES "Category"("id") ON DELETE CASCADE ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "_CategoryToProduct" ADD FOREIGN KEY ("B") REFERENCES "Product"("id") ON DELETE CASCADE ON UPDATE CASCADE;
  