text: /*
    Warnings:
  
    - You are about to drop the column `firstname` on the `User` table. All the data in the column will be lost.
    - You are about to drop the column `lastname` on the `User` table. All the data in the column will be lost.
    - Added the required column `categoryId` to the `Post` table without a default value. This is not possible if the table is not empty.
    - Added the required column `price` to the `Post` table without a default value. This is not possible if the table is not empty.
  
  */
  -- AlterTable
  ALTER TABLE "Post" ADD COLUMN     "categoryId" TEXT NOT NULL,
  ADD COLUMN     "city" TEXT,
  ADD COLUMN     "image" TEXT,
  ADD COLUMN     "neighborhood" TEXT,
  ADD COLUMN     "price" DECIMAL(65,30) NOT NULL,
  ADD COLUMN     "state" TEXT;
  
  -- AlterTable
  ALTER TABLE "User" DROP COLUMN "firstname",
  DROP COLUMN "lastname",
  ADD COLUMN     "name" TEXT,
  ADD COLUMN     "phone" TEXT;
  
  -- CreateTable
  CREATE TABLE "Category" (
      "id" TEXT NOT NULL,
      "name" TEXT NOT NULL,
  
      CONSTRAINT "Category_pkey" PRIMARY KEY ("id")
  );
  
  -- AddForeignKey
  ALTER TABLE "Post" ADD CONSTRAINT "Post_categoryId_fkey" FOREIGN KEY ("categoryId") REFERENCES "Category"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  