CREATE TABLE IF NOT EXISTS maintenance_job_line_items (
  id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  maintenance_job_id BIGINT UNSIGNED NOT NULL,
  item_description VARCHAR(255) NOT NULL,
  estimated_cost DECIMAL(14,2) NOT NULL DEFAULT 0.00,
  sort_order INT NOT NULL DEFAULT 0,
  created_at TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP,
  updated_at TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  INDEX idx_maintenance_job_line_items_job (maintenance_job_id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
