-- Checklists per vehicle
CREATE TABLE IF NOT EXISTS vehicle_checklists (
  id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
  vehicle_id BIGINT UNSIGNED NOT NULL,
  tipo VARCHAR(40) NOT NULL,
  items_json JSON NULL,
  observacoes TEXT NULL,
  created_at TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP,
  INDEX idx_vchk_vehicle (vehicle_id),
  INDEX idx_vchk_tipo (tipo)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;