/*
  Warnings:

  - You are about to drop the column `breakfastAdult` on the `Room` table. All the data in the column will be lost.
  - You are about to drop the column `breakfastChild` on the `Room` table. All the data in the column will be lost.
  - You are about to drop the column `category` on the `Room` table. All the data in the column will be lost.
  - You are about to drop the column `costPrice` on the `Room` table. All the data in the column will be lost.
  - You are about to drop the column `extraBedAdult` on the `Room` table. All the data in the column will be lost.
  - You are about to drop the column `extraBedChild` on the `Room` table. All the data in the column will be lost.
  - You are about to drop the column `optionalPrice` on the `Room` table. All the data in the column will be lost.
  - You are about to drop the column `pax` on the `Room` table. All the data in the column will be lost.
  - You are about to drop the column `pricePerNight` on the `Room` table. All the data in the column will be lost.
  - You are about to drop the column `surcharge` on the `Room` table. All the data in the column will be lost.
  - Added the required column `name` to the `Room` table without a default value. This is not possible if the table is not empty.

*/
-- AlterTable
ALTER TABLE "Room" DROP COLUMN "breakfastAdult",
DROP COLUMN "breakfastChild",
DROP COLUMN "category",
DROP COLUMN "costPrice",
DROP COLUMN "extraBedAdult",
DROP COLUMN "extraBedChild",
DROP COLUMN "optionalPrice",
DROP COLUMN "pax",
DROP COLUMN "pricePerNight",
DROP COLUMN "surcharge",
ADD COLUMN     "name" TEXT NOT NULL;

-- CreateTable
CREATE TABLE "RoomPrice" (
    "id" TEXT NOT NULL,
    "roomId" TEXT NOT NULL,
    "category" TEXT NOT NULL,
    "pax" TEXT NOT NULL,
    "costPrice" DOUBLE PRECISION,
    "optionalPrice" DOUBLE PRECISION,

    CONSTRAINT "RoomPrice_pkey" PRIMARY KEY ("id")
);

-- AddForeignKey
ALTER TABLE "RoomPrice" ADD CONSTRAINT "RoomPrice_roomId_fkey" FOREIGN KEY ("roomId") REFERENCES "Room"("id") ON DELETE CASCADE ON UPDATE CASCADE;
