CREATE TABLE `handover_images` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `handover_id` int(11) NOT NULL,
  `file_path` varchar(255) NOT NULL,
  `uploaded_at` timestamp NOT NULL DEFAULT current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `handover_id` (`handover_id`),
  CONSTRAINT `handover_images_ibfk_1` FOREIGN KEY (`handover_id`) REFERENCES `handoff_logs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
