-- Similar ASIN detection reuses the generic file task/result/chunk tables.
-- Register the frontend app menu column so permission queries can expose the page.
INSERT INTO `columns` (`name`, `column_key`, `menu_type`, `route_path`, `sort_order`)
SELECT '相似ASIN检测', 'similar_asin', 'app', 'similar-asin', 112
WHERE NOT EXISTS (
    SELECT 1 FROM `columns` WHERE `column_key` = 'similar_asin'
);

UPDATE `columns`
SET `name` = '相似ASIN检测',
    `menu_type` = 'app',
    `route_path` = 'similar-asin',
    `sort_order` = 112
WHERE `column_key` = 'similar_asin';
