多租户商城-后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

293 lines
19 KiB

  1. -- 修改商家用户表表名
  2. ALTER TABLE cere_platform_business RENAME TO cere_platform_business_user;
  3. -- 创建商家表
  4. SET NAMES utf8mb4;
  5. SET FOREIGN_KEY_CHECKS = 0;
  6. DROP TABLE IF EXISTS `cere_platform_business`;
  7. CREATE TABLE `cere_platform_business` (
  8. `business_id` bigint(20) NOT NULL AUTO_INCREMENT,
  9. `business_code` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商家编码',
  10. `business_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商家名称',
  11. `business_brief` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '简介',
  12. `business_phone` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
  13. `charge_person_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家负责人',
  14. `charge_person_phone` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责人电话',
  15. `business_adress` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家地址',
  16. `business_adress_province` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家地址-省',
  17. `business_adress_city` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家地址-市',
  18. `business_adress_detail` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家地址-详细地址',
  19. `business_logo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家logo',
  20. `effective_date` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生效日期 即时生效-设置当前时间 有值-指定日期生效',
  21. `effective_year` int(11) NULL DEFAULT NULL COMMENT '生效时限(年)',
  22. `contract_state` tinyint(1) NULL DEFAULT 1 COMMENT '合同状态 1-有效 0-无效',
  23. `authentication_state` tinyint(1) NOT NULL DEFAULT 1 COMMENT '认证状态 1-未认证 2-审核中 3-审核通过 4-审核失败 5-签约成功(使用中)',
  24. `check_state` tinyint(1) NOT NULL COMMENT '入驻处理状态 0-未处理 1-通过 2-拒绝',
  25. `state` tinyint(1) NOT NULL COMMENT '是否启用 1-是 0-否',
  26. `authen_type` tinyint(1) NULL DEFAULT NULL COMMENT '主体类型 1-个人 2-个体工商户 3-企业 4-其他组织',
  27. `wx_image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '微信收款码',
  28. `ailpay_image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支付宝收款码',
  29. `create_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  30. `update_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新时间',
  31. `divide` int(11) NULL DEFAULT NULL COMMENT '交易分成比例',
  32. `collection_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '平台收款码',
  33. `audit_live` tinyint(1) NULL DEFAULT 1 COMMENT '审核直播间 1-开启 0-关闭',
  34. `audit_live_product` tinyint(1) NULL DEFAULT 1 COMMENT '审核直播间商品 1-开启 0-关闭',
  35. `xs_pay_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '新生支付商户Id',
  36. `share_days` int(11) NULL DEFAULT 7 COMMENT '分账账期',
  37. PRIMARY KEY (`business_id`) USING BTREE
  38. ) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商家信息表' ROW_FORMAT = DYNAMIC;
  39. SET FOREIGN_KEY_CHECKS = 1;
  40. -- 初始化商家表数据
  41. INSERT INTO `cere_platform_business` (`business_id`, `business_code`, `business_name`, `business_brief`, `charge_person_name`, `charge_person_phone`, `business_adress`, `business_adress_province`, `business_adress_city`, `business_adress_detail`, `business_logo`, `effective_date`, `effective_year`, `contract_state`, `authentication_state`, `check_state`, `state`, `authen_type`, `wx_image`, `ailpay_image`, `create_time`, `update_time`, `divide`, `collection_code`, `audit_live`, `audit_live_product`, `xs_pay_id`, `share_days`)
  42. SELECT
  43. cps.shop_id business_id,
  44. cps.shop_code business_code,
  45. cps.shop_name business_name,
  46. cps.shop_brief business_brief,
  47. cps.charge_person_name charge_person_name,
  48. cps.charge_person_phone charge_person_phone,
  49. cps.shop_adress business_adress,
  50. cps.shop_adress_province business_adress_province,
  51. cps.shop_adress_city business_adress_city,
  52. cps.shop_adress_detail business_adress_detail,
  53. cps.shop_logo business_logo,
  54. cps.effective_date effective_date,
  55. cps.effective_year effective_year,
  56. cps.contract_state contract_state,
  57. cps.authentication_state authentication_state,
  58. cps.check_state check_state,
  59. cps.state state,
  60. cps.authen_type authen_type,
  61. cps.wx_image wx_image,
  62. cps.ailpay_image ailpay_image,
  63. cps.create_time create_time,
  64. cps.update_time update_time,
  65. cps.divide divide,
  66. cps.collection_code collection_code,
  67. cps.audit_live audit_live,
  68. cps.audit_live_product audit_live_product,
  69. cps.xs_pay_id xs_pay_id,
  70. cps.share_days share_days
  71. FROM cere_platform_shop cps;
  72. -- 修改商家用户关联表表名
  73. ALTER TABLE cere_business_shop RENAME TO cere_business_user;
  74. -- 商家用户关联表增加是否是主账号的字段
  75. ALTER TABLE `cere_business_user`
  76. ADD COLUMN `is_main_user` tinyint(1) DEFAULT 0 COMMENT '是否主账号';
  77. -- 商家用户关联表修改关联店铺Id为商家Id
  78. ALTER TABLE cere_business_user CHANGE shop_id business_id bigint(20);
  79. ALTER TABLE `cere_business_user` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';
  80. -- 店铺表增加商家表关联Id
  81. ALTER TABLE `cere_platform_shop`
  82. ADD COLUMN `business_id` bigint(20) DEFAULT 0 COMMENT '商家Id';
  83. -- 初始化店铺表商家Id
  84. UPDATE cere_platform_shop SET business_id = shop_id;
  85. ALTER TABLE cere_shop_personal CHANGE shop_id business_id bigint(20);
  86. ALTER TABLE `cere_shop_personal` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';
  87. ALTER TABLE cere_shop_other_organizations CHANGE shop_id business_id bigint(20);
  88. ALTER TABLE `cere_shop_other_organizations` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';
  89. ALTER TABLE cere_shop_enterprise CHANGE shop_id business_id bigint(20);
  90. ALTER TABLE `cere_shop_enterprise` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';
  91. ALTER TABLE cere_shop_individual_businesses CHANGE shop_id business_id bigint(20);
  92. ALTER TABLE `cere_shop_individual_businesses` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';
  93. ALTER TABLE `cere_shop_visit`
  94. ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
  95. UPDATE cere_shop_visit SET project = '0';
  96. ALTER TABLE `cere_shop_order`
  97. ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
  98. UPDATE cere_shop_order SET project = '0';
  99. ALTER TABLE `cere_order_after`
  100. ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
  101. UPDATE cere_order_after SET project = '0';
  102. ALTER TABLE `cere_shop_conversion`
  103. ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
  104. UPDATE cere_shop_conversion SET project = '0';
  105. ALTER TABLE cere_platform_shop MODIFY COLUMN shop_phone varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '店铺账号';
  106. ALTER TABLE cere_platform_shop MODIFY COLUMN shop_password varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '店铺密码';
  107. ALTER TABLE cere_platform_shop MODIFY COLUMN authentication_state tinyint(1) DEFAULT 1 NULL COMMENT '认证状态 1-未认证 2-审核中 3-审核通过 4-审核失败 5-签约成功(使用中)';
  108. ALTER TABLE cere_platform_shop MODIFY COLUMN check_state tinyint(1) NULL COMMENT '入驻处理状态 0-未处理 1-通过 2-拒绝';
  109. ALTER TABLE cere_platform_shop MODIFY COLUMN state tinyint(1) NULL COMMENT '是否启用 1-是 0-否';
  110. ALTER TABLE cere_buyer_user ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
  111. UPDATE cere_buyer_user SET project = '0';
  112. ALTER TABLE cere_platform_canvas ADD COLUMN business_id bigint(20) DEFAULT 0 COMMENT '商家Id';
  113. UPDATE cere_platform_canvas SET business_id = '0';
  114. ALTER TABLE cere_platform_canvas ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
  115. UPDATE cere_platform_canvas SET project = '0';
  116. ALTER TABLE cere_product_classify ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
  117. UPDATE cere_product_classify SET project = '0';
  118. ALTER TABLE cere_shop_group ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
  119. UPDATE cere_shop_group SET project = '0';
  120. ALTER TABLE cere_shop_product ADD classify_business_id bigint(20) NULL COMMENT '关联商家分类id';
  121. ALTER TABLE cere_shop_product ADD shop_group_business_id bigint(20) NULL COMMENT '关联商家商品分组id';
  122. -- ALTER TABLE cereshop_multi.cere_platform_business ADD is_cross tinyint(1) NULL COMMENT '是否是跨境 0为国内 1为跨境';
  123. ALTER TABLE cere_platform_shop ADD is_cross tinyint(1) NULL COMMENT '是否是跨境 0为国内 1为跨境';
  124. DELETE FROM cere_platform_permission WHERE permission_name='店铺跨境信息设置';
  125. ALTER TABLE `cere_order_parent`
  126. ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
  127. UPDATE cere_order_parent SET project = '0';
  128. ALTER TABLE `cere_shop_withdrawal`
  129. ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
  130. UPDATE cere_shop_withdrawal SET project = '0';
  131. ALTER TABLE `cere_pay_log`
  132. ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
  133. UPDATE cere_pay_log SET project = '0';
  134. ALTER TABLE `cere_shop_withdrawal`
  135. ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
  136. UPDATE cere_shop_withdrawal SET project = '0';
  137. ALTER TABLE `cere_shop_product` ADD COLUMN `if_new` tinyint(1) NULL DEFAULT 0 COMMENT '是否新品' AFTER `if_huabei`;
  138. ALTER TABLE `cere_shop_product` ADD COLUMN `if_first` tinyint(1) NULL DEFAULT 0 COMMENT '是否首发' AFTER `if_new`;
  139. ALTER TABLE `cere_shop_product` ADD COLUMN `if_low_price` tinyint(1) NULL DEFAULT 0 COMMENT '是否低价' AFTER `if_first`;
  140. CREATE TABLE `cere_business_shop` (
  141. `business_user_id` bigint(20) NOT NULL COMMENT '商家用户id',
  142. `shop_id` bigint(20) NULL DEFAULT NULL,
  143. `if_binding` tinyint(1) NOT NULL COMMENT '是否绑定当前店铺 1-是 0-否'
  144. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商家用户绑定店铺信息表' ROW_FORMAT = DYNAMIC;
  145. CREATE TABLE `cere_interaction_diagram` (
  146. `interaction_diagram_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '联动图Id',
  147. `interaction_diagram_name` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联动图名字',
  148. `interaction_diagram_image` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联动图背景图',
  149. `image_width` int(10) NULL DEFAULT NULL COMMENT '图片宽度',
  150. `image_height` int(10) NULL DEFAULT NULL COMMENT '图片高度',
  151. `point_data` varchar(6000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联动图数据',
  152. `business_id` bigint(20) NULL DEFAULT 0 COMMENT '商家Id',
  153. `terminal` tinyint(1) NULL DEFAULT NULL COMMENT '终端 1-小程序 2-H5 3-APP 4-PC',
  154. PRIMARY KEY (`interaction_diagram_id`) USING BTREE
  155. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品图片信息表' ROW_FORMAT = DYNAMIC;
  156. CREATE TABLE `cere_platform_lang_info` (
  157. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id',
  158. `lang_key` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多语言主键',
  159. `lang_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多语言名字',
  160. `lang_zh` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '中文',
  161. `lang_en` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '英语',
  162. `create_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  163. `update_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新时间',
  164. PRIMARY KEY (`id`) USING BTREE
  165. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  166. CREATE TABLE `cere_platform_permission_lang_info` (
  167. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id',
  168. `permission_id` bigint(20) NULL DEFAULT NULL COMMENT '菜单主键',
  169. `permission_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单名字',
  170. `language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
  171. PRIMARY KEY (`id`) USING BTREE
  172. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  173. CREATE TABLE `cere_product_classify_lang_info` (
  174. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id',
  175. `classify_id` bigint(20) NULL DEFAULT NULL COMMENT '分类主键',
  176. `classify_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分类名字',
  177. `language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
  178. PRIMARY KEY (`id`) USING BTREE
  179. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  180. CREATE TABLE `cere_shop_group_lang_info` (
  181. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id',
  182. `shop_group_id` bigint(20) NULL DEFAULT NULL COMMENT '分组主键',
  183. `group_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分组名字',
  184. `group_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分组描述',
  185. `language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
  186. PRIMARY KEY (`id`) USING BTREE
  187. ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
  188. CREATE TABLE `cere_shop_product_lang_info` (
  189. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  190. `product_id` bigint(20) NULL DEFAULT NULL COMMENT '商品id',
  191. `product_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品名称',
  192. `product_brief` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '卖点简介',
  193. `product_text` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '商品描述(富文本)',
  194. `language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
  195. PRIMARY KEY (`id`) USING BTREE,
  196. UNIQUE INDEX `index`(`id`) USING BTREE
  197. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '店铺商品信息表' ROW_FORMAT = DYNAMIC;
  198. CREATE TABLE `cere_sku_name_lang_info` (
  199. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  200. `sku_uni_id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格id-code',
  201. `sku_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格名',
  202. `sku_value` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格值',
  203. `language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
  204. PRIMARY KEY (`id`) USING BTREE
  205. ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品规格属性信息表' ROW_FORMAT = DYNAMIC;
  206. INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5419, 61, '仓库管理', '', '/system/storehouse', 'el-icon-box', '', 'menu', 10111, 0, '2023-05-24 20:39:27', NULL);
  207. INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5491, 0, '库存管理', '', '/stock', 'el-icon-goods', '', 'catalog', 10136, 0, '2023-07-18 06:56:44', '2023-07-18 08:31:30');
  208. INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5492, 5491, '库存明细', '', '/stock/stocknote', 'el-icon-date', '', 'menu', 10137, 0, '2023-07-18 06:57:50', '2023-07-18 08:31:42');
  209. INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5576, 58, '我的店铺', '', '/shop/myshop', 'el-icon-document-copy', '', 'menu', 10160, 0, '2023-09-17 14:20:12', NULL);
  210. INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5647, 55, '商家商品分类', '', '/commodity/commdityClass', 'el-icon-film', '', 'menu', 10182, 0, '2023-10-05 06:10:44', NULL);
  211. INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5652, 61, '商家装修', '', '{BaseUrl}/canvas.html', 'el-icon-camera', '', 'menu', 10183, 0, '2023-10-20 05:41:13', '2023-10-20 05:43:17');
  212. INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5740, 0, '资源管理', '', '/resource', 'el-icon-truck', '', 'catalog', 10185, 0, '2024-03-18 04:47:54', NULL);
  213. INSERT INTO `cere_platform_permission` (`permission_id`, `permission_pid`, `permission_name`, `permission_uri`, `permission`, `icon`, `describe`, `resource_type`, `sort`, `project`, `create_time`, `update_time`) VALUES (5741, 5740, '互动图', '', '/resource/interactiondiagram', 'el-icon-aim', '', 'menu', 10186, 0, '2024-03-18 04:51:16', '2024-03-18 05:15:49');
  214. ALTER TABLE `cere_shop_product` MODIFY COLUMN `product_name` varchar(512) NOT NULL COMMENT '商品名称';
  215. ALTER TABLE `cere_shop_product` MODIFY COLUMN `product_brief` varchar(512) DEFAULT NULL COMMENT '卖点简介';
  216. ALTER TABLE `cere_shop_product` MODIFY COLUMN `supplier_name` varchar(100) DEFAULT NULL COMMENT '供应商名称';
  217. ALTER TABLE `cere_shop_product_lang_info` MODIFY COLUMN `product_name` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品名称';
  218. ALTER TABLE `cere_shop_product_lang_info` MODIFY COLUMN `product_brief` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '卖点简介';
  219. #商品平台端分类改为非必填
  220. ALTER TABLE `cere_shop_product` MODIFY COLUMN `classify_id` bigint DEFAULT NULL COMMENT '关联分类id';
  221. ALTER TABLE cere_platform_shop ADD shop_type tinyint(1) DEFAULT 1 COMMENT '店铺类型 1国内贸易 2跨境保税 3海外直邮';
  222. ALTER TABLE cere_platform_business ADD pc_domain varchar(128) DEFAULT '' COMMENT 'pc端商城域名';
  223. ALTER TABLE cere_platform_business ADD mobile_domain varchar(128) DEFAULT '' COMMENT '移动端商城域名';
  224. ALTER TABLE cere_shop_product ADD plat_shelve_state tinyint(1) DEFAULT 0 COMMENT '平台上架商品状态 0-已下架 1-已上架 2-待审核 3-审核失败';