
CREATE TABLE `equipment_checklist_items` (
  `id` INT NOT NULL AUTO_INCREMENT,
  `equipment_id` INT NOT NULL,
  `item_text` VARCHAR(255) NOT NULL,
  `item_order` INT NOT NULL DEFAULT 0,
  `is_critical` BOOLEAN NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`),
  FOREIGN KEY (`equipment_id`) REFERENCES `equipment`(`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

ALTER TABLE `temperature_logs` ADD `checklist_results` JSON NULL DEFAULT NULL;
