-- 修改商家用户表表名
ALTER TABLE cere_platform_business RENAME TO cere_platform_business_user;

-- 创建商家表

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

DROP TABLE IF EXISTS `cere_platform_business`;
CREATE TABLE `cere_platform_business`  (
  `business_id` bigint(20) NOT NULL AUTO_INCREMENT,
  `business_code` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商家编码',
  `business_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商家名称',
  `business_brief` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '简介',
	`business_phone` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话',
  `charge_person_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家负责人',
  `charge_person_phone` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责人电话',
  `business_adress` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家地址',
  `business_adress_province` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家地址-省',
  `business_adress_city` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家地址-市',
  `business_adress_detail` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家地址-详细地址',
  `business_logo` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商家logo',
  `effective_date` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '生效日期  即时生效-设置当前时间 有值-指定日期生效',
  `effective_year` int(11) NULL DEFAULT NULL COMMENT '生效时限（年）',
  `contract_state` tinyint(1) NULL DEFAULT 1 COMMENT '合同状态 1-有效 0-无效',
  `authentication_state` tinyint(1) NOT NULL DEFAULT 1 COMMENT '认证状态 1-未认证 2-审核中 3-审核通过 4-审核失败 5-签约成功（使用中）',
  `check_state` tinyint(1) NOT NULL COMMENT '入驻处理状态  0-未处理 1-通过 2-拒绝',
  `state` tinyint(1) NOT NULL COMMENT '是否启用 1-是 0-否',
  `authen_type` tinyint(1) NULL DEFAULT NULL COMMENT '主体类型 1-个人 2-个体工商户 3-企业 4-其他组织',
  `wx_image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '微信收款码',
  `ailpay_image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '支付宝收款码',
  `create_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '更新时间',
  `divide` int(11) NULL DEFAULT NULL COMMENT '交易分成比例',
  `collection_code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '平台收款码',
  `audit_live` tinyint(1) NULL DEFAULT 1 COMMENT '审核直播间 1-开启 0-关闭',
  `audit_live_product` tinyint(1) NULL DEFAULT 1 COMMENT '审核直播间商品 1-开启 0-关闭',
  `xs_pay_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '新生支付商户Id',
  `share_days` int(11) NULL DEFAULT 7 COMMENT '分账账期',
  PRIMARY KEY (`business_id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商家信息表' ROW_FORMAT = DYNAMIC;

SET FOREIGN_KEY_CHECKS = 1;


-- 初始化商家表数据

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`)

SELECT
cps.shop_id business_id,
cps.shop_code business_code,
cps.shop_name business_name,
cps.shop_brief business_brief,
cps.charge_person_name charge_person_name,
cps.charge_person_phone charge_person_phone,
cps.shop_adress business_adress,
cps.shop_adress_province business_adress_province,
cps.shop_adress_city business_adress_city,
cps.shop_adress_detail business_adress_detail,
cps.shop_logo business_logo,
cps.effective_date effective_date,
cps.effective_year effective_year,
cps.contract_state contract_state,
cps.authentication_state authentication_state,
cps.check_state check_state,
cps.state state,
cps.authen_type authen_type,
cps.wx_image wx_image,
cps.ailpay_image ailpay_image,
cps.create_time create_time,
cps.update_time update_time,
cps.divide divide,
cps.collection_code collection_code,
cps.audit_live audit_live,
cps.audit_live_product audit_live_product,
cps.xs_pay_id xs_pay_id,
cps.share_days share_days
 FROM cere_platform_shop cps;

 -- 修改商家用户关联表表名
ALTER TABLE cere_business_shop RENAME TO cere_business_user;

-- 商家用户关联表增加是否是主账号的字段
ALTER TABLE `cere_business_user`
    ADD COLUMN `is_main_user` tinyint(1) DEFAULT 0 COMMENT '是否主账号';

-- 商家用户关联表修改关联店铺Id为商家Id
ALTER TABLE cere_business_user CHANGE shop_id business_id bigint(20);
ALTER TABLE `cere_business_user` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';

-- 店铺表增加商家表关联Id
ALTER TABLE `cere_platform_shop`
    ADD COLUMN `business_id` bigint(20) DEFAULT 0 COMMENT '商家Id';

-- 初始化店铺表商家Id
UPDATE cere_platform_shop SET business_id = shop_id;


ALTER TABLE cere_shop_personal CHANGE shop_id business_id bigint(20);
ALTER TABLE `cere_shop_personal` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';


ALTER TABLE cere_shop_other_organizations CHANGE shop_id business_id bigint(20);
ALTER TABLE `cere_shop_other_organizations` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';


ALTER TABLE cere_shop_enterprise CHANGE shop_id business_id bigint(20);
ALTER TABLE `cere_shop_enterprise` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';


ALTER TABLE cere_shop_individual_businesses CHANGE shop_id business_id bigint(20);
ALTER TABLE `cere_shop_individual_businesses` MODIFY COLUMN `business_id` bigint(20) NOT NULL COMMENT '商家Id';

ALTER TABLE `cere_shop_visit`
    ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';

UPDATE cere_shop_visit SET project = '0';

ALTER TABLE `cere_shop_order`
    ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';

UPDATE cere_shop_order SET project = '0';


ALTER TABLE `cere_order_after`
    ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';

UPDATE cere_order_after SET project = '0';

ALTER TABLE `cere_shop_conversion`
    ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';

UPDATE cere_shop_conversion SET project = '0';

ALTER TABLE cere_platform_shop MODIFY COLUMN shop_phone varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '店铺账号';
ALTER TABLE cere_platform_shop MODIFY COLUMN shop_password varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '店铺密码';
ALTER TABLE cere_platform_shop MODIFY COLUMN authentication_state tinyint(1) DEFAULT 1 NULL COMMENT '认证状态 1-未认证 2-审核中 3-审核通过 4-审核失败 5-签约成功（使用中）';
ALTER TABLE cere_platform_shop MODIFY COLUMN check_state tinyint(1) NULL COMMENT '入驻处理状态  0-未处理 1-通过 2-拒绝';
ALTER TABLE cere_platform_shop MODIFY COLUMN state tinyint(1) NULL COMMENT '是否启用 1-是 0-否';

ALTER TABLE cere_buyer_user ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_buyer_user SET project = '0';



ALTER TABLE cere_platform_canvas ADD COLUMN business_id bigint(20) DEFAULT 0 COMMENT '商家Id';
UPDATE cere_platform_canvas SET business_id = '0';
ALTER TABLE cere_platform_canvas ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_platform_canvas SET project = '0';


ALTER TABLE cere_product_classify ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_product_classify SET project = '0';

ALTER TABLE cere_shop_group ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_shop_group SET project = '0';


ALTER TABLE cere_shop_product ADD classify_business_id bigint(20) NULL COMMENT '关联商家分类id';
ALTER TABLE cere_shop_product ADD shop_group_business_id bigint(20) NULL COMMENT '关联商家商品分组id';
-- ALTER TABLE cereshop_multi.cere_platform_business ADD is_cross tinyint(1) NULL COMMENT '是否是跨境  0为国内 1为跨境';
ALTER TABLE cere_platform_shop ADD is_cross tinyint(1) NULL COMMENT '是否是跨境  0为国内 1为跨境';

DELETE FROM cere_platform_permission WHERE permission_name='店铺跨境信息设置';


ALTER TABLE `cere_order_parent`
    ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';

UPDATE cere_order_parent SET project = '0';


ALTER TABLE `cere_shop_withdrawal`
    ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';

UPDATE cere_shop_withdrawal SET project = '0';

ALTER TABLE `cere_pay_log`
    ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';

UPDATE cere_pay_log SET project = '0';


ALTER TABLE `cere_shop_withdrawal`
    ADD COLUMN `project` VARCHAR(32) DEFAULT 0 COMMENT '平台号';
UPDATE cere_shop_withdrawal SET project = '0';




ALTER TABLE `cere_shop_product` ADD COLUMN `if_new` tinyint(1) NULL DEFAULT 0 COMMENT '是否新品' AFTER `if_huabei`;
ALTER TABLE `cere_shop_product` ADD COLUMN `if_first` tinyint(1) NULL DEFAULT 0 COMMENT '是否首发' AFTER `if_new`;
ALTER TABLE `cere_shop_product` ADD COLUMN `if_low_price` tinyint(1) NULL DEFAULT 0 COMMENT '是否低价' AFTER `if_first`;

CREATE TABLE `cere_business_shop`  (
  `business_user_id` bigint(20) NOT NULL COMMENT '商家用户id',
  `shop_id` bigint(20) NULL DEFAULT NULL,
  `if_binding` tinyint(1) NOT NULL COMMENT '是否绑定当前店铺 1-是 0-否'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商家用户绑定店铺信息表' ROW_FORMAT = DYNAMIC;

CREATE TABLE `cere_interaction_diagram`  (
  `interaction_diagram_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '联动图Id',
  `interaction_diagram_name` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联动图名字',
  `interaction_diagram_image` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联动图背景图',
  `image_width` int(10) NULL DEFAULT NULL COMMENT '图片宽度',
  `image_height` int(10) NULL DEFAULT NULL COMMENT '图片高度',
  `point_data` varchar(6000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联动图数据',
  `business_id` bigint(20) NULL DEFAULT 0 COMMENT '商家Id',
  `terminal` tinyint(1) NULL DEFAULT NULL COMMENT '终端 1-小程序 2-H5 3-APP 4-PC',
  PRIMARY KEY (`interaction_diagram_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品图片信息表' ROW_FORMAT = DYNAMIC;

CREATE TABLE `cere_platform_lang_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id',
  `lang_key` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多语言主键',
  `lang_desc` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '多语言名字',
  `lang_zh` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '中文',
  `lang_en` varchar(800) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '英语',
  `create_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建时间',
  `update_time` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

CREATE TABLE `cere_platform_permission_lang_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id',
  `permission_id` bigint(20) NULL DEFAULT NULL COMMENT '菜单主键',
  `permission_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单名字',
  `language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

CREATE TABLE `cere_product_classify_lang_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id',
  `classify_id` bigint(20) NULL DEFAULT NULL COMMENT '分类主键',
  `classify_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分类名字',
  `language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

CREATE TABLE `cere_shop_group_lang_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键Id',
  `shop_group_id` bigint(20) NULL DEFAULT NULL COMMENT '分组主键',
  `group_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分组名字',
  `group_describe` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '分组描述',
  `language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;

CREATE TABLE `cere_shop_product_lang_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `product_id` bigint(20) NULL DEFAULT NULL COMMENT '商品id',
  `product_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品名称',
  `product_brief` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '卖点简介',
  `product_text` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '商品描述（富文本）',
  `language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
  PRIMARY KEY (`id`) USING BTREE,
  UNIQUE INDEX `index`(`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '店铺商品信息表' ROW_FORMAT = DYNAMIC;

CREATE TABLE `cere_sku_name_lang_info`  (
  `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  `sku_uni_id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格id-code',
  `sku_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格名',
  `sku_value` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格值',
  `language_type` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '语言类型',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品规格属性信息表' ROW_FORMAT = DYNAMIC;

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);
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');
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');
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);
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);
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');
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);
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');

ALTER TABLE `cere_shop_product` MODIFY COLUMN `product_name` varchar(512) NOT NULL COMMENT '商品名称';
ALTER TABLE `cere_shop_product` MODIFY COLUMN `product_brief` varchar(512) DEFAULT NULL COMMENT '卖点简介';
ALTER TABLE `cere_shop_product` MODIFY COLUMN `supplier_name` varchar(100) DEFAULT NULL COMMENT '供应商名称';

ALTER TABLE `cere_shop_product_lang_info` MODIFY COLUMN `product_name` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '商品名称';
ALTER TABLE `cere_shop_product_lang_info` MODIFY COLUMN `product_brief` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '卖点简介';

#商品平台端分类改为非必填
ALTER TABLE `cere_shop_product` MODIFY COLUMN `classify_id` bigint DEFAULT NULL COMMENT '关联分类id';

ALTER TABLE cere_platform_shop ADD shop_type tinyint(1) DEFAULT 1 COMMENT '店铺类型  1国内贸易 2跨境保税 3海外直邮';
ALTER TABLE cere_platform_business ADD pc_domain varchar(128) DEFAULT '' COMMENT 'pc端商城域名';
ALTER TABLE cere_platform_business ADD mobile_domain varchar(128) DEFAULT '' COMMENT '移动端商城域名';

ALTER TABLE cere_shop_product ADD plat_shelve_state tinyint(1) DEFAULT 0 COMMENT '平台上架商品状态 0-已下架 1-已上架 2-待审核 3-审核失败';
