feat: 增加自动建品类

This commit is contained in:
2026-08-13 23:08:01 +08:00
parent b35d0115da
commit fc564a9753
6 changed files with 183 additions and 13 deletions
@@ -18,6 +18,7 @@ CREATE TABLE `ec_category` (
`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_category_company_name`(`company_id` ASC, `name` ASC) USING BTREE COMMENT '同公司类目名称唯一',
INDEX `idx_company_id`(`company_id` ASC) USING BTREE,
INDEX `idx_parent_id`(`parent_id` ASC) USING BTREE,
INDEX `idx_sort_order`(`sort_order` ASC) USING BTREE,