feat: 新增拼多多店铺授权

This commit is contained in:
2026-08-03 16:08:27 +08:00
parent 4e58b67c13
commit 4aa76cefdf
38 changed files with 1339 additions and 96 deletions
@@ -408,11 +408,13 @@ CREATE TABLE `ec_shop` (
`name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '店铺名称',
`logo_image_id` bigint UNSIGNED NULL DEFAULT NULL COMMENT 'logo图片ID',
`platform_id` bigint UNSIGNED NULL DEFAULT NULL COMMENT '平台ID',
`external_shop_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '外部店铺ID(如拼多多 mall_id;与 platform_id 组合关联平台店铺)',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`create_by` bigint UNSIGNED NULL DEFAULT NULL COMMENT '创建人ID',
`update_by` bigint UNSIGNED NULL DEFAULT NULL COMMENT '更新人ID',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE INDEX `uk_ec_shop_company_platform_external`(`company_id` ASC, `platform_id` ASC, `external_shop_id` ASC) USING BTREE COMMENT '同一公司同一平台下外部店铺ID唯一(NULL 可重复,手工店)',
INDEX `idx_company_id`(`company_id` ASC) USING BTREE,
INDEX `idx_platform_id`(`platform_id` ASC) USING BTREE,
INDEX `fk_ec_shop_logo_image`(`logo_image_id` ASC) USING BTREE,