/*
  Warnings:

  - You are about to drop the `Other_Appliances` table. If the table is not empty, all the data it contains will be lost.

*/
-- DropForeignKey
ALTER TABLE `Room_Other_Appliances` DROP FOREIGN KEY `Room_Other_Appliances_other_appliance_id_fkey`;

-- DropTable
DROP TABLE `Other_Appliances`;

-- CreateTable
CREATE TABLE `R_Other_Appliances` (
    `other_appliances_id` VARCHAR(191) NOT NULL,
    `appliance_name` VARCHAR(191) NOT NULL,
    `sensibleHeat` VARCHAR(191) NOT NULL,
    `latentHeat` VARCHAR(191) NOT NULL,
    `createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
    `updatedAt` DATETIME(3) NOT NULL,

    PRIMARY KEY (`other_appliances_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

-- AddForeignKey
ALTER TABLE `Room_Other_Appliances` ADD CONSTRAINT `Room_Other_Appliances_other_appliance_id_fkey` FOREIGN KEY (`other_appliance_id`) REFERENCES `R_Other_Appliances`(`other_appliances_id`) ON DELETE RESTRICT ON UPDATE CASCADE;
