CREATE TABLE IF NOT EXISTS `installation_images` (
  `id` INT AUTO_INCREMENT PRIMARY KEY,
  `installation_id` INT NOT NULL,
  `image_path` VARCHAR(255) NOT NULL,
  FOREIGN KEY (`installation_id`) REFERENCES `installations`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

ALTER TABLE `installations` DROP COLUMN `image_path`;
