text: -- CreateTable
  CREATE TABLE "User" (
      "id" SERIAL NOT NULL,
      "email" TEXT NOT NULL,
      "name" TEXT NOT NULL,
      "password" TEXT NOT NULL,
  
      CONSTRAINT "User_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Address" (
      "id" SERIAL NOT NULL,
      "street" TEXT NOT NULL,
      "number" TEXT NOT NULL,
      "cep" TEXT NOT NULL,
      "state" TEXT NOT NULL,
      "city" TEXT NOT NULL,
      "neighborhood" TEXT NOT NULL,
      "latitude" DOUBLE PRECISION NOT NULL,
      "longitude" DOUBLE PRECISION NOT NULL,
  
      CONSTRAINT "Address_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Building" (
      "id" SERIAL NOT NULL,
      "name" TEXT NOT NULL,
      "addressId" INTEGER NOT NULL,
  
      CONSTRAINT "Building_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Apartment" (
      "id" SERIAL NOT NULL,
      "number" TEXT NOT NULL,
      "floor" TEXT NOT NULL,
      "buildingId" INTEGER NOT NULL,
  
      CONSTRAINT "Apartment_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateTable
  CREATE TABLE "Booking" (
      "id" SERIAL NOT NULL,
      "apartmentId" INTEGER NOT NULL,
  
      CONSTRAINT "Booking_pkey" PRIMARY KEY ("id")
  );
  
  -- CreateIndex
  CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
  
  -- AddForeignKey
  ALTER TABLE "Building" ADD CONSTRAINT "Building_addressId_fkey" FOREIGN KEY ("addressId") REFERENCES "Address"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "Apartment" ADD CONSTRAINT "Apartment_buildingId_fkey" FOREIGN KEY ("buildingId") REFERENCES "Building"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  
  -- AddForeignKey
  ALTER TABLE "Booking" ADD CONSTRAINT "Booking_apartmentId_fkey" FOREIGN KEY ("apartmentId") REFERENCES "Apartment"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
  