-- cn01_db：Webhook 事件（各节点业务库执行，如 cn01_db / us01_db）
INSERT INTO o_event (event_name, event_code, event_descript, is_email_event, email_event_file, email_event_type, email_event_status, is_webhook, is_script_event, created_at, updated_at)
VALUES ('包裹签收', 'orders/parcel_delivered', '17TRACK 单个物流包裹签收', 0, '', '', 0, 1, 0, UNIX_TIMESTAMP(), UNIX_TIMESTAMP());

-- cn01_task：MQ 消费路由（各节点 task 库执行，如 cn01_task / us01_task）
-- topic/tag 与 MqHelper::TOPIC_ORDERS、TAG_ORDER_PARCEL_DELIVERED 一致；url 对应 app/task/route.php consumer 路由
INSERT INTO t_consume_handler (title, description, group_id, topic_name, tag_name, queue_type, url, message_ack_mode, thread_nums, listen_status, status)
VALUES (
    '包裹签收',
    '17TRACK 单个物流包裹签收 webhook',
    'GID_CART_order_parcel_delivered_webhook',
    'cart_orders',
    'parcel_delivered',
    3,
    'https://task.oemsaas.cn/{storeId}/consumer/webhooks/orders/parcel_delivered',
    1,
    5,
    1,
    1
);
