ALTER TABLE catalogue_downloads
    ADD COLUMN ai_settings JSON DEFAULT NULL AFTER file_size,
    ADD COLUMN ai_status ENUM('none','pending','processing','completed','failed') NOT NULL DEFAULT 'none' AFTER ai_settings,
    ADD COLUMN ai_error VARCHAR(500) DEFAULT NULL AFTER ai_status;
