feat: 优化店铺相关

This commit is contained in:
2026-08-14 11:44:22 +08:00
parent 3322b0542b
commit 8921c6b122
37 changed files with 558 additions and 241 deletions
@@ -3,8 +3,8 @@
-- 数据来源:pdd.mall.info.get → mall_info_get_response
-- 设计原则:
-- 1. 与 ec_shop(内部店铺)分离,本表只存拼多多平台店铺镜像
-- 2. 不主动 FK 关联 ec_shop;绑定由 ec_shop.platform_code + external_shop_id(= mall_id)维护
-- 3. 授权后拉取写入本表,再按公司 + 拼多多平台 + mall_id upsert ec_shop
-- 2. 不主动 FK 关联 ec_shop;绑定由 ec_shop.platform_code + external_shop_id(= channel_pdd_shop.id)维护
-- 3. 授权后写入本表,再把本表主键写入 ec_shop.external_shop_id
-- ========================================
DROP TABLE IF EXISTS `channel_pdd_shop`;