-- CreateTable
CREATE TABLE `Room_Activities_Information` (
    `room_activity_info_id` VARCHAR(191) NOT NULL,

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

-- CreateTable
CREATE TABLE `Room_Other_Appliances` (
    `room_other_appliance_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,
    `other_appliance_id` VARCHAR(191) NOT NULL,

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

-- CreateTable
CREATE TABLE `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 `Other_Appliances`(`other_appliances_id`) ON DELETE RESTRICT ON UPDATE CASCADE;
