dever 3 lat temu
rodzic
commit
f70b57b877

+ 5251 - 398
churen.sql

@@ -3,7 +3,7 @@
 -- https://www.phpmyadmin.net/
 --
 -- 主机: web-mysql
--- 生成日期: 2021-10-09 10:59:07
+-- 生成日期: 2022-01-08 12:23:01
 -- 服务器版本: 10.1.32-MariaDB
 -- PHP 版本: 7.3.22
 
@@ -27,456 +27,5309 @@ USE `churen`;
 -- --------------------------------------------------------
 
 --
--- 表的结构 `churen_manage_api`
+-- 表的结构 `churen_act_info`
 --
 
-DROP TABLE IF EXISTS `churen_manage_api`;
-CREATE TABLE `churen_manage_api` (
+DROP TABLE IF EXISTS `churen_act_info`;
+CREATE TABLE `churen_act_info` (
   `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
-  `name` varchar(30) DEFAULT NULL COMMENT '接口名称',
-  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '接口类型',
-  `project` varchar(30) DEFAULT NULL COMMENT '所属项目',
-  `site` varchar(500) DEFAULT NULL COMMENT '接口地址',
-  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序',
-  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
+  `name` varchar(80) DEFAULT NULL COMMENT '标题-活动标题,同时也用于分享标题',
+  `desc` varchar(500) DEFAULT NULL COMMENT '摘要-活动摘要,同时也用于分享内容',
+  `cover` varchar(150) DEFAULT NULL COMMENT '封面图',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '活动类型',
+  `content` text COMMENT '内容',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `color` varchar(10) NOT NULL COMMENT '按钮颜色-请填写颜色代码,选填项',
+  `bgcolor` varchar(10) NOT NULL COMMENT '背景颜色-请填写颜色代码,选填项',
+  `back` varchar(150) NOT NULL COMMENT '背景图'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_area_city`
+--
+
+DROP TABLE IF EXISTS `churen_area_city`;
+CREATE TABLE `churen_area_city` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(150) DEFAULT NULL COMMENT '城市名称',
+  `pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
+  `pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
+  `province_id` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
   `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
+-- --------------------------------------------------------
+
 --
--- 转存表中的数据 `churen_manage_api`
+-- 表的结构 `churen_area_county`
 --
 
-INSERT INTO `churen_manage_api` (`id`, `name`, `type`, `project`, `site`, `reorder`, `state`, `cdate`) VALUES
-(1, '门店首页', 1, 'shop', 'main.home', 1, 1, 1633692714),
-(2, 'area/api.get', 1, 'area', 'api.get', 1, 1, 1633749127),
-(3, '获取用户信息', 1, 'shop', 'main.user', 1, 1, 1633760009),
-(4, '合作门店申请', 1, 'shop', 'main.apply', 1, 1, 1633760302),
-(5, '获取门店数据', 1, 'shop', 'main.getShop', 1, 1, 1633762528),
-(6, 'upload/view.files', 1, 'upload', 'view.files', 1, 1, 1633764380),
-(7, '获取商品详情', 1, 'shop', 'buy.getGoodsInfo', 1, 1, 1633770366),
-(8, '获取购物车', 1, 'shop', 'buy.getCart', 1, 1, 1633776284),
-(9, '添加购物车', 1, 'shop', 'buy.addCart', 1, 1, 1633776338),
-(10, '清空购物车', 1, 'shop', 'buy.dropCart', 1, 1, 1633776702),
-(11, '更新购物车', 1, 'shop', 'buy.upCart', 1, 1, 1633776906);
+DROP TABLE IF EXISTS `churen_area_county`;
+CREATE TABLE `churen_area_county` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(150) DEFAULT NULL COMMENT '县区名称',
+  `pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
+  `pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
+  `city_id` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
 -- --------------------------------------------------------
 
 --
--- 表的结构 `churen_manage_api_request`
+-- 表的结构 `churen_area_province`
 --
 
-DROP TABLE IF EXISTS `churen_manage_api_request`;
-CREATE TABLE `churen_manage_api_request` (
+DROP TABLE IF EXISTS `churen_area_province`;
+CREATE TABLE `churen_area_province` (
   `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
-  `api_id` int(11) NOT NULL DEFAULT '0' COMMENT '接口ID',
-  `parent_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级ID',
-  `name` varchar(50) DEFAULT NULL COMMENT '字段',
-  `type` varchar(50) DEFAULT NULL COMMENT '类型',
-  `desc` text COMMENT '描述',
-  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
-  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
+  `name` varchar(150) DEFAULT NULL COMMENT '省份名称',
+  `pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
+  `pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_area_town`
 --
--- 转存表中的数据 `churen_manage_api_request`
---
-
-INSERT INTO `churen_manage_api_request` (`id`, `api_id`, `parent_id`, `name`, `type`, `desc`, `state`, `cdate`) VALUES
-(1, 2, -1, 'api_get', 'string', NULL, 1, 1633749127),
-(2, 2, -1, 'level_total', 'string', '2', 1, 1633749127),
-(3, 2, -1, 'level_search', 'string', '1', 1, 1633749127),
-(4, 2, -1, 'level_id', 'int', '0', 1, 1633749127),
-(5, 2, -1, 'level_num', 'string', '1', 1, 1633749127),
-(6, 2, -1, 'level_param', 'string', NULL, 1, 1633749127),
-(7, 2, -1, '_', 'string', '1633749127298', 1, 1633749127),
-(8, 4, -1, 'name', 'string', '测试', 1, 1633760302),
-(9, 4, -1, 'mobile', 'string', '15810090845', 1, 1633760302),
-(10, 4, -1, 'city', 'string', '110100', 1, 1633760302),
-(11, 5, -1, 'lng', 'string', '当前用户的坐标纬度', 1, 1633762528),
-(12, 5, -1, 'lat', 'string', '当前用户的坐标经度', 1, 1633762528),
-(13, 6, -1, 'view_files', 'string', NULL, 1, 1633764380),
-(14, 6, -1, 'key', 'string', '1', 1, 1633764380),
-(15, 6, -1, 'cur', 'string', NULL, 1, 1633764380),
-(16, 6, -1, 'value', 'string', NULL, 1, 1633764380),
-(17, 6, -1, 'upload_search', 'string', 'shop-focus.pic', 1, 1633764380),
-(18, 6, -1, 'name', 'string', NULL, 1, 1633764382),
-(19, 6, -1, 'cate', 'string', '1', 1, 1633764382),
-(20, 6, -1, 'tag', 'string', NULL, 1, 1633764382),
-(21, 6, -1, 'pg', 'string', '1', 1, 1633764382),
-(22, 6, -1, 'state', 'string', '1', 1, 1633764382),
-(23, 7, -1, 'goods_id', 'int', '商品id', 1, 1633770366),
-(24, 7, -1, 'shop_id', 'int', '店铺id', 1, 1633770366),
-(25, 8, -1, 'shop_id', 'int', '1', 1, 1633776284),
-(26, 9, -1, 'shop_id', 'int', '1', 1, 1633776338),
-(27, 9, -1, 'goods_id', 'int', '10000001', 1, 1633776338),
-(28, 9, -1, 'sku_id', 'int', NULL, 1, 1633776374),
-(29, 9, -1, 'num', 'string', '1', 1, 1633776374),
-(33, 10, -1, 'shop_id', 'int', '1', 1, 1633776702),
-(37, 11, -1, 'shop_id', 'int', '1', 1, 1633776906),
-(40, 11, -1, 'num', 'string', '11', 1, 1633776906),
-(41, 11, -1, 'id', 'int', '1', 1, 1633776906);
+
+DROP TABLE IF EXISTS `churen_area_town`;
+CREATE TABLE `churen_area_town` (
+  `id` bigint(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(150) DEFAULT NULL COMMENT '街道名称',
+  `pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
+  `pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
+  `county_id` int(11) NOT NULL DEFAULT '0' COMMENT '县区',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
 -- --------------------------------------------------------
 
 --
--- 表的结构 `churen_manage_api_response`
+-- 表的结构 `churen_area_village`
 --
 
-DROP TABLE IF EXISTS `churen_manage_api_response`;
-CREATE TABLE `churen_manage_api_response` (
+DROP TABLE IF EXISTS `churen_area_village`;
+CREATE TABLE `churen_area_village` (
+  `id` bigint(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(150) DEFAULT NULL COMMENT '社区名称',
+  `pinyin` varchar(300) DEFAULT NULL COMMENT '拼音',
+  `pinyin_first` varchar(30) DEFAULT NULL COMMENT '拼音首字母',
+  `code` int(11) NOT NULL DEFAULT '0' COMMENT '城乡分类代码',
+  `town_id` int(11) NOT NULL DEFAULT '0' COMMENT '街道',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_attr_cate`
+--
+
+DROP TABLE IF EXISTS `churen_attr_cate`;
+CREATE TABLE `churen_attr_cate` (
   `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
-  `api_id` int(11) NOT NULL DEFAULT '0' COMMENT '接口ID',
-  `parent_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级ID',
-  `name` varchar(50) DEFAULT NULL COMMENT '字段',
-  `type` varchar(50) DEFAULT NULL COMMENT '类型',
-  `desc` text COMMENT '描述',
-  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
-  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
+  `name` varchar(150) DEFAULT NULL COMMENT '类别名称',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
 
+-- --------------------------------------------------------
+
 --
--- 转存表中的数据 `churen_manage_api_response`
---
-
-INSERT INTO `churen_manage_api_response` (`id`, `api_id`, `parent_id`, `name`, `type`, `desc`, `state`, `cdate`) VALUES
-(1, 1, -1, 'focus', 'string', 'array:焦点图', 1, 1633692714),
-(2, 1, 1, 'id', 'int', '1', 1, 1633692714),
-(3, 1, 1, 'name', 'string', '13213', 1, 1633692714),
-(4, 1, 1, 'type', 'string', '1', 1, 1633692714),
-(5, 1, 1, 'link', 'string', '32131', 1, 1633692714),
-(6, 1, 1, 'location', 'string', '1', 1, 1633692714),
-(7, 1, 1, 'pic', 'string', '11', 1, 1633692714),
-(8, 1, 1, 'reorder', 'string', '1', 1, 1633692714),
-(9, 1, 1, 'state', 'string', '1', 1, 1633692714),
-(10, 1, 1, 'cdate', 'string', '1633690424', 1, 1633692714),
-(11, 2, -1, 'level_total', 'string', '2', 1, 1633749127),
-(12, 2, -1, 'list', 'string', 'array:list', 1, 1633749127),
-(13, 2, 12, 'value', 'string', '-1', 1, 1633749127),
-(14, 2, 12, 'name', 'string', '省份选择', 1, 1633749127),
-(15, 2, 12, 'id', 'int', '110000', 1, 1633749177),
-(16, 3, -1, 'user', 'string', 'array:当前登录的用户信息', 1, 1633760009),
-(17, 3, 16, 'id', 'int', '1', 1, 1633760009),
-(18, 3, 16, 'username', 'string', '测试用户', 1, 1633760009),
-(19, 3, 16, 'avatar', 'string', NULL, 1, 1633760009),
-(20, 3, 16, 'sex', 'string', '3', 1, 1633760009),
-(21, 3, 16, 'truename', 'string', '测试用户', 1, 1633760009),
-(22, 3, 16, 'area', 'string', NULL, 1, 1633760009),
-(23, 3, 16, 'mobile', 'string', NULL, 1, 1633760009),
-(24, 3, 16, 'area_id', 'int', '110000,-1', 1, 1633760009),
-(25, 3, 16, 'address', 'string', NULL, 1, 1633760009),
-(26, 3, 16, 'address_contact', 'string', NULL, 1, 1633760009),
-(27, 3, 16, 'address_mobile', 'string', NULL, 1, 1633760009),
-(28, 3, 16, 'info', 'string', NULL, 1, 1633760009),
-(29, 3, 16, 'title', 'string', NULL, 1, 1633760009),
-(30, 3, 16, 'birthday', 'string', NULL, 1, 1633760009),
-(31, 3, 16, 'avatar_id', 'int', '1', 1, 1633760009),
-(32, 3, 16, 'name', 'string', '测试用户', 1, 1633760009),
-(33, 3, 16, 'add', 'string', '测试用户(未知)', 1, 1633760009),
-(34, 3, 16, 'uid', 'int', '1', 1, 1633760009),
-(35, 3, -1, 'config', 'string', 'array:站点信息', 1, 1633760149),
-(36, 3, 35, 'id', 'int', '1', 1, 1633760149),
-(37, 3, 35, 'name', 'string', '厨人易料', 1, 1633760149),
-(38, 3, 35, 'info', 'string', '厨人易料', 1, 1633760149),
-(39, 3, 35, 'logo', 'string', NULL, 1, 1633760149),
-(40, 3, 35, 'km', 'string', NULL, 1, 1633760149),
-(41, 3, 35, 'video', 'int', NULL, 1, 1633760149),
-(42, 3, 35, 'file', 'string', NULL, 1, 1633760149),
-(43, 3, 35, 'rule', 'string', NULL, 1, 1633760149),
-(44, 3, 35, 'seo_title', 'string', NULL, 1, 1633760149),
-(45, 3, 35, 'seo_keyword', 'string', NULL, 1, 1633760149),
-(46, 3, 35, 'seo_desc', 'string', NULL, 1, 1633760149),
-(47, 3, 35, 'phone', 'string', NULL, 1, 1633760149),
-(48, 3, 35, 'worktime', 'string', NULL, 1, 1633760149),
-(49, 3, 35, 'wechat', 'string', NULL, 1, 1633760149),
-(50, 3, 35, 'sell_applet', 'string', NULL, 1, 1633760149),
-(51, 3, 35, 'foot', 'string', NULL, 1, 1633760149),
-(52, 3, 35, 'cdate', 'string', '1633689107', 1, 1633760149),
-(53, 3, 35, 'state', 'string', '1', 1, 1633760149),
-(54, 4, -1, 'msg', 'string', '提交成功,我们会在3个工作日内与您联系,感谢您的信任。', 1, 1633760790),
-(55, 5, -1, 'status', 'int', '数据状态1为找到5公里范围内店铺了,2为未找到', 1, 1633762528),
-(56, 5, -1, 'list', 'array', '店铺列表,与店铺信息结构相同', 1, 1633762528),
-(57, 5, 56, 'id', 'int', '1', 1, 1633762551),
-(58, 5, 56, 'uid', 'int', '1', 1, 1633762551),
-(59, 5, 56, 'name', 'string', '测试', 1, 1633762551),
-(60, 5, 56, 'truename', 'string', '测试', 1, 1633762551),
-(61, 5, 56, 'mobile', 'string', '15810090845', 1, 1633762551),
-(62, 5, 56, 'area', 'string', '110000,110100', 1, 1633762551),
-(63, 5, 56, 'province', 'string', '110000', 1, 1633762551),
-(64, 5, 56, 'city', 'string', '110100', 1, 1633762551),
-(65, 5, 56, 'map', 'string', '永顺西里,116.647127,39.916798,18', 1, 1633762551),
-(66, 5, 56, 'lng', 'string', '116.407526', 1, 1633762551),
-(67, 5, 56, 'lat', 'string', '39.904030', 1, 1633762551),
-(68, 5, 56, 'address', 'string', NULL, 1, 1633762551),
-(69, 5, 56, 'open', 'string', '1', 1, 1633762551),
-(70, 5, 56, 'method', 'string', '3', 1, 1633762551),
-(71, 5, 56, 'worktime', 'string', NULL, 1, 1633762551),
-(72, 5, 56, 'gotime', 'string', NULL, 1, 1633762551),
-(73, 5, 56, 'license', 'string', NULL, 1, 1633762551),
-(74, 5, 56, 'company_name', 'string', NULL, 1, 1633762551),
-(75, 5, 56, 'idcard_front', 'int', NULL, 1, 1633762551),
-(76, 5, 56, 'idcard_back', 'int', NULL, 1, 1633762551),
-(77, 5, 56, 'jy_license', 'string', NULL, 1, 1633762551),
-(78, 5, 56, 'food_license', 'string', NULL, 1, 1633762551),
-(79, 5, 56, 'coupon_city', 'string', '1', 1, 1633762551),
-(80, 5, 56, 'coupon_share', 'string', '1', 1, 1633762551),
-(81, 5, 56, 'coupon_tg', 'string', '1', 1, 1633762551),
-(82, 5, 56, 'status', 'string', '1', 1, 1633762551),
-(83, 5, 56, 'state', 'string', '1', 1, 1633762551),
-(84, 5, 56, 'cdate', 'string', '1633761983', 1, 1633762551),
-(85, 5, 56, 'distance', 'string', '26680.234291646848', 1, 1633762551),
-(86, 5, -1, 'shop', 'array', 'array:当前店铺信息', 1, 1633764272),
-(87, 5, 86, 'id', 'int', '店铺id', 1, 1633764272),
-(88, 5, 86, 'uid', 'int', '用户id', 1, 1633764272),
-(89, 5, 86, 'name', 'string', '店铺名称', 1, 1633764272),
-(90, 5, 86, 'truename', 'string', '真实姓名', 1, 1633764272),
-(91, 5, 86, 'mobile', 'string', '手机号', 1, 1633764272),
-(92, 5, 86, 'area', 'string', '地区编码', 1, 1633764272),
-(93, 5, 86, 'province', 'string', '省份编码', 1, 1633764272),
-(94, 5, 86, 'city', 'string', '城市编码', 1, 1633764272),
-(95, 5, 86, 'map', 'string', '坐标点', 1, 1633764272),
-(96, 5, 86, 'lng', 'string', '经度', 1, 1633764272),
-(97, 5, 86, 'lat', 'string', '纬度', 1, 1633764272),
-(98, 5, 86, 'address', 'string', '地址', 1, 1633764272),
-(99, 5, 86, 'open', 'string', '是否开门1开业,2关门', 1, 1633764272),
-(100, 5, 86, 'method', 'string', '门店能力1自提,2配送,3自提+配送', 1, 1633764272),
-(101, 5, 86, 'worktime', 'string', '营业时间', 1, 1633764272),
-(102, 5, 86, 'gotime', 'string', '外送时间', 1, 1633764272),
-(103, 5, 86, 'license', 'string', '营业执照', 1, 1633764272),
-(104, 5, 86, 'company_name', 'string', '公司名称', 1, 1633764272),
-(105, 5, 86, 'idcard_front', 'string', '身份证正面', 1, 1633764272),
-(106, 5, 86, 'idcard_back', 'string', '身份证背面', 1, 1633764272),
-(107, 5, 86, 'jy_license', 'string', '经营许可证', 1, 1633764272),
-(108, 5, 86, 'food_license', 'string', '食品许可证', 1, 1633764272),
-(109, 5, 86, 'coupon_city', 'string', '是否参数同城活动', 1, 1633764272),
-(110, 5, 86, 'coupon_share', 'string', '是否参与分享活动', 1, 1633764272),
-(111, 5, 86, 'coupon_tg', 'string', '是否参与推广员活动', 1, 1633764272),
-(112, 5, 86, 'status', 'string', '合作状态1是合作中2是终止合作3是正在申请合作', 1, 1633764272),
-(113, 5, 86, 'state', 'string', '回收站状态', 1, 1633764272),
-(114, 5, 86, 'cdate', 'string', '申请合作时间戳', 1, 1633764272),
-(115, 5, 86, 'distance', 'string', '距离公里数', 1, 1633764272),
-(116, 5, -1, 'focus', 'array', 'array:焦点图', 1, 1633764272),
-(117, 5, -1, 'goods', 'array', 'array:商品列表', 1, 1633764333),
-(118, 5, 117, 'cate', 'array', 'array:商品分类', 1, 1633764333),
-(119, 5, 118, 'id', 'int', '分类id', 1, 1633764333),
-(120, 5, 118, 'name', 'string', '分类名称', 1, 1633764333),
-(121, 5, 118, 'data', 'array', 'array:商品数据,具体结构见商品详细信息', 1, 1633764333),
-(122, 5, 116, 'id', 'int', '2', 1, 1633764437),
-(123, 5, 116, 'name', 'string', '名称', 1, 1633764437),
-(124, 5, 116, 'type', 'string', '类型', 1, 1633764437),
-(125, 5, 116, 'link', 'string', '链接', 1, 1633764437),
-(126, 5, 116, 'location', 'string', '位置1是首页2是商品列表页', 1, 1633764437),
-(127, 5, 116, 'pic', 'string', '焦点图图片', 1, 1633764437),
-(128, 5, 116, 'reorder', 'string', '排序', 1, 1633764437),
-(129, 5, 116, 'state', 'string', '回收站状态', 1, 1633764437),
-(130, 5, 116, 'cdate', 'string', '创建时间戳', 1, 1633764437),
-(166, 7, -1, 'goods', 'string', 'array:goods', 1, 1633771215),
-(167, 7, 166, 'id', 'int', '10000000', 1, 1633771215),
-(168, 7, 166, 'name', 'string', '商品名称', 1, 1633771215),
-(169, 7, 166, 'price_type', 'string', '价格类型1是普通售价,2是sku售价', 1, 1633771215),
-(170, 7, 166, 'price', 'string', 'array:销售价', 1, 1633771215),
-(171, 7, 170, 'list', 'string', 'array:list', 1, 1633771215),
-(172, 7, 170, 'min', 'string', 'array:min', 1, 1633771215),
-(173, 7, 172, 'price', 'string', '100', 1, 1633771215),
-(174, 7, 172, 's_price', 'string', '120', 1, 1633771215),
-(175, 7, 170, 'value', 'string', '100', 1, 1633771215),
-(176, 7, 170, 'max', 'string', 'array:max', 1, 1633771215),
-(177, 7, 166, 's_price', 'string', '市场价', 1, 1633771215),
-(178, 7, 166, 'cover', 'string', '封面图', 1, 1633771215),
-(179, 7, 166, 'video', 'int', '视频', 1, 1633771215),
-(180, 7, 166, 'pic', 'string', '多张图片', 1, 1633771215),
-(181, 7, 166, 'content', 'string', '内容', 1, 1633771215),
-(182, 7, 166, 'cdate_string', 'string', '发布时间', 1, 1633771215),
-(183, 7, 171, '1-1', 'string', 'array:1-1', 1, 1633772835),
-(184, 7, 183, 'id', 'int', '2', 1, 1633772835),
-(185, 7, 183, 'info_id', 'int', '10000001', 1, 1633772835),
-(186, 7, 183, 'key', 'string', '1-1', 1, 1633772835),
-(187, 7, 183, 'attr', 'string', '[{\"id\":\"1\",\"attr_id\":\"1\"}]', 1, 1633772835),
-(188, 7, 183, 'price', 'string', '10', 1, 1633772835),
-(189, 7, 183, 's_price', 'string', '5', 1, 1633772835),
-(190, 7, 183, 'f_price', 'string', '3', 1, 1633772835),
-(191, 7, 183, 'num', 'string', '100', 1, 1633772835),
-(192, 7, 183, 'sell_num', 'string', '0', 1, 1633772835),
-(193, 7, 183, 'reorder', 'string', '1', 1, 1633772835),
-(194, 7, 183, 'state', 'string', '1', 1, 1633772835),
-(195, 7, 183, 'cdate', 'string', '1633772710', 1, 1633772835),
-(196, 7, 171, '1-2', 'string', 'array:1-2', 1, 1633772835),
-(197, 7, 196, 'id', 'int', '1', 1, 1633772835),
-(198, 7, 196, 'info_id', 'int', '10000001', 1, 1633772835),
-(199, 7, 196, 'key', 'string', '1-2', 1, 1633772835),
-(200, 7, 196, 'attr', 'string', '[{\"id\":\"2\",\"attr_id\":\"1\"}]', 1, 1633772835),
-(201, 7, 196, 'price', 'string', '20', 1, 1633772835),
-(202, 7, 196, 's_price', 'string', '10', 1, 1633772835),
-(203, 7, 196, 'f_price', 'string', '6', 1, 1633772835),
-(204, 7, 196, 'num', 'string', '100', 1, 1633772835),
-(205, 7, 196, 'sell_num', 'string', '0', 1, 1633772835),
-(206, 7, 196, 'reorder', 'string', '1', 1, 1633772835),
-(207, 7, 196, 'state', 'string', '1', 1, 1633772835),
-(208, 7, 196, 'cdate', 'string', '1633772710', 1, 1633772835),
-(209, 7, 172, 'id', 'int', '2', 1, 1633772835),
-(210, 7, 172, 'info_id', 'int', '10000001', 1, 1633772835),
-(211, 7, 172, 'key', 'string', '1-1', 1, 1633772835),
-(212, 7, 172, 'attr', 'string', '[{\"id\":\"1\",\"attr_id\":\"1\"}]', 1, 1633772835),
-(213, 7, 172, 'f_price', 'string', '3', 1, 1633772835),
-(214, 7, 172, 'num', 'string', '100', 1, 1633772835),
-(215, 7, 172, 'sell_num', 'string', '0', 1, 1633772835),
-(216, 7, 172, 'reorder', 'string', '1', 1, 1633772835),
-(217, 7, 172, 'state', 'string', '1', 1, 1633772835),
-(218, 7, 172, 'cdate', 'string', '1633772710', 1, 1633772835),
-(219, 7, 176, 'id', 'int', '1', 1, 1633772835),
-(220, 7, 176, 'info_id', 'int', '10000001', 1, 1633772835),
-(221, 7, 176, 'key', 'string', '1-2', 1, 1633772835),
-(222, 7, 176, 'attr', 'string', '[{\"id\":\"2\",\"attr_id\":\"1\"}]', 1, 1633772835),
-(223, 7, 176, 'price', 'string', '20', 1, 1633772835),
-(224, 7, 176, 's_price', 'string', '10', 1, 1633772835),
-(225, 7, 176, 'f_price', 'string', '6', 1, 1633772835),
-(226, 7, 176, 'num', 'string', '100', 1, 1633772835),
-(227, 7, 176, 'sell_num', 'string', '0', 1, 1633772835),
-(228, 7, 176, 'reorder', 'string', '1', 1, 1633772835),
-(229, 7, 176, 'state', 'string', '1', 1, 1633772835),
-(230, 7, 176, 'cdate', 'string', '1633772710', 1, 1633772835),
-(231, 7, 166, 'category_array', 'string', '冷冻鲜品', 1, 1633772835),
-(232, 7, 166, 'sell_attr', 'string', 'array:sell_attr', 1, 1633772835),
-(233, 7, 232, 'id', 'int', '1', 1, 1633772835),
-(234, 7, 232, 'name', 'string', '份数', 1, 1633772835),
-(235, 7, 232, 'cate_id', 'int', '1', 1, 1633772835),
-(236, 7, 232, 'is_must', 'string', '1', 1, 1633772835),
-(237, 7, 232, 'is_sell', 'string', '2', 1, 1633772835),
-(238, 7, 232, 'type', 'string', '11', 1, 1633772835),
-(239, 7, 232, 'data_type', 'string', '1', 1, 1633772835),
-(240, 7, 232, 'match', 'string', NULL, 1, 1633772835),
-(241, 7, 232, 'list_reorder', 'string', '1', 1, 1633772835),
-(242, 7, 232, 'search_reorder', 'string', '1', 1, 1633772835),
-(243, 7, 232, 'view_reorder', 'string', '1', 1, 1633772835),
-(244, 7, 232, 'unit', 'string', NULL, 1, 1633772835),
-(245, 7, 232, 'ename', 'string', NULL, 1, 1633772835),
-(246, 7, 232, 'icon', 'string', NULL, 1, 1633772835),
-(247, 7, 232, 'color', 'string', NULL, 1, 1633772835),
-(248, 7, 232, 'bgcolor', 'string', NULL, 1, 1633772835),
-(249, 7, 232, 'state', 'string', '1', 1, 1633772835),
-(250, 7, 232, 'cdate', 'string', '1633689347', 1, 1633772835),
-(251, 7, 232, 'value', 'string', '2,1', 1, 1633772835),
-(252, 7, 232, 'value_string', 'string', '2人份,1人份', 1, 1633772835),
-(253, 7, 232, 'bg', 'string', 'background-image: url()', 1, 1633772835),
-(254, 7, 232, 'pic', 'string', '<img src=\"\" width=\"18\" />', 1, 1633772835),
-(255, 7, 232, 'option_sku', 'string', 'array:option_sku', 1, 1633772835),
-(256, 7, 255, 'id', 'int', '2', 1, 1633772835),
-(257, 7, 255, 'info_id', 'int', '1', 1, 1633772835),
-(258, 7, 255, 'name', 'string', '2人份', 1, 1633772835),
-(259, 7, 255, 'icon', 'string', NULL, 1, 1633772835),
-(260, 7, 255, 'value', 'string', '1-2', 1, 1633772835),
-(261, 7, 166, 'attr', 'string', 'array:attr', 1, 1633772835),
-(262, 7, 261, 'id', 'int', '1', 1, 1633772835),
-(263, 7, 261, 'name', 'string', '份数', 1, 1633772835),
-(264, 7, 261, 'cate_id', 'int', '1', 1, 1633772835),
-(265, 7, 261, 'is_must', 'string', '1', 1, 1633772835),
-(266, 7, 261, 'is_sell', 'string', '2', 1, 1633772835),
-(267, 7, 261, 'type', 'string', '11', 1, 1633772835),
-(268, 7, 261, 'data_type', 'string', '1', 1, 1633772835),
-(269, 7, 261, 'match', 'string', NULL, 1, 1633772835),
-(270, 7, 261, 'list_reorder', 'string', '1', 1, 1633772835),
-(271, 7, 261, 'search_reorder', 'string', '1', 1, 1633772835),
-(272, 7, 261, 'view_reorder', 'string', '1', 1, 1633772835),
-(273, 7, 261, 'unit', 'string', NULL, 1, 1633772835),
-(274, 7, 261, 'ename', 'string', NULL, 1, 1633772835),
-(275, 7, 261, 'icon', 'string', NULL, 1, 1633772835),
-(276, 7, 261, 'color', 'string', NULL, 1, 1633772835),
-(277, 7, 261, 'bgcolor', 'string', NULL, 1, 1633772835),
-(278, 7, 261, 'state', 'string', '1', 1, 1633772835),
-(279, 7, 261, 'cdate', 'string', '1633689347', 1, 1633772835),
-(280, 7, 261, 'value', 'string', '2,1', 1, 1633772835),
-(281, 7, 261, 'option', 'string', 'array:option', 1, 1633772835),
-(282, 7, 281, 'id', 'int', '2', 1, 1633772835),
-(283, 7, 281, 'info_id', 'int', '1', 1, 1633772835),
-(284, 7, 281, 'name', 'string', '2人份', 1, 1633772835),
-(285, 7, 281, 'value', 'string', NULL, 1, 1633772835),
-(286, 7, 281, 'icon', 'string', NULL, 1, 1633772835),
-(287, 7, 281, 'reorder', 'string', '1', 1, 1633772835),
-(288, 7, 281, 'state', 'string', '1', 1, 1633772835),
-(289, 7, 281, 'cdate', 'string', '1633771684', 1, 1633772835),
-(290, 7, 261, 'value_string', 'string', '2人份,1人份', 1, 1633772835),
-(291, 7, 261, 'bg', 'string', 'background-image: url()', 1, 1633772835),
-(292, 7, 261, 'pic', 'string', '<img src=\"\" width=\"18\" />', 1, 1633772835),
-(293, 9, -1, 'msg', 'string', '1', 1, 1633776418),
-(294, 8, -1, 'id', 'int', '1', 1, 1633776450),
-(295, 8, -1, 'uid', 'int', '1', 1, 1633776450),
-(296, 8, -1, 'shop_id', 'int', '1', 1, 1633776450),
-(297, 8, -1, 'goods_id', 'int', '10000001', 1, 1633776450),
-(298, 8, -1, 'sku_id', 'int', '0', 1, 1633776450),
-(299, 8, -1, 'num', 'string', '数量', 1, 1633776450),
-(300, 8, -1, 'status', 'string', '1', 1, 1633776450),
-(301, 8, -1, 'state', 'string', '1', 1, 1633776450),
-(302, 8, -1, 'cdate', 'string', '1633776433', 1, 1633776450),
-(303, 8, -1, 'goods', 'string', '见商品详情', 1, 1633776450),
-(304, 8, 303, 'id', 'int', '10000001', 1, 1633776450),
-(305, 8, 303, 'name', 'string', '多组商品', 1, 1633776450),
-(306, 8, 303, 'category', 'string', '1', 1, 1633776450),
-(307, 8, 303, 'top_category_id', 'int', '1', 1, 1633776450),
-(308, 8, 303, 'second_category_id', 'int', '1', 1, 1633776450),
-(309, 8, 303, 'category_id', 'int', '1', 1, 1633776450),
-(310, 8, 303, 'area', 'string', '110000', 1, 1633776450),
-(311, 8, 303, 'mode', 'string', '3', 1, 1633776450),
-(312, 8, 303, 'price_type', 'string', '2', 1, 1633776450),
-(313, 8, 303, 'price', 'string', NULL, 1, 1633776450),
-(314, 8, 303, 's_price', 'string', NULL, 1, 1633776450),
-(315, 8, 303, 'f_price', 'string', NULL, 1, 1633776450),
-(316, 8, 303, 'cover', 'string', '{uploadRes}1/2021/10/08/c2d24eb14a49336964877325bd188c88.jpg', 1, 1633776450),
-(317, 8, 303, 'video', 'int', NULL, 1, 1633776450),
-(318, 8, 303, 'pic', 'string', NULL, 1, 1633776450),
-(319, 8, 303, 'top', 'string', '2', 1, 1633776450),
-(320, 8, 303, 'youhui', 'string', '2', 1, 1633776450),
-(321, 8, 303, 'content', 'string', NULL, 1, 1633776450),
-(322, 8, 303, 'status', 'string', '1', 1, 1633776450),
-(323, 8, 303, 'reorder', 'string', '1', 1, 1633776450),
-(324, 8, 303, 'state', 'string', '1', 1, 1633776450),
-(325, 8, 303, 'udate', 'string', '1633689519', 1, 1633776450),
-(326, 8, 303, 'cdate', 'string', '1633689519', 1, 1633776450),
-(327, 8, 303, 'sku_id', 'int', '0', 1, 1633776450),
-(328, 10, -1, 'msg', 'string', 'ok', 1, 1633776702),
-(329, 11, -1, 'msg', 'string', 'ok', 1, 1633776906);
+-- 表的结构 `churen_attr_info`
+--
+
+DROP TABLE IF EXISTS `churen_attr_info`;
+CREATE TABLE `churen_attr_info` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(150) DEFAULT NULL COMMENT '名称',
+  `cate_id` int(11) NOT NULL DEFAULT '1' COMMENT '属性类别',
+  `is_must` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否必填',
+  `is_sell` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否销售属性',
+  `type` tinyint(11) NOT NULL DEFAULT '1' COMMENT '属性类型',
+  `data_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据类型-选择类型之后会自动验证数据有效性',
+  `match` varchar(600) DEFAULT NULL COMMENT '正则匹配规则-直接输入正则表达式即可',
+  `list_reorder` int(11) NOT NULL DEFAULT '1' COMMENT '列表页排序-设置该属性在列表页中的排序,数字越大越靠前,如果为负数或者0,则不加入到列表页中。',
+  `search_reorder` int(11) NOT NULL DEFAULT '1' COMMENT '搜索条件排序-设置搜索条件中的排序,数字越大越靠前,如果为负数或者0,则不加入到搜索条件中。',
+  `view_reorder` int(11) NOT NULL DEFAULT '1' COMMENT '详情页排序-设置该属性在详情页中的排序,数字越大越靠前,如果为负数或者0,则不加入到详情页中。',
+  `unit` varchar(150) DEFAULT NULL COMMENT '单位-填写属性单位,选填项',
+  `ename` varchar(150) DEFAULT NULL COMMENT '英文标识-该标识一般为前端样式名称,选填项',
+  `icon` varchar(150) DEFAULT NULL COMMENT '图标',
+  `color` varchar(10) DEFAULT NULL COMMENT '字体颜色-请填写颜色代码',
+  `bgcolor` varchar(10) DEFAULT NULL COMMENT '背景颜色-请填写颜色代码',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `sell_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '销售属性类型-组合类型将会生成不同的SKU组合价格,根据不同的SKU组合生成总价和库存;单选类型将生成单独的属性价格,将影响总价,可单独设置库存;输入类型一般为输入尺寸,需要单独设置影响总价的方式;具体价格都需要在商品中设置',
+  `sell_compute` tinyint(1) NOT NULL DEFAULT '1' COMMENT '计算方式-如输入类型设置了宽度和高度,总价需要平米来计算,这里选择相乘即可',
+  `sell_value` varchar(50) NOT NULL DEFAULT '0' COMMENT '价格起始值-同样是平米为例,这里输入10的话,就是大于10平米时开始加价,具体加价多少需要在商品中设置'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
 
 --
--- 转储表的索引
+-- 表的结构 `churen_attr_search`
 --
 
+DROP TABLE IF EXISTS `churen_attr_search`;
+CREATE TABLE `churen_attr_search` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `info_id` int(11) NOT NULL DEFAULT '1' COMMENT '属性ID',
+  `name` varchar(1000) DEFAULT NULL COMMENT '搜索名称-如设置为100万以下',
+  `value` varchar(1000) DEFAULT NULL COMMENT '搜索值-可以设置为{V}<=100,{V}为当前值,如果是区间输入框,则{S}为区间最小值,{E}为区间最大值',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
 --
--- 表的索引 `churen_manage_api`
+-- 表的结构 `churen_attr_value`
 --
-ALTER TABLE `churen_manage_api`
-  ADD PRIMARY KEY (`id`);
+
+DROP TABLE IF EXISTS `churen_attr_value`;
+CREATE TABLE `churen_attr_value` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `info_id` int(11) NOT NULL DEFAULT '1' COMMENT '属性ID',
+  `name` varchar(1000) DEFAULT NULL COMMENT '属性值名称-如绿色',
+  `value` varchar(1000) DEFAULT NULL COMMENT '属性值-如#000000,可以为空',
+  `icon` varchar(150) DEFAULT NULL COMMENT '图标',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
 
 --
--- 表的索引 `churen_manage_api_request`
+-- 表的结构 `churen_card_add`
 --
-ALTER TABLE `churen_manage_api_request`
-  ADD PRIMARY KEY (`id`);
+
+DROP TABLE IF EXISTS `churen_card_add`;
+CREATE TABLE `churen_card_add` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '系统ID',
+  `card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '生成方式',
+  `num` varchar(32) DEFAULT NULL COMMENT '生成数量',
+  `content` text COMMENT '填写卡号-多个换行隔开,如卡号重复将不会录入到库中',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
 
 --
--- 表的索引 `churen_manage_api_response`
+-- 表的结构 `churen_card_code`
 --
-ALTER TABLE `churen_manage_api_response`
-  ADD PRIMARY KEY (`id`);
+
+DROP TABLE IF EXISTS `churen_card_code`;
+CREATE TABLE `churen_card_code` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡',
+  `card` varchar(32) DEFAULT NULL COMMENT '卡号',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '使用状态',
+  `total_cash` float NOT NULL DEFAULT '0' COMMENT '总面值',
+  `use_cash` float NOT NULL DEFAULT '0' COMMENT '已用面值',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '下单用户',
+  `dh_uid` int(11) NOT NULL DEFAULT '0' COMMENT '兑换用户',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '下单门店',
+  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
+  `order_card_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
+  `bdate` int(11) NOT NULL DEFAULT '0' COMMENT '绑定时间',
+  `ddate` int(11) NOT NULL DEFAULT '0' COMMENT '兑换时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间',
+  `city` int(11) NOT NULL COMMENT '城市'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
 
 --
--- 在导出的表使用AUTO_INCREMENT
+-- 表的结构 `churen_card_info`
 --
 
+DROP TABLE IF EXISTS `churen_card_info`;
+CREATE TABLE `churen_card_info` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(80) DEFAULT NULL COMMENT '礼品卡名称',
+  `type_id` int(11) NOT NULL DEFAULT '1' COMMENT '礼品卡类型',
+  `value` int(11) NOT NULL DEFAULT '100' COMMENT '面值',
+  `price` varchar(80) DEFAULT NULL COMMENT '售价',
+  `card_type` int(11) NOT NULL DEFAULT '3' COMMENT '卡号生成规则',
+  `card_prefix` varchar(80) DEFAULT NULL COMMENT '卡号前缀-前缀不占用卡号长度的位数,如卡号长度填写14,卡号前缀为Q,则生成卡号前缀+14位随机数',
+  `card_len` int(11) NOT NULL DEFAULT '14' COMMENT '卡号长度',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
 --
--- 使用表AUTO_INCREMENT `churen_manage_api`
+-- 表的结构 `churen_card_order`
 --
-ALTER TABLE `churen_manage_api`
-  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', AUTO_INCREMENT=12;
+
+DROP TABLE IF EXISTS `churen_card_order`;
+CREATE TABLE `churen_card_order` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '购买人名称',
+  `mobile` varchar(300) DEFAULT NULL COMMENT '下单手机号',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '兑换门店',
+  `address_id` int(11) NOT NULL DEFAULT '0' COMMENT '送货地址',
+  `order_num` varchar(100) DEFAULT NULL COMMENT '订单号',
+  `oprice` varchar(50) DEFAULT NULL COMMENT '原价',
+  `price` varchar(50) DEFAULT NULL COMMENT '支付金额',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `fdate` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
+  `operdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
 
 --
--- 使用表AUTO_INCREMENT `churen_manage_api_request`
+-- 表的结构 `churen_card_order_card`
 --
-ALTER TABLE `churen_manage_api_request`
-  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', AUTO_INCREMENT=42;
+
+DROP TABLE IF EXISTS `churen_card_order_card`;
+CREATE TABLE `churen_card_order_card` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '购买人名称',
+  `card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡名称',
+  `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `price` varchar(50) DEFAULT NULL COMMENT '单价',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
+  `cards` varchar(2000) DEFAULT NULL COMMENT '卡号',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
 
 --
--- 使用表AUTO_INCREMENT `churen_manage_api_response`
+-- 表的结构 `churen_card_order_ps`
 --
-ALTER TABLE `churen_manage_api_response`
-  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', AUTO_INCREMENT=330;
+
+DROP TABLE IF EXISTS `churen_card_order_ps`;
+CREATE TABLE `churen_card_order_ps` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
+  `service_id` int(11) NOT NULL DEFAULT '-1' COMMENT '配送服务商',
+  `order_num` varchar(800) DEFAULT NULL COMMENT '快递单号-多个用换行隔开',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '包裹数量',
+  `price` varchar(50) DEFAULT NULL COMMENT '快递费用',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `qu_date` int(11) NOT NULL DEFAULT '0' COMMENT '取件时间',
+  `qs_date` int(11) NOT NULL DEFAULT '0' COMMENT '签收时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_card_type`
+--
+
+DROP TABLE IF EXISTS `churen_card_type`;
+CREATE TABLE `churen_card_type` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(200) DEFAULT NULL COMMENT '类型名称',
+  `desc` varchar(800) DEFAULT NULL COMMENT '类型描述',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '购买方式',
+  `shop_type` varchar(200) DEFAULT NULL COMMENT '可用门店类型',
+  `city_type` int(11) NOT NULL DEFAULT '1' COMMENT '可用范围',
+  `city` varchar(2000) DEFAULT NULL COMMENT '选择城市',
+  `cover` varchar(150) DEFAULT NULL COMMENT '封面图',
+  `content` text COMMENT '购买使用须知',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
+  `icon` varchar(150) NOT NULL COMMENT '图标',
+  `bgpic` varchar(150) NOT NULL COMMENT '背景图'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_cash_factory`
+--
+
+DROP TABLE IF EXISTS `churen_cash_factory`;
+CREATE TABLE `churen_cash_factory` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '对账单类型',
+  `day` int(11) NOT NULL DEFAULT '0' COMMENT '对账单时间',
+  `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '对账工厂',
+  `start` int(11) NOT NULL DEFAULT '0' COMMENT '对账单开始时间',
+  `end` int(11) NOT NULL DEFAULT '0' COMMENT '对账单结束时间',
+  `cash` varchar(100) DEFAULT NULL COMMENT '对账金额',
+  `num` varchar(100) DEFAULT NULL COMMENT '对账数量',
+  `factory_status` int(11) NOT NULL DEFAULT '1' COMMENT '工厂对账状态',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '平台对账状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_cash_order`
+--
+
+DROP TABLE IF EXISTS `churen_cash_order`;
+CREATE TABLE `churen_cash_order` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `order_num` varchar(100) DEFAULT NULL COMMENT '结算单号',
+  `type` int(11) NOT NULL DEFAULT '0' COMMENT '采购人类型',
+  `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '结算门店',
+  `source_type` int(11) NOT NULL DEFAULT '0' COMMENT '供货商类型',
+  `source_id` int(11) NOT NULL DEFAULT '0' COMMENT '结算门店',
+  `source_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订货单ID',
+  `source_order_num` varchar(100) DEFAULT NULL COMMENT '订货单编号',
+  `refund_id` int(11) NOT NULL DEFAULT '-1' COMMENT '退款ID',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '数量',
+  `cash` varchar(50) DEFAULT NULL COMMENT '结算金额',
+  `p_cash` varchar(50) DEFAULT NULL COMMENT '结算金额',
+  `jstype` tinyint(1) NOT NULL DEFAULT '1' COMMENT '结算类型',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '入账状态',
+  `audit` tinyint(1) NOT NULL DEFAULT '1' COMMENT '审核状态',
+  `audit_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '审核类型',
+  `fdate` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
+  `operdate` int(11) NOT NULL DEFAULT '0' COMMENT '结算时间',
+  `desc` varchar(500) DEFAULT NULL COMMENT '未通过原因',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_cash_shop`
+--
+
+DROP TABLE IF EXISTS `churen_cash_shop`;
+CREATE TABLE `churen_cash_shop` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '对账单类型',
+  `day` int(11) NOT NULL DEFAULT '0' COMMENT '对账单时间',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '对账门店',
+  `start` int(11) NOT NULL DEFAULT '0' COMMENT '对账单开始时间',
+  `end` int(11) NOT NULL DEFAULT '0' COMMENT '对账单结束时间',
+  `cash` varchar(100) DEFAULT NULL COMMENT '对账金额',
+  `num` varchar(100) DEFAULT NULL COMMENT '对账数量',
+  `shop_status` int(11) NOT NULL DEFAULT '1' COMMENT '门店对账状态',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '平台对账状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_cash_store`
+--
+
+DROP TABLE IF EXISTS `churen_cash_store`;
+CREATE TABLE `churen_cash_store` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '对账单类型',
+  `day` int(11) NOT NULL DEFAULT '0' COMMENT '对账单时间',
+  `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '对账仓库',
+  `start` int(11) NOT NULL DEFAULT '0' COMMENT '对账单开始时间',
+  `end` int(11) NOT NULL DEFAULT '0' COMMENT '对账单结束时间',
+  `cash` varchar(100) DEFAULT NULL COMMENT '对账金额',
+  `num` varchar(100) DEFAULT NULL COMMENT '对账数量',
+  `store_status` int(11) NOT NULL DEFAULT '1' COMMENT '仓库对账状态',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '平台对账状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_category_attr`
+--
+
+DROP TABLE IF EXISTS `churen_category_attr`;
+CREATE TABLE `churen_category_attr` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `category` varchar(500) DEFAULT NULL COMMENT '分类',
+  `attr` varchar(800) DEFAULT NULL COMMENT '属性设置',
+  `attr_input` text COMMENT '属性值设置',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_category_info`
+--
+
+DROP TABLE IF EXISTS `churen_category_info`;
+CREATE TABLE `churen_category_info` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(150) DEFAULT NULL COMMENT '分类名称',
+  `key` varchar(150) DEFAULT NULL COMMENT '分类标识-请输入英文,分类标识为唯一项,用来区分前端展示,选填项',
+  `info` varchar(800) DEFAULT NULL COMMENT '上级分类',
+  `project_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
+  `icon` varchar(150) DEFAULT NULL COMMENT '图标',
+  `color` varchar(10) DEFAULT NULL COMMENT '字体颜色-请填写颜色代码',
+  `bgcolor` varchar(10) DEFAULT NULL COMMENT '背景颜色-请填写颜色代码',
+  `info_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级分类',
+  `top_id` int(11) NOT NULL DEFAULT '-1' COMMENT '顶级分类',
+  `level` int(11) NOT NULL DEFAULT '1' COMMENT '分类级别-1为顶级分类、2为2级分类,-1为最后一级分类',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_category_project`
+--
+
+DROP TABLE IF EXISTS `churen_category_project`;
+CREATE TABLE `churen_category_project` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(150) DEFAULT NULL COMMENT '项目名称',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_content_feature`
+--
+
+DROP TABLE IF EXISTS `churen_content_feature`;
+CREATE TABLE `churen_content_feature` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(80) DEFAULT NULL COMMENT '标题-专题标题,同时也用于分享标题',
+  `desc` varchar(500) DEFAULT NULL COMMENT '摘要-专题摘要,同时也用于分享内容',
+  `cover` varchar(150) DEFAULT NULL COMMENT '封面图',
+  `content` text COMMENT '内容',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_content_news`
+--
+
+DROP TABLE IF EXISTS `churen_content_news`;
+CREATE TABLE `churen_content_news` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(80) DEFAULT NULL COMMENT '标题-文章标题,同时也用于分享标题',
+  `desc` varchar(500) DEFAULT NULL COMMENT '摘要-文章摘要,同时也用于分享内容',
+  `cover` varchar(150) DEFAULT NULL COMMENT '封面图',
+  `content` text COMMENT '内容',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_factory_goods`
+--
+
+DROP TABLE IF EXISTS `churen_factory_goods`;
+CREATE TABLE `churen_factory_goods` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
+  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
+  `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
+  `p_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '出厂价',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
+  `price_type` int(11) NOT NULL DEFAULT '0' COMMENT '价格类型',
+  `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
+  `status` tinyint(1) NOT NULL DEFAULT '2' COMMENT '状态'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_factory_goods_sku`
+--
+
+DROP TABLE IF EXISTS `churen_factory_goods_sku`;
+CREATE TABLE `churen_factory_goods_sku` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
+  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
+  `sku_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品SKU',
+  `p_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '出厂价',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
+  `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_factory_info`
+--
+
+DROP TABLE IF EXISTS `churen_factory_info`;
+CREATE TABLE `churen_factory_info` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `name` varchar(32) DEFAULT NULL COMMENT '工厂名称',
+  `truename` varchar(100) DEFAULT NULL COMMENT '联系人姓名',
+  `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '联系人电话',
+  `area` varchar(500) DEFAULT NULL COMMENT '所在城市',
+  `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
+  `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `map` varchar(300) DEFAULT NULL COMMENT '地理位置',
+  `lng` varchar(100) DEFAULT NULL COMMENT '经度',
+  `lat` varchar(100) DEFAULT NULL COMMENT '纬度',
+  `address` varchar(1000) DEFAULT NULL COMMENT '工厂地址',
+  `goods` text COMMENT '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置出厂价',
+  `license` varchar(150) DEFAULT NULL COMMENT '营业执照',
+  `license_number` varchar(200) DEFAULT NULL COMMENT '营业执照号码',
+  `company_name` varchar(200) DEFAULT NULL COMMENT '公司名称',
+  `idcard_front` varchar(150) DEFAULT NULL COMMENT '身份证正面',
+  `idcard_back` varchar(150) DEFAULT NULL COMMENT '身份证背面',
+  `kh_license` varchar(150) DEFAULT NULL COMMENT '开户许可证',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '认证状态',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `stat_type` int(11) NOT NULL DEFAULT '1' COMMENT '对账周期-可以选择按月还是按周生成对账单',
+  `stat_day` int(11) NOT NULL DEFAULT '10' COMMENT '对账单生成日期-这里直接填写对账周期内的第几天即可,如按月对账,这里填写10,就是本月10号生成上一个月的对账单,如按周对账,这里填写2,就是本周二生成上一周的对账单'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_factory_member`
+--
+
+DROP TABLE IF EXISTS `churen_factory_member`;
+CREATE TABLE `churen_factory_member` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
+  `role_id` varchar(60) DEFAULT NULL COMMENT '角色',
+  `name` varchar(32) DEFAULT NULL COMMENT '员工姓名',
+  `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '员工手机号',
+  `avatar` varchar(150) DEFAULT NULL COMMENT '头像',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_factory_order`
+--
+
+DROP TABLE IF EXISTS `churen_factory_order`;
+CREATE TABLE `churen_factory_order` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
+  `store_id` int(11) NOT NULL DEFAULT '-1' COMMENT '所属仓库',
+  `store_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '仓库订单ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `shop_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店订单ID',
+  `name` varchar(80) DEFAULT NULL COMMENT '订单名称',
+  `order_num` varchar(100) DEFAULT NULL COMMENT '订单编号',
+  `price` varchar(50) DEFAULT NULL COMMENT '购买价格',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
+  `pay_id` varchar(100) DEFAULT NULL COMMENT '支付订单ID',
+  `pay_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '支付状态',
+  `pay_price` varchar(50) DEFAULT NULL COMMENT '付款金额',
+  `info` varchar(300) DEFAULT NULL COMMENT '订单备注',
+  `note` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否发送状态提醒-1未发送,2已发送',
+  `notice` int(11) NOT NULL DEFAULT '0' COMMENT '模板消息提醒次数',
+  `tk_pic` varchar(150) DEFAULT NULL COMMENT '退款截图',
+  `tk_time` int(11) NOT NULL DEFAULT '0' COMMENT '退款时间',
+  `tk_admin` int(11) NOT NULL DEFAULT '1' COMMENT '退款审核人',
+  `tk_desc` varchar(300) DEFAULT NULL COMMENT '退款备注',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '下单时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_goods_add_card`
+--
+
+DROP TABLE IF EXISTS `churen_goods_add_card`;
+CREATE TABLE `churen_goods_add_card` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '系统ID',
+  `card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡',
+  `num` varchar(32) DEFAULT NULL COMMENT '兑换码数量',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_goods_card`
+--
+
+DROP TABLE IF EXISTS `churen_goods_card`;
+CREATE TABLE `churen_goods_card` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(80) DEFAULT NULL COMMENT '礼品卡名称',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '礼品卡类型',
+  `day` int(11) NOT NULL DEFAULT '7' COMMENT '有效天数',
+  `method` int(11) NOT NULL DEFAULT '3' COMMENT '领取方式',
+  `goods` text COMMENT '商品配置',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `card_type` int(11) NOT NULL DEFAULT '3' COMMENT '卡号生成规则',
+  `card_prefix` varchar(80) NOT NULL COMMENT '卡号前缀-前缀不占用卡号长度的位数,如卡号长度填写14,卡号前缀为Q,则生成卡号前缀+14位随机数',
+  `card_len` int(11) NOT NULL DEFAULT '14' COMMENT '卡号长度',
+  `pwd_type` int(11) NOT NULL DEFAULT '3' COMMENT '密码生成规则',
+  `pwd_prefix` varchar(80) NOT NULL COMMENT '密码前缀',
+  `pwd_len` int(11) NOT NULL DEFAULT '8' COMMENT '密码长度'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_goods_card_code`
+--
+
+DROP TABLE IF EXISTS `churen_goods_card_code`;
+CREATE TABLE `churen_goods_card_code` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `card_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡',
+  `card` varchar(32) DEFAULT NULL COMMENT '卡号',
+  `pwd` varchar(32) DEFAULT NULL COMMENT '密码',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '使用状态',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户信息',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '兑换门店',
+  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
+  `ddate` int(11) NOT NULL DEFAULT '0' COMMENT '兑换时间',
+  `edate` int(11) NOT NULL DEFAULT '0' COMMENT '失效时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_goods_column`
+--
+
+DROP TABLE IF EXISTS `churen_goods_column`;
+CREATE TABLE `churen_goods_column` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(150) DEFAULT NULL COMMENT '栏目名称',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_goods_coupon`
+--
+
+DROP TABLE IF EXISTS `churen_goods_coupon`;
+CREATE TABLE `churen_goods_coupon` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(80) DEFAULT NULL COMMENT '优惠券名称',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '优惠券类型',
+  `method` int(11) NOT NULL DEFAULT '1' COMMENT '优惠券属性',
+  `total_cash` varchar(100) DEFAULT NULL COMMENT '满减金额-如满100减50,这里填写100',
+  `cash` varchar(100) DEFAULT NULL COMMENT '抵扣金额',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `content` text COMMENT '使用规则',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_goods_info`
+--
+
+DROP TABLE IF EXISTS `churen_goods_info`;
+CREATE TABLE `churen_goods_info` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(800) DEFAULT NULL COMMENT '商品名称',
+  `category` varchar(500) DEFAULT NULL COMMENT '分类',
+  `top_category_id` int(11) NOT NULL DEFAULT '-1' COMMENT '顶级分类ID-顶级分类,用于分类查询',
+  `second_category_id` int(11) NOT NULL DEFAULT '-1' COMMENT '二级分类ID-二级分类,用于分类查询',
+  `category_id` int(11) NOT NULL DEFAULT '-1' COMMENT '子分类ID-最后一个级别的分类,用于分类查询',
+  `area` int(11) NOT NULL DEFAULT '0' COMMENT '所在地区',
+  `mode` int(11) NOT NULL DEFAULT '1' COMMENT '取货形式',
+  `price_type` int(11) NOT NULL DEFAULT '1' COMMENT '价格类型',
+  `price` varchar(100) NOT NULL DEFAULT '0' COMMENT '销售价',
+  `s_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '市场价',
+  `f_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '采购价',
+  `cover` varchar(150) DEFAULT NULL COMMENT '封面图-图片尺寸300*300PX或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式,用户上传图片之后会自动进行居中裁剪',
+  `video` varchar(800) DEFAULT NULL COMMENT '视频-视频格式MP4,上传大小不能超过4G',
+  `pic` text COMMENT '多张图片-图片尺寸750*422PX或等比尺寸,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式,用户上传图片之后会自动进行居中裁剪',
+  `top` int(11) NOT NULL DEFAULT '2' COMMENT '是否人气推荐',
+  `youhui` int(11) NOT NULL DEFAULT '2' COMMENT '是否每日优惠',
+  `content` text COMMENT '内容介绍',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
+  `udate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
+  `column_id` varchar(8000) NOT NULL COMMENT '栏目',
+  `hot` int(11) NOT NULL DEFAULT '2' COMMENT '是否热门商品',
+  `goods` text NOT NULL COMMENT '套餐商品配置-套餐商品只可以选择普通商品',
+  `sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
+  `tag_id` varchar(800) NOT NULL COMMENT '标签',
+  `sell_type` int(11) NOT NULL DEFAULT '1' COMMENT '售卖类型',
+  `min` int(11) NOT NULL DEFAULT '1' COMMENT '起购数',
+  `code` varchar(100) NOT NULL COMMENT '商品条码号'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_goods_info_category`
+--
+
+DROP TABLE IF EXISTS `churen_goods_info_category`;
+CREATE TABLE `churen_goods_info_category` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `info_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
+  `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_goods_info_column`
+--
+
+DROP TABLE IF EXISTS `churen_goods_info_column`;
+CREATE TABLE `churen_goods_info_column` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `info_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
+  `column_id` int(11) NOT NULL DEFAULT '0' COMMENT '栏目ID',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_goods_info_sku`
+--
+
+DROP TABLE IF EXISTS `churen_goods_info_sku`;
+CREATE TABLE `churen_goods_info_sku` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `info_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
+  `key` varchar(100) DEFAULT NULL COMMENT '属性标识',
+  `attr` text COMMENT '属性组合规则',
+  `price` varchar(100) NOT NULL DEFAULT '0' COMMENT '销售价',
+  `s_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '市场价',
+  `f_price` varchar(100) NOT NULL DEFAULT '0' COMMENT '采购价',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '库存',
+  `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
+  `type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '属性类型',
+  `min` int(11) NOT NULL DEFAULT '1' COMMENT '起购数',
+  `code` varchar(100) NOT NULL COMMENT '商品条码号'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_goods_info_tag`
+--
+
+DROP TABLE IF EXISTS `churen_goods_info_tag`;
+CREATE TABLE `churen_goods_info_tag` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `info_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品ID',
+  `tag_id` int(11) NOT NULL DEFAULT '0' COMMENT '标签ID',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_goods_tag`
+--
+
+DROP TABLE IF EXISTS `churen_goods_tag`;
+CREATE TABLE `churen_goods_tag` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(150) DEFAULT NULL COMMENT '标签名称',
+  `color` varchar(10) DEFAULT NULL COMMENT '颜色-请填写颜色代码',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_main_cate`
+--
+
+DROP TABLE IF EXISTS `churen_main_cate`;
+CREATE TABLE `churen_main_cate` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '分类名称',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_main_config`
+--
+
+DROP TABLE IF EXISTS `churen_main_config`;
+CREATE TABLE `churen_main_config` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '平台ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '网站名称',
+  `logo` varchar(150) DEFAULT NULL COMMENT '网站LOGO',
+  `seo_keyword` varchar(1000) DEFAULT NULL COMMENT 'SEO关键词',
+  `seo_desc` varchar(1000) DEFAULT NULL COMMENT 'SEO描述',
+  `phone` varchar(100) DEFAULT NULL COMMENT '客服电话',
+  `worktime` varchar(100) DEFAULT NULL COMMENT '工作时间',
+  `wechat` varchar(150) DEFAULT NULL COMMENT '公众号',
+  `foot` text COMMENT '底部信息',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `site` varchar(200) NOT NULL COMMENT '网站地址',
+  `citys` varchar(1000) NOT NULL COMMENT '开通城市-直接填写城市名称,多个用换行隔开',
+  `video_name` varchar(32) NOT NULL COMMENT '视频名称',
+  `video_desc` varchar(800) NOT NULL COMMENT '视频介绍',
+  `video` varchar(800) NOT NULL COMMENT '上传视频-视频格式MP4,上传大小不能超过4G',
+  `video_pic` varchar(150) NOT NULL COMMENT '封面图-封面图自动生成,也可以直接上传,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
+  `news_name` varchar(100) NOT NULL COMMENT '企业动态标题',
+  `news_desc` varchar(500) NOT NULL COMMENT '企业动态介绍',
+  `news_pic` varchar(150) NOT NULL COMMENT '企业动态图片',
+  `contact_desc` varchar(800) NOT NULL COMMENT '联系我们介绍',
+  `contact` text NOT NULL COMMENT '联系我们配置',
+  `contact_address` varchar(500) NOT NULL COMMENT '公司地址',
+  `contact_address_map` varchar(800) NOT NULL COMMENT '地址地图链接',
+  `douyin` varchar(150) NOT NULL COMMENT '抖音',
+  `weibo` varchar(150) NOT NULL COMMENT '微博'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_main_factory_config`
+--
+
+DROP TABLE IF EXISTS `churen_main_factory_config`;
+CREATE TABLE `churen_main_factory_config` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '平台ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '供应链名称',
+  `info` varchar(1000) DEFAULT NULL COMMENT '供应链业务描述',
+  `phone` varchar(100) DEFAULT NULL COMMENT '客服电话',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `kf_name` varchar(100) NOT NULL COMMENT '客服姓名',
+  `foot` text NOT NULL COMMENT '底部信息',
+  `dz_phone` varchar(100) NOT NULL COMMENT '对账专员电话'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_main_group`
+--
+
+DROP TABLE IF EXISTS `churen_main_group`;
+CREATE TABLE `churen_main_group` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '部门名称',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_main_help`
+--
+
+DROP TABLE IF EXISTS `churen_main_help`;
+CREATE TABLE `churen_main_help` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(80) DEFAULT NULL COMMENT '标题',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '帮助类型',
+  `content` text COMMENT '内容',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `desc` varchar(500) NOT NULL COMMENT '描述'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_main_info`
+--
+
+DROP TABLE IF EXISTS `churen_main_info`;
+CREATE TABLE `churen_main_info` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(80) DEFAULT NULL COMMENT '标题-文章标题,同时也用于分享标题',
+  `desc` varchar(500) DEFAULT NULL COMMENT '摘要-文章摘要,同时也用于分享内容',
+  `cate_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属分类',
+  `source_id` int(11) NOT NULL DEFAULT '1' COMMENT '来源',
+  `pic_cover` text COMMENT '封面图-可以上传多张,也可以不传,不传则自动从内容中获取',
+  `num_add_view` int(11) NOT NULL DEFAULT '0' COMMENT '浏览量基数',
+  `num_view` int(11) NOT NULL DEFAULT '0' COMMENT '浏览量',
+  `pdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `udate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
+  `content` text COMMENT '内容',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '发布状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_main_manage_config`
+--
+
+DROP TABLE IF EXISTS `churen_main_manage_config`;
+CREATE TABLE `churen_main_manage_config` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '平台ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '小程序名称',
+  `info` varchar(1000) DEFAULT NULL COMMENT '小程序业务描述',
+  `logo` varchar(150) DEFAULT NULL COMMENT '小程序LOGO',
+  `applet` varchar(150) DEFAULT NULL COMMENT '小程序二维码',
+  `phone` varchar(100) DEFAULT NULL COMMENT '客服电话',
+  `km` varchar(32) DEFAULT NULL COMMENT '推荐门店公里数-单位是公里,如5公里,填写5即可',
+  `video` varchar(800) DEFAULT NULL COMMENT '视频宣传片-视频格式MP4,上传大小不能超过4G',
+  `file` varchar(150) DEFAULT NULL COMMENT '宣传文件',
+  `rule` text COMMENT '门店合作规则',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `video_cover` varchar(150) NOT NULL COMMENT '视频封面图-封面图自动生成,也可以更改,上传大小不能超过2M,支持JPG、PNG、GIF格式,建议上传JPG格式',
+  `dz_phone` varchar(100) NOT NULL COMMENT '对账专员电话'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_main_page`
+--
+
+DROP TABLE IF EXISTS `churen_main_page`;
+CREATE TABLE `churen_main_page` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(80) DEFAULT NULL COMMENT '标题',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
+  `key` varchar(80) DEFAULT NULL COMMENT '标识',
+  `content` text COMMENT '内容',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_main_sell_config`
+--
+
+DROP TABLE IF EXISTS `churen_main_sell_config`;
+CREATE TABLE `churen_main_sell_config` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '平台ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '小程序名称',
+  `info` varchar(1000) DEFAULT NULL COMMENT '小程序业务描述',
+  `logo` varchar(150) DEFAULT NULL COMMENT '小程序LOGO',
+  `applet` varchar(150) DEFAULT NULL COMMENT '小程序二维码',
+  `phone` varchar(100) DEFAULT NULL COMMENT '客服电话',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `dz_phone` varchar(100) NOT NULL COMMENT '对账专员电话',
+  `card` varchar(150) NOT NULL COMMENT '礼品卡封面',
+  `per` int(11) NOT NULL DEFAULT '1' COMMENT '平台佣金比例-输入1就是百分之1,分账时,平台自动从支付的金额里抽取1%的手续费',
+  `card_name` varchar(150) NOT NULL DEFAULT '厨人E卡' COMMENT '礼品卡名称'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_main_source`
+--
+
+DROP TABLE IF EXISTS `churen_main_source`;
+CREATE TABLE `churen_main_source` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '来源名称-长度不能超过16个汉字',
+  `link` varchar(500) DEFAULT NULL COMMENT '来源链接',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_main_zhaopin`
+--
+
+DROP TABLE IF EXISTS `churen_main_zhaopin`;
+CREATE TABLE `churen_main_zhaopin` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(80) DEFAULT NULL COMMENT '职位名称',
+  `group_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属部门',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '职位类型',
+  `area` varchar(80) DEFAULT NULL COMMENT '所在地区',
+  `desc` text COMMENT '岗位描述',
+  `content` text COMMENT '任职要求',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_admin`
+--
+
+DROP TABLE IF EXISTS `churen_manage_admin`;
+CREATE TABLE `churen_manage_admin` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '管理员ID',
+  `username` varchar(24) DEFAULT NULL COMMENT '管理员名',
+  `email` varchar(150) DEFAULT NULL COMMENT '邮箱-可用于登录,请准确填写,不允许重复',
+  `mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
+  `password` varchar(64) DEFAULT NULL COMMENT '管理员密码',
+  `config` int(11) NOT NULL DEFAULT '1' COMMENT '后台配置',
+  `role` varchar(100) DEFAULT NULL COMMENT '角色',
+  `group` int(11) NOT NULL DEFAULT '1' COMMENT '分组',
+  `top` text COMMENT '头部菜单-这里的头部菜单如果设置,则会覆盖角色中的头部菜单',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_admin_role`
+--
+
+DROP TABLE IF EXISTS `churen_manage_admin_role`;
+CREATE TABLE `churen_manage_admin_role` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `admin_id` int(11) NOT NULL DEFAULT '0' COMMENT '管理员ID',
+  `role_id` int(11) NOT NULL DEFAULT '0' COMMENT '角色ID',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_api`
+--
+
+DROP TABLE IF EXISTS `churen_manage_api`;
+CREATE TABLE `churen_manage_api` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(30) DEFAULT NULL COMMENT '接口名称',
+  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '接口类型',
+  `project` varchar(30) DEFAULT NULL COMMENT '所属项目',
+  `site` varchar(500) DEFAULT NULL COMMENT '接口地址',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_api_request`
+--
+
+DROP TABLE IF EXISTS `churen_manage_api_request`;
+CREATE TABLE `churen_manage_api_request` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `api_id` int(11) NOT NULL DEFAULT '0' COMMENT '接口ID',
+  `parent_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级ID',
+  `name` varchar(50) DEFAULT NULL COMMENT '字段',
+  `type` varchar(50) DEFAULT NULL COMMENT '类型',
+  `desc` text COMMENT '描述',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_api_response`
+--
+
+DROP TABLE IF EXISTS `churen_manage_api_response`;
+CREATE TABLE `churen_manage_api_response` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `api_id` int(11) NOT NULL DEFAULT '0' COMMENT '接口ID',
+  `parent_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级ID',
+  `name` varchar(50) DEFAULT NULL COMMENT '字段',
+  `type` varchar(50) DEFAULT NULL COMMENT '类型',
+  `desc` text COMMENT '描述',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_auth`
+--
+
+DROP TABLE IF EXISTS `churen_manage_auth`;
+CREATE TABLE `churen_manage_auth` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `project` varchar(50) DEFAULT NULL COMMENT '项目KEY',
+  `project_name` varchar(50) DEFAULT NULL COMMENT '项目名',
+  `name` varchar(50) DEFAULT NULL COMMENT '权限名',
+  `auth_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级权限',
+  `key` varchar(100) DEFAULT NULL COMMENT '权限KEY',
+  `value` varchar(30) DEFAULT NULL COMMENT '对应的值',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_config`
+--
+
+DROP TABLE IF EXISTS `churen_manage_config`;
+CREATE TABLE `churen_manage_config` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '配置名',
+  `template` int(1) NOT NULL DEFAULT '1' COMMENT '后台模板',
+  `title` varchar(32) DEFAULT NULL COMMENT '后台TITLE',
+  `info` varchar(40) DEFAULT NULL COMMENT '控制台欢迎标题',
+  `content` text COMMENT '控制台欢迎内容',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `help_title` varchar(32) NOT NULL DEFAULT '帮助标题' COMMENT '帮助标题',
+  `help_info` varchar(800) NOT NULL DEFAULT '默认帮助介绍' COMMENT '帮助介绍'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_cron`
+--
+
+DROP TABLE IF EXISTS `churen_manage_cron`;
+CREATE TABLE `churen_manage_cron` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '任务名',
+  `project` varchar(30) DEFAULT NULL COMMENT '项目',
+  `interface` varchar(100) DEFAULT NULL COMMENT '接口(命令行)',
+  `ldate` int(11) NOT NULL DEFAULT '0' COMMENT '执行时间',
+  `time` int(11) NOT NULL DEFAULT '0' COMMENT '时间间隔(为0则执行一次)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_group`
+--
+
+DROP TABLE IF EXISTS `churen_manage_group`;
+CREATE TABLE `churen_manage_group` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '组ID',
+  `name` varchar(50) DEFAULT NULL COMMENT '组名称',
+  `area` varchar(255) DEFAULT NULL COMMENT '区域',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_help`
+--
+
+DROP TABLE IF EXISTS `churen_manage_help`;
+CREATE TABLE `churen_manage_help` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '帮助标题',
+  `config` int(11) NOT NULL DEFAULT '1' COMMENT '后台配置',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `video` varchar(800) DEFAULT NULL COMMENT '帮助视频-视频格式MP4,上传大小不能超过4G',
+  `content` text COMMENT '内容',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_log`
+--
+
+DROP TABLE IF EXISTS `churen_manage_log`;
+CREATE TABLE `churen_manage_log` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `project` varchar(32) DEFAULT NULL COMMENT '项目名',
+  `table` varchar(32) DEFAULT NULL COMMENT '项目下的表名',
+  `info` longtext COMMENT '日志记录',
+  `admin` int(11) NOT NULL DEFAULT '0' COMMENT '操作人',
+  `tid` int(11) NOT NULL DEFAULT '0' COMMENT '来源表ID',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_menu`
+--
+
+DROP TABLE IF EXISTS `churen_manage_menu`;
+CREATE TABLE `churen_manage_menu` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '菜单ID',
+  `name` varchar(50) DEFAULT NULL COMMENT '菜单名称',
+  `group_id` int(11) NOT NULL DEFAULT '1' COMMENT '选择分组',
+  `menu_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级菜单',
+  `menu` varchar(800) DEFAULT NULL COMMENT '上级菜单',
+  `key` varchar(100) DEFAULT NULL COMMENT '菜单标识-选填,可以为空,用来标识菜单的唯一性',
+  `link` varchar(150) DEFAULT NULL COMMENT '链接(或路径)-选填,可以为空',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序',
+  `type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '开启子菜单',
+  `icon` varchar(100) DEFAULT NULL COMMENT '图标代码-请<A HREF="HTTPS://WWW.LAYUI.COM/DOC/ELEMENT/ICON.HTML" TARGET="_BLANK">点此</A>查看图标代码',
+  `fast` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否快捷菜单',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_menu_group`
+--
+
+DROP TABLE IF EXISTS `churen_manage_menu_group`;
+CREATE TABLE `churen_manage_menu_group` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '分组ID',
+  `name` varchar(50) DEFAULT NULL COMMENT '分组名称',
+  `icon` varchar(100) DEFAULT NULL COMMENT '图标代码-请<A HREF="HTTPS://WWW.LAYUI.COM/DOC/ELEMENT/ICON.HTML" TARGET="_BLANK">点此</A>查看图标代码',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_notice`
+--
+
+DROP TABLE IF EXISTS `churen_manage_notice`;
+CREATE TABLE `churen_manage_notice` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '公告ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '公告标题',
+  `config` int(11) NOT NULL DEFAULT '1' COMMENT '后台配置',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `content` text COMMENT '内容',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_opt`
+--
+
+DROP TABLE IF EXISTS `churen_manage_opt`;
+CREATE TABLE `churen_manage_opt` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `project` varchar(30) DEFAULT NULL COMMENT '项目',
+  `table` varchar(30) DEFAULT NULL COMMENT '数据表-请输入表的英文名',
+  `method` varchar(32) DEFAULT NULL COMMENT '所属方法名',
+  `col` varchar(500) DEFAULT NULL COMMENT '使用的字段',
+  `col_index` varchar(500) DEFAULT NULL COMMENT '建立索引的字段',
+  `version` int(11) NOT NULL DEFAULT '0' COMMENT '版本号',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '执行次数',
+  `time` varchar(30) DEFAULT NULL COMMENT '执行时间',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否建立索引',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据是否存在',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_role`
+--
+
+DROP TABLE IF EXISTS `churen_manage_role`;
+CREATE TABLE `churen_manage_role` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '角色ID',
+  `name` varchar(24) DEFAULT NULL COMMENT '角色名',
+  `role_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级角色',
+  `self` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否只能管理自己发布的内容-请在需要此项权限的表中增加[数据查询时影响的字段]',
+  `col_select` varchar(30) DEFAULT NULL COMMENT '数据查询时影响的字段-该项影响数据查询,如果在表中增加该字段,则后台在查询数据时自动查询当前管理员的ID下的数据,多个用逗号隔开,与[是否只能管理自己发布的内容]相关',
+  `col_insert` varchar(30) DEFAULT NULL COMMENT '数据插入时影响的字段-该项影响数据插入,如果在表中增加该字段,则后台操作时自动为该字段赋值为当前管理员的ID,多个用逗号隔开',
+  `col_update` varchar(30) DEFAULT NULL COMMENT '数据更新时影响的字段-该项影响数据更新,如果在表中增加该字段,则后台操作时自动为该字段赋值为当前管理员的ID,多个用逗号隔开',
+  `oper` varchar(24) DEFAULT NULL COMMENT '操作权限',
+  `auth` text COMMENT '左侧菜单',
+  `top` text COMMENT '头部菜单',
+  `auth_data` text COMMENT '数据权限',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_manage_top`
+--
+
+DROP TABLE IF EXISTS `churen_manage_top`;
+CREATE TABLE `churen_manage_top` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(50) DEFAULT NULL COMMENT '权限名',
+  `top_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级权限',
+  `key` varchar(100) DEFAULT NULL COMMENT '权限KEY',
+  `value` varchar(30) DEFAULT NULL COMMENT '对应的值',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_message_inbox`
+--
+
+DROP TABLE IF EXISTS `churen_message_inbox`;
+CREATE TABLE `churen_message_inbox` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `oid` int(11) NOT NULL DEFAULT '0' COMMENT '收件ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '收件人',
+  `from_uid` int(11) NOT NULL DEFAULT '0' COMMENT '发件人',
+  `name` varchar(30) DEFAULT NULL COMMENT '发件标题',
+  `content` text COMMENT '发件内容',
+  `project_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '消息类型',
+  `scope` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息范围',
+  `param` varchar(800) DEFAULT NULL COMMENT '传入参数-一般为JSON格式数据',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '已读状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `link` varchar(30) NOT NULL COMMENT '链接-选填,如有链接,则点击消息跳转至该链接'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_message_outbox`
+--
+
+DROP TABLE IF EXISTS `churen_message_outbox`;
+CREATE TABLE `churen_message_outbox` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '-1' COMMENT '发件人',
+  `name` varchar(30) DEFAULT NULL COMMENT '发件标题',
+  `content` text COMMENT '发件内容',
+  `project_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '消息类型',
+  `scope` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息范围',
+  `param` varchar(800) DEFAULT NULL COMMENT '传入参数-一般为JSON格式数据',
+  `to_uid` text COMMENT '收件人-直接填写UID,多个用换行隔开,后期升级',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `link` varchar(30) NOT NULL COMMENT '链接-选填,如有链接,则点击消息跳转至该链接'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_message_project`
+--
+
+DROP TABLE IF EXISTS `churen_message_project`;
+CREATE TABLE `churen_message_project` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(30) DEFAULT NULL COMMENT '项目名称',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_message_push`
+--
+
+DROP TABLE IF EXISTS `churen_message_push`;
+CREATE TABLE `churen_message_push` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(30) DEFAULT NULL COMMENT '推送名称',
+  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '推送类型',
+  `android_appid` varchar(100) DEFAULT NULL COMMENT '安卓推送APPID',
+  `android_appsecret` varchar(200) DEFAULT NULL COMMENT '安卓推送APPSECRET',
+  `ios_appid` varchar(100) DEFAULT NULL COMMENT '苹果推送APPID',
+  `ios_appsecret` varchar(200) DEFAULT NULL COMMENT '苹果推送APPSECRET',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_message_type`
+--
+
+DROP TABLE IF EXISTS `churen_message_type`;
+CREATE TABLE `churen_message_type` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(30) DEFAULT NULL COMMENT '类型名称-类型ID值为10以下则为系统消息',
+  `scope` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息范围',
+  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '同步推送',
+  `push` int(11) NOT NULL DEFAULT '1' COMMENT '推送方式',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_passport_address`
+--
+
+DROP TABLE IF EXISTS `churen_passport_address`;
+CREATE TABLE `churen_passport_address` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '类型',
+  `contact` varchar(100) DEFAULT NULL COMMENT '联系人',
+  `sex` tinyint(1) NOT NULL DEFAULT '3' COMMENT '性别',
+  `mobile` varchar(100) DEFAULT NULL COMMENT '联系电话',
+  `country` varchar(100) DEFAULT NULL COMMENT '国家',
+  `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
+  `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `county` int(11) NOT NULL DEFAULT '0' COMMENT '县区',
+  `area` varchar(800) DEFAULT NULL COMMENT '地区',
+  `address` varchar(1000) DEFAULT NULL COMMENT '详细地址',
+  `house_number` varchar(500) DEFAULT NULL COMMENT '门牌号',
+  `tag` tinyint(1) NOT NULL DEFAULT '1' COMMENT '标签',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_passport_avatar`
+--
+
+DROP TABLE IF EXISTS `churen_passport_avatar`;
+CREATE TABLE `churen_passport_avatar` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `sex` tinyint(1) NOT NULL DEFAULT '4' COMMENT '头像性别',
+  `avatar` varchar(150) DEFAULT NULL COMMENT '头像',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '注册时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_passport_code`
+--
+
+DROP TABLE IF EXISTS `churen_passport_code`;
+CREATE TABLE `churen_passport_code` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
+  `code` varchar(32) DEFAULT NULL COMMENT '验证码',
+  `day` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_passport_invoice`
+--
+
+DROP TABLE IF EXISTS `churen_passport_invoice`;
+CREATE TABLE `churen_passport_invoice` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '类型',
+  `title_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '抬头类型',
+  `title` varchar(100) DEFAULT NULL COMMENT '抬头名称',
+  `email` varchar(100) DEFAULT NULL COMMENT '邮箱',
+  `mobile` varchar(100) DEFAULT NULL COMMENT '手机号',
+  `number` varchar(100) DEFAULT NULL COMMENT '公司税号',
+  `phone` varchar(100) DEFAULT NULL COMMENT '公司电话',
+  `address` varchar(1000) DEFAULT NULL COMMENT '注册地址',
+  `bank` varchar(100) DEFAULT NULL COMMENT '开户银行',
+  `bank_number` varchar(100) DEFAULT NULL COMMENT '银行账号',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_passport_profession`
+--
+
+DROP TABLE IF EXISTS `churen_passport_profession`;
+CREATE TABLE `churen_passport_profession` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '职业名称',
+  `system_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_passport_stat`
+--
+
+DROP TABLE IF EXISTS `churen_passport_stat`;
+CREATE TABLE `churen_passport_stat` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `day` int(11) NOT NULL DEFAULT '0' COMMENT '日期',
+  `user` int(11) NOT NULL DEFAULT '0' COMMENT '新增用户量',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_passport_system`
+--
+
+DROP TABLE IF EXISTS `churen_passport_system`;
+CREATE TABLE `churen_passport_system` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '项目名称',
+  `appid` varchar(150) DEFAULT NULL COMMENT '微信小程序APPID',
+  `secret` varchar(150) DEFAULT NULL COMMENT '微信小程序SECRET',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_passport_user`
+--
+
+DROP TABLE IF EXISTS `churen_passport_user`;
+CREATE TABLE `churen_passport_user` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '用户ID',
+  `username` varchar(50) DEFAULT NULL COMMENT '用户名',
+  `truename` varchar(50) DEFAULT NULL COMMENT '姓名',
+  `title` varchar(800) DEFAULT NULL COMMENT '头衔',
+  `mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
+  `system_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
+  `profession` int(11) NOT NULL DEFAULT '1' COMMENT '职业',
+  `wechat` varchar(100) DEFAULT NULL COMMENT '微信号',
+  `source_type` varchar(100) DEFAULT NULL COMMENT '用户来源-废弃,用SYSTEM_SOURCE替代,暂时保留',
+  `system_source` tinyint(1) NOT NULL DEFAULT '1' COMMENT '所属平台',
+  `email` varchar(150) DEFAULT NULL COMMENT '邮箱',
+  `password` varchar(50) DEFAULT NULL COMMENT '密码',
+  `avatar_id` int(11) NOT NULL DEFAULT '1' COMMENT '默认头像',
+  `avatar` varchar(150) DEFAULT NULL COMMENT '头像',
+  `address_contact` varchar(100) DEFAULT NULL COMMENT '联系人',
+  `address_mobile` varchar(100) DEFAULT NULL COMMENT '联系电话',
+  `country` varchar(100) DEFAULT NULL COMMENT '国家-来自微信',
+  `province` varchar(100) DEFAULT NULL COMMENT '省份-来自微信',
+  `city` varchar(100) DEFAULT NULL COMMENT '城市-来自微信',
+  `county` varchar(100) DEFAULT NULL COMMENT '区县-来自微信',
+  `area` varchar(800) DEFAULT NULL COMMENT '地区-来自微信',
+  `area_id` varchar(500) DEFAULT NULL COMMENT '地区-用户自己选择',
+  `address` varchar(1000) DEFAULT NULL COMMENT '详细地址-不带省市区的地址',
+  `info` varchar(255) DEFAULT NULL COMMENT '介绍-选填,如果想清空该介绍,请输入NULL。',
+  `score` varchar(50) DEFAULT NULL COMMENT '积分',
+  `sex` tinyint(1) NOT NULL DEFAULT '3' COMMENT '用户性别',
+  `level` int(11) NOT NULL DEFAULT '1' COMMENT '用户等级',
+  `temp` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否临时用户',
+  `birthday` int(11) NOT NULL DEFAULT '0' COMMENT '生日',
+  `login_date` int(11) NOT NULL DEFAULT '0' COMMENT '最近登录',
+  `bind` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否绑定手机',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '注册时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_passport_user_system`
+--
+
+DROP TABLE IF EXISTS `churen_passport_user_system`;
+CREATE TABLE `churen_passport_user_system` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '用户ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `system_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_passport_wechat`
+--
+
+DROP TABLE IF EXISTS `churen_passport_wechat`;
+CREATE TABLE `churen_passport_wechat` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `system_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属项目',
+  `account_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属账户',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户',
+  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '类型-废弃,用SYSTEM_SOURCE替代,暂时保留',
+  `system_source` tinyint(1) NOT NULL DEFAULT '1' COMMENT '所属平台',
+  `openid` varchar(50) DEFAULT NULL COMMENT 'OPENID-微信的唯一用户ID',
+  `unionid` varchar(50) DEFAULT NULL COMMENT 'UNIONID-微信的唯一用户ID',
+  `session_key` varchar(50) DEFAULT NULL COMMENT 'SESSION_KEY',
+  `access_token` varchar(200) DEFAULT NULL COMMENT 'ACCESS_TOKEN',
+  `refresh_token` varchar(200) DEFAULT NULL COMMENT 'REFRESH_TOKEN',
+  `expires_in` varchar(100) DEFAULT NULL COMMENT 'EXPIRES_IN',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_pay_account`
+--
+
+DROP TABLE IF EXISTS `churen_pay_account`;
+CREATE TABLE `churen_pay_account` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(60) DEFAULT NULL COMMENT '账户名称',
+  `type` varchar(30) DEFAULT NULL COMMENT '支付类型',
+  `box` int(11) NOT NULL DEFAULT '1' COMMENT '支付环境-沙箱模式为支付时第三方平台不实际收费,测试环境为不拉取第三方支付',
+  `system_source` tinyint(1) NOT NULL DEFAULT '1' COMMENT '支付平台',
+  `channel_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属渠道',
+  `mchid` varchar(150) DEFAULT NULL COMMENT '商户号',
+  `key` varchar(150) DEFAULT NULL COMMENT '密匙KEY',
+  `appid` varchar(150) DEFAULT NULL COMMENT 'APPID',
+  `appsecret` varchar(300) DEFAULT NULL COMMENT 'APPSECRET',
+  `account` varchar(150) DEFAULT NULL COMMENT '支付账号',
+  `private_key` text COMMENT '商户私钥-HTTPS://DOC.OPEN.ALIPAY.COM/DOC2/DETAIL.HTM?SPM=A219A.7629140.0.0.NBDXFY&TREEID=58&ARTICLEID=103242&DOCTYPE=1',
+  `m_public_key` varchar(1000) DEFAULT NULL COMMENT '商户公钥-HTTPS://B.ALIPAY.COM/ORDER/PIDANDKEY.HTM',
+  `public_key` varchar(1000) DEFAULT NULL COMMENT '支付宝公钥-HTTPS://B.ALIPAY.COM/ORDER/PIDANDKEY.HTM',
+  `appCertPath` varchar(150) DEFAULT NULL COMMENT '支付宝APPCERTPATH',
+  `alipayCertPath` varchar(150) DEFAULT NULL COMMENT '支付宝ALIPAYCERTPATH',
+  `rootCertPath` varchar(150) DEFAULT NULL COMMENT '支付宝ROOTCERTPATH',
+  `file_cert` varchar(150) DEFAULT NULL COMMENT '证书CERT文件-微信支付需要退款时使用',
+  `file_key` varchar(150) DEFAULT NULL COMMENT '证书KEY文件-微信支付需要退款时使用',
+  `timeout` int(11) NOT NULL DEFAULT '600' COMMENT '支付有效期-秒',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_pay_channel`
+--
+
+DROP TABLE IF EXISTS `churen_pay_channel`;
+CREATE TABLE `churen_pay_channel` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(60) DEFAULT NULL COMMENT '渠道名称',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_pay_order`
+--
+
+DROP TABLE IF EXISTS `churen_pay_order`;
+CREATE TABLE `churen_pay_order` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '1' COMMENT '用户',
+  `username` varchar(200) DEFAULT NULL COMMENT '用户名称',
+  `name` varchar(200) DEFAULT NULL COMMENT '订单名称',
+  `order_id` varchar(200) DEFAULT NULL COMMENT '订单ID',
+  `type` varchar(30) DEFAULT NULL COMMENT '支付类型',
+  `product_id` varchar(800) DEFAULT NULL COMMENT '产品ID-可能为多个',
+  `account_id` int(11) NOT NULL DEFAULT '1' COMMENT '支付账户',
+  `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属项目',
+  `cash` varchar(11) DEFAULT NULL COMMENT '金额',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '支付状态',
+  `status_desc` varchar(300) DEFAULT NULL COMMENT '支付状态说明',
+  `tk_pic` varchar(150) DEFAULT NULL COMMENT '退款截图',
+  `tk_time` int(11) NOT NULL DEFAULT '0' COMMENT '退款时间',
+  `tk_admin` int(11) NOT NULL DEFAULT '1' COMMENT '退款审核人',
+  `tk_desc` varchar(300) DEFAULT NULL COMMENT '退款备注',
+  `param` text COMMENT '支付信息-用于二次支付',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `pay_time` int(11) NOT NULL DEFAULT '0' COMMENT '付款时间',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间',
+  `refund_cash` varchar(11) NOT NULL COMMENT '退款金额'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_pay_project`
+--
+
+DROP TABLE IF EXISTS `churen_pay_project`;
+CREATE TABLE `churen_pay_project` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(60) DEFAULT NULL COMMENT '项目名称',
+  `key` varchar(150) DEFAULT NULL COMMENT '密匙KEY',
+  `notify` varchar(500) DEFAULT NULL COMMENT '支付完成回调接口',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_poster_template`
+--
+
+DROP TABLE IF EXISTS `churen_poster_template`;
+CREATE TABLE `churen_poster_template` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '模板名称',
+  `key` varchar(32) DEFAULT NULL COMMENT '模板标识-调用模板时,使用该标识来获取模板信息,相同的模板标识,将随机抽取一条',
+  `type` varchar(32) DEFAULT NULL COMMENT '使用的图形库',
+  `update` tinyint(1) NOT NULL DEFAULT '2' COMMENT '生成规则',
+  `create` int(11) NOT NULL DEFAULT '2' COMMENT '模板背景图',
+  `width` varchar(11) DEFAULT NULL COMMENT '背景图宽度',
+  `height` varchar(11) DEFAULT NULL COMMENT '背景图高度',
+  `background` varchar(150) DEFAULT NULL COMMENT '模板背景图',
+  `pic` varchar(150) DEFAULT NULL COMMENT '样例图',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_push_col`
+--
+
+DROP TABLE IF EXISTS `churen_push_col`;
+CREATE TABLE `churen_push_col` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '字段名称',
+  `ename` varchar(32) DEFAULT NULL COMMENT '字段英文名称-用于前台使用',
+  `desc` varchar(200) DEFAULT NULL COMMENT '字段描述',
+  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '类型',
+  `pic` varchar(20) DEFAULT NULL COMMENT '图片尺寸提醒-请直接输入尺寸,如100*100',
+  `option` varchar(1000) DEFAULT NULL COMMENT '可选项-每行一个选项,多个直接换行',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_push_data`
+--
+
+DROP TABLE IF EXISTS `churen_push_data`;
+CREATE TABLE `churen_push_data` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `info_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属推送位',
+  `type` int(11) NOT NULL DEFAULT '-1' COMMENT '功能类型',
+  `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '关联数据',
+  `data` text COMMENT '自定义数据项',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_push_func`
+--
+
+DROP TABLE IF EXISTS `churen_push_func`;
+CREATE TABLE `churen_push_func` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '功能名称',
+  `api` varchar(200) DEFAULT NULL COMMENT '功能接口-可以直接输入HTTP接口地址,也可以使用DEVER接口,如果接口返回一条数据,就为单条,如果是多条,就是列表',
+  `col` text COMMENT '关联字段',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '功能类型'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_push_info`
+--
+
+DROP TABLE IF EXISTS `churen_push_info`;
+CREATE TABLE `churen_push_info` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '推送位ID',
+  `name` varchar(60) DEFAULT NULL COMMENT '推送位标题',
+  `key` varchar(60) DEFAULT NULL COMMENT '推送位标识',
+  `num` int(11) NOT NULL DEFAULT '10' COMMENT '数据显示条数-为空或小于0则取默认值10,只对前台有效,当有分页时,则为每页显示的条数',
+  `func` varchar(300) DEFAULT NULL COMMENT '功能类型',
+  `col` varchar(300) DEFAULT NULL COMMENT '启用的字段',
+  `col_pic` varchar(500) DEFAULT NULL COMMENT '图片尺寸提醒-请直接输入提醒的文字即可,如100*100,如果有多个图片字段,请用换行隔开',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_score_action`
+--
+
+DROP TABLE IF EXISTS `churen_score_action`;
+CREATE TABLE `churen_score_action` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(80) DEFAULT NULL COMMENT '行为名称',
+  `key` varchar(80) DEFAULT NULL COMMENT '行为标识-用于程序中统计积分总数',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_score_action_log`
+--
+
+DROP TABLE IF EXISTS `churen_score_action_log`;
+CREATE TABLE `churen_score_action_log` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `parent_uid` int(11) NOT NULL DEFAULT '0' COMMENT '上级用户',
+  `action_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属行为',
+  `type` varchar(32) DEFAULT NULL COMMENT '所属数据源',
+  `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '数据源ID',
+  `score_type` int(11) NOT NULL DEFAULT '1' COMMENT '是否增加积分',
+  `cron_type` int(11) NOT NULL DEFAULT '3' COMMENT '状态',
+  `score` varchar(30) DEFAULT NULL COMMENT '增加积分数',
+  `num` varchar(30) DEFAULT NULL COMMENT '增加的积分将乘以该数量',
+  `mscore` varchar(30) DEFAULT NULL COMMENT '手动增加积分数',
+  `callback` varchar(800) DEFAULT NULL COMMENT '行为回调方法',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_score_action_log_finish`
+--
+
+DROP TABLE IF EXISTS `churen_score_action_log_finish`;
+CREATE TABLE `churen_score_action_log_finish` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `log_id` int(11) NOT NULL DEFAULT '0' COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `parent_uid` int(11) NOT NULL DEFAULT '0' COMMENT '上级用户',
+  `action_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属行为',
+  `type` varchar(32) DEFAULT NULL COMMENT '所属数据源',
+  `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '数据源ID',
+  `score_type` int(11) NOT NULL DEFAULT '1' COMMENT '是否增加积分',
+  `cron_type` int(11) NOT NULL DEFAULT '3' COMMENT '状态',
+  `score` varchar(30) DEFAULT NULL COMMENT '增加积分数',
+  `num` varchar(30) DEFAULT NULL COMMENT '增加的积分将乘以该数量',
+  `mscore` varchar(30) DEFAULT NULL COMMENT '手动增加积分数',
+  `callback` varchar(800) DEFAULT NULL COMMENT '行为回调方法',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_score_config`
+--
+
+DROP TABLE IF EXISTS `churen_score_config`;
+CREATE TABLE `churen_score_config` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '积分名称',
+  `type` int(11) NOT NULL DEFAULT '2' COMMENT '是否主积分-只能有一个主积分,主积分将作为用户主要积分显示在用户信息中',
+  `callback_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '回调类型',
+  `callback_value` varchar(800) DEFAULT NULL COMMENT '回调地址-积分增减成功后,将自动调取回调,会把USER_LOG表的数据传过去,如果代码中设置了回调,该回调将失效',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_score_level`
+--
+
+DROP TABLE IF EXISTS `churen_score_level`;
+CREATE TABLE `churen_score_level` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '等级名称',
+  `level_type_id` int(11) NOT NULL DEFAULT '1' COMMENT '等级类别',
+  `score` text COMMENT '积分设置',
+  `level` int(11) NOT NULL DEFAULT '1' COMMENT '等级数字-请直接输入等级数字,每次升级按照该数字进行匹配,如果设置为1,则为LV1,不允许重复',
+  `total_type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否限制当前级别的总数-如果限制,请填写限制的总数,升级的用户数不能超过该数量',
+  `total` int(11) NOT NULL DEFAULT '0' COMMENT '限制总数',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_score_level_type`
+--
+
+DROP TABLE IF EXISTS `churen_score_level_type`;
+CREATE TABLE `churen_score_level_type` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '类别名称',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '升级方式',
+  `score` int(11) NOT NULL DEFAULT '1' COMMENT '是否清空积分-选择清空将清空等级里设置的积分',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,排在前面的类别将优先显示,如设置了VIP等级和普通用户等级,VIP等级的排序比普通用户等级大,VIP等级将优先显示',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_score_rule`
+--
+
+DROP TABLE IF EXISTS `churen_score_rule`;
+CREATE TABLE `churen_score_rule` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `config_id` int(11) NOT NULL DEFAULT '1' COMMENT '积分名称',
+  `action_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属行为',
+  `num` varchar(80) DEFAULT NULL COMMENT '增加积分数-如果为负数,则是减少积分',
+  `upper` int(11) NOT NULL DEFAULT '1' COMMENT '是否有上限限制',
+  `upper_type` int(11) NOT NULL DEFAULT '1' COMMENT '上限限制类型',
+  `upper_time` int(11) NOT NULL DEFAULT '12' COMMENT '间隔小时数',
+  `upper_limit` int(11) NOT NULL DEFAULT '2' COMMENT '上限限制次数-小于1则不限制',
+  `rebate_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '返利设置',
+  `rebate_config_id` int(11) NOT NULL DEFAULT '-1' COMMENT '返利积分名称',
+  `rebate_value` varchar(500) DEFAULT NULL COMMENT '返利积分数-如果是百分比类型,这里如果填的是10,那就是当前获得积分数的10%。直接填写数字就是当前用户的上级(1级)返利,支持多层层级设置,1:20,2:30 就是1级202级30,同时也支持0级',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_score_user`
+--
+
+DROP TABLE IF EXISTS `churen_score_user`;
+CREATE TABLE `churen_score_user` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `config_id` int(11) NOT NULL DEFAULT '1' COMMENT '积分名称',
+  `score` varchar(80) DEFAULT NULL COMMENT '可用数量',
+  `no_score` varchar(80) DEFAULT NULL COMMENT '冻结数量',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_apply`
+--
+
+DROP TABLE IF EXISTS `churen_shop_apply`;
+CREATE TABLE `churen_shop_apply` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(100) DEFAULT NULL COMMENT '申请人姓名',
+  `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '申请人电话',
+  `area` varchar(500) DEFAULT NULL COMMENT '所在城市',
+  `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
+  `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `lng` varchar(100) DEFAULT NULL COMMENT '经度',
+  `lat` varchar(100) DEFAULT NULL COMMENT '纬度',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '申请状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_buy_order`
+--
+
+DROP TABLE IF EXISTS `churen_shop_buy_order`;
+CREATE TABLE `churen_shop_buy_order` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `type` int(11) NOT NULL DEFAULT '0' COMMENT '采购人类型',
+  `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '采购人',
+  `source_type` int(11) NOT NULL DEFAULT '0' COMMENT '供货商类型',
+  `source_id` int(11) NOT NULL DEFAULT '0' COMMENT '供货商',
+  `name` varchar(800) DEFAULT NULL COMMENT '订单名称',
+  `parent_order_id` varchar(100) DEFAULT NULL COMMENT '原订单编号',
+  `order_num` varchar(100) DEFAULT NULL COMMENT '订单编号',
+  `price` varchar(50) DEFAULT NULL COMMENT '购买价格-销售价',
+  `p_price` varchar(50) DEFAULT NULL COMMENT '购买价格-出厂价,给厂家看的',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
+  `refund_cash` varchar(50) DEFAULT NULL COMMENT '退款合计金额-采购价格',
+  `refund_p_cash` varchar(50) DEFAULT NULL COMMENT '退款合计金额-出厂价格',
+  `refund_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '申请退款类型',
+  `info` varchar(300) DEFAULT NULL COMMENT '订单备注',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `fdate` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
+  `operdate` int(11) NOT NULL DEFAULT '0' COMMENT '审核时间',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '下单时间',
+  `audit` tinyint(1) NOT NULL DEFAULT '2' COMMENT '审核状态',
+  `audit_desc` varchar(500) NOT NULL COMMENT '未通过原因'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_buy_order_goods`
+--
+
+DROP TABLE IF EXISTS `churen_shop_buy_order_goods`;
+CREATE TABLE `churen_shop_buy_order_goods` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
+  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
+  `sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
+  `extend` text COMMENT '扩展信息',
+  `price` varchar(50) DEFAULT NULL COMMENT '单价',
+  `p_price` varchar(50) DEFAULT NULL COMMENT '单价',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_buy_order_ps`
+--
+
+DROP TABLE IF EXISTS `churen_shop_buy_order_ps`;
+CREATE TABLE `churen_shop_buy_order_ps` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
+  `service_id` int(11) NOT NULL DEFAULT '-1' COMMENT '配送服务商',
+  `order_num` varchar(800) DEFAULT NULL COMMENT '快递单号-多个用换行隔开',
+  `phy` varchar(200) DEFAULT NULL COMMENT '配货员',
+  `dby` varchar(200) DEFAULT NULL COMMENT '打包员',
+  `zl` varchar(200) DEFAULT NULL COMMENT '包裹重量-单位:克',
+  `tj` varchar(200) DEFAULT NULL COMMENT '包裹体积-单位:立方厘米',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '包裹数量',
+  `price` varchar(50) DEFAULT NULL COMMENT '快递费用',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `ydate` int(11) NOT NULL DEFAULT '0' COMMENT '签收时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发货时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_buy_order_refund`
+--
+
+DROP TABLE IF EXISTS `churen_shop_buy_order_refund`;
+CREATE TABLE `churen_shop_buy_order_refund` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
+  `order_goods_id` varchar(100) NOT NULL DEFAULT '-1' COMMENT '订单商品表ID',
+  `cash` varchar(300) DEFAULT NULL COMMENT '退款金额-采购价',
+  `p_cash` varchar(300) DEFAULT NULL COMMENT '退款金额-出厂价',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '退款数量',
+  `desc` varchar(300) DEFAULT NULL COMMENT '退款描述',
+  `pic` varchar(8000) DEFAULT NULL COMMENT '退款图片',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `process` int(11) NOT NULL DEFAULT '1' COMMENT '审核进度',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_buy_stat`
+--
+
+DROP TABLE IF EXISTS `churen_shop_buy_stat`;
+CREATE TABLE `churen_shop_buy_stat` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `day` int(11) NOT NULL DEFAULT '0' COMMENT '日期',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `area` varchar(500) DEFAULT NULL COMMENT '选择地区',
+  `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
+  `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `county` int(11) NOT NULL DEFAULT '0' COMMENT '县区',
+  `town` int(11) NOT NULL DEFAULT '0' COMMENT '街道',
+  `order` varchar(100) DEFAULT NULL COMMENT '订货单数',
+  `goods` varchar(100) DEFAULT NULL COMMENT '商品数量',
+  `cash` varchar(100) DEFAULT NULL COMMENT '采购金额',
+  `p_cash` varchar(100) DEFAULT NULL COMMENT '出厂价',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_buy_stat_month`
+--
+
+DROP TABLE IF EXISTS `churen_shop_buy_stat_month`;
+CREATE TABLE `churen_shop_buy_stat_month` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `month` int(11) NOT NULL DEFAULT '0' COMMENT '账单时间',
+  `order` varchar(100) DEFAULT NULL COMMENT '订单量',
+  `goods` varchar(100) DEFAULT NULL COMMENT '商品数',
+  `cash` varchar(100) DEFAULT NULL COMMENT '销售额',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '是否已对账',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_cart`
+--
+
+DROP TABLE IF EXISTS `churen_shop_cart`;
+CREATE TABLE `churen_shop_cart` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
+  `sku_id` int(11) NOT NULL DEFAULT '0' COMMENT 'SKU',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_coupon`
+--
+
+DROP TABLE IF EXISTS `churen_shop_coupon`;
+CREATE TABLE `churen_shop_coupon` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `coupon` varchar(500) DEFAULT NULL COMMENT '优惠券',
+  `method` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券属性',
+  `coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券',
+  `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `day` int(11) NOT NULL DEFAULT '7' COMMENT '有效期-请选择天数',
+  `num` int(11) NOT NULL DEFAULT '10' COMMENT '发放数量-数量为0则不限量',
+  `act_num` int(11) NOT NULL DEFAULT '0' COMMENT '已用数量',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_coupon_act`
+--
+
+DROP TABLE IF EXISTS `churen_shop_coupon_act`;
+CREATE TABLE `churen_shop_coupon_act` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `act_id` int(11) NOT NULL DEFAULT '0' COMMENT '活动名称',
+  `shop_coupon_id` varchar(500) DEFAULT NULL COMMENT '勾选参与活动可发放的优惠券',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_coupon_act_1`
+--
+
+DROP TABLE IF EXISTS `churen_shop_coupon_act_1`;
+CREATE TABLE `churen_shop_coupon_act_1` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `shop_coupon_id` varchar(500) DEFAULT NULL COMMENT '勾选参与活动可发放的优惠券',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_factory`
+--
+
+DROP TABLE IF EXISTS `churen_shop_factory`;
+CREATE TABLE `churen_shop_factory` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
+  `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_factory_stat_month`
+--
+
+DROP TABLE IF EXISTS `churen_shop_factory_stat_month`;
+CREATE TABLE `churen_shop_factory_stat_month` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `factory_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属工厂',
+  `month` int(11) NOT NULL DEFAULT '0' COMMENT '账单时间',
+  `order` varchar(100) DEFAULT NULL COMMENT '订单量',
+  `goods` varchar(100) DEFAULT NULL COMMENT '商品数',
+  `cash` varchar(100) DEFAULT NULL COMMENT '销售额',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '是否已对账',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_feedback`
+--
+
+DROP TABLE IF EXISTS `churen_shop_feedback`;
+CREATE TABLE `churen_shop_feedback` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `mobile` varchar(300) DEFAULT NULL COMMENT '下单手机号',
+  `truename` varchar(300) DEFAULT NULL COMMENT '联系人姓名',
+  `content` varchar(800) DEFAULT NULL COMMENT '反馈内容',
+  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否回复',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_focus`
+--
+
+DROP TABLE IF EXISTS `churen_shop_focus`;
+CREATE TABLE `churen_shop_focus` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '名称',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
+  `link` varchar(400) DEFAULT NULL COMMENT '链接',
+  `location` int(11) NOT NULL DEFAULT '1' COMMENT '显示位置',
+  `pic` varchar(150) DEFAULT NULL COMMENT '图片',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_goods`
+--
+
+DROP TABLE IF EXISTS `churen_shop_goods`;
+CREATE TABLE `churen_shop_goods` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
+  `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
+  `price_type` int(11) NOT NULL DEFAULT '1' COMMENT '价格类型',
+  `add_num` int(11) NOT NULL DEFAULT '0' COMMENT '新增库存-输入小于0的数字,则为减少库存',
+  `total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总库存',
+  `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
+  `status` tinyint(1) NOT NULL DEFAULT '2' COMMENT '状态'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_goods_sku`
+--
+
+DROP TABLE IF EXISTS `churen_shop_goods_sku`;
+CREATE TABLE `churen_shop_goods_sku` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
+  `sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
+  `add_num` int(11) NOT NULL DEFAULT '0' COMMENT '新增库存-输入小于0的数字,则为减少库存',
+  `total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总库存',
+  `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_info`
+--
+
+DROP TABLE IF EXISTS `churen_shop_info`;
+CREATE TABLE `churen_shop_info` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `name` varchar(32) DEFAULT NULL COMMENT '门店名称',
+  `desc` varchar(800) DEFAULT NULL COMMENT '门店介绍',
+  `truename` varchar(100) DEFAULT NULL COMMENT '联系人姓名',
+  `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '联系人电话',
+  `area` varchar(500) DEFAULT NULL COMMENT '所在城市',
+  `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
+  `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `map` varchar(300) DEFAULT NULL COMMENT '地理位置',
+  `lng` varchar(100) DEFAULT NULL COMMENT '经度',
+  `lat` varchar(100) DEFAULT NULL COMMENT '纬度',
+  `address` varchar(1000) DEFAULT NULL COMMENT '门店地址',
+  `goods` text COMMENT '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置库存',
+  `factory` text COMMENT '分配工厂-请先选择地区,再选择工厂',
+  `store` text COMMENT '分配仓库-请先选择地区,再选择仓库',
+  `open` int(11) NOT NULL DEFAULT '1' COMMENT '营业状态',
+  `method` int(11) NOT NULL DEFAULT '3' COMMENT '门店能力',
+  `worktime` varchar(100) DEFAULT NULL COMMENT '营业时间-如10:00~22:00,24小时制',
+  `gotime` varchar(100) DEFAULT NULL COMMENT '外送时间-如10:00~22:00,24小时制',
+  `license` varchar(150) DEFAULT NULL COMMENT '营业执照',
+  `license_number` varchar(200) DEFAULT NULL COMMENT '营业执照号码',
+  `company_name` varchar(200) DEFAULT NULL COMMENT '公司名称',
+  `idcard_front` varchar(150) DEFAULT NULL COMMENT '身份证正面',
+  `idcard_back` varchar(150) DEFAULT NULL COMMENT '身份证背面',
+  `jy_license` varchar(150) DEFAULT NULL COMMENT '经营许可证',
+  `food_license` varchar(150) DEFAULT NULL COMMENT '食品许可证',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '门店类型-自营为平台店,当没有找到加盟店时,将自动获取平台店',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '合作状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `county` int(11) NOT NULL COMMENT '县区',
+  `town` int(11) NOT NULL COMMENT '街道',
+  `coupon_city` int(11) NOT NULL DEFAULT '2' COMMENT '优惠券是否同城可用',
+  `act` varchar(500) NOT NULL COMMENT '参与活动',
+  `pdesc` text NOT NULL COMMENT '配送与自提说明',
+  `coord_address` varchar(1000) NOT NULL COMMENT '门店坐标地址',
+  `stat_type` int(11) NOT NULL DEFAULT '1' COMMENT '对账周期-可以选择按月还是按周生成对账单',
+  `stat_day` int(11) NOT NULL DEFAULT '10' COMMENT '对账单生成日期-这里直接填写对账周期内的第几天即可,如按月对账,这里填写10,就是本月10号生成上一个月的对账单,如按周对账,这里填写2,就是本周二生成上一周的对账单',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `ps_cash` varchar(50) NOT NULL DEFAULT '0' COMMENT '配送费',
+  `invoice` int(11) NOT NULL DEFAULT '1' COMMENT '是否可以开发票',
+  `sid` int(11) NOT NULL COMMENT '店铺编号-一般为5位数字,不能重复',
+  `mid` varchar(50) NOT NULL COMMENT '分账商户号'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_member`
+--
+
+DROP TABLE IF EXISTS `churen_shop_member`;
+CREATE TABLE `churen_shop_member` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `role_id` varchar(60) DEFAULT NULL COMMENT '角色',
+  `name` varchar(32) DEFAULT NULL COMMENT '员工姓名',
+  `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '员工手机号',
+  `avatar` varchar(150) DEFAULT NULL COMMENT '头像',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_out_order`
+--
+
+DROP TABLE IF EXISTS `churen_shop_out_order`;
+CREATE TABLE `churen_shop_out_order` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `type` int(11) NOT NULL DEFAULT '0' COMMENT '拥有人类型',
+  `type_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `name` varchar(800) DEFAULT NULL COMMENT '订单名称',
+  `order_num` varchar(100) DEFAULT NULL COMMENT '订单编号',
+  `price` varchar(50) DEFAULT NULL COMMENT '价格',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '数量',
+  `info` varchar(300) DEFAULT NULL COMMENT '订单备注',
+  `member_id` int(11) NOT NULL DEFAULT '0' COMMENT '操作人',
+  `out_type` int(11) NOT NULL DEFAULT '1' COMMENT '出库类型',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '出库时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_out_order_goods`
+--
+
+DROP TABLE IF EXISTS `churen_shop_out_order_goods`;
+CREATE TABLE `churen_shop_out_order_goods` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
+  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
+  `sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
+  `price` varchar(50) DEFAULT NULL COMMENT '单价',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_out_type`
+--
+
+DROP TABLE IF EXISTS `churen_shop_out_type`;
+CREATE TABLE `churen_shop_out_type` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(200) DEFAULT NULL COMMENT '出库类型名称',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_print`
+--
+
+DROP TABLE IF EXISTS `churen_shop_print`;
+CREATE TABLE `churen_shop_print` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `name` varchar(200) DEFAULT NULL COMMENT '设备名称',
+  `number` varchar(100) DEFAULT NULL COMMENT '打印机编号',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '打印机状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '购买时间',
+  `key` varchar(100) NOT NULL COMMENT '打印机识别码',
+  `phonenum` varchar(100) NOT NULL COMMENT '流量卡号码'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_sell_order`
+--
+
+DROP TABLE IF EXISTS `churen_shop_sell_order`;
+CREATE TABLE `churen_shop_sell_order` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '购买人名称',
+  `mobile` varchar(300) DEFAULT NULL COMMENT '下单手机号',
+  `address_id` int(11) NOT NULL DEFAULT '0' COMMENT '送货地址',
+  `invoice_id` int(11) NOT NULL DEFAULT '0' COMMENT '发票信息',
+  `name` varchar(800) DEFAULT NULL COMMENT '订单名称',
+  `order_num` varchar(100) DEFAULT NULL COMMENT '订单号',
+  `price` varchar(50) DEFAULT NULL COMMENT '支付金额',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
+  `refund_cash` varchar(50) DEFAULT NULL COMMENT '退款合计金额',
+  `refund_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '申请退款类型',
+  `kou_cash` varchar(50) DEFAULT NULL COMMENT '抹零金额',
+  `card_code_id` int(11) NOT NULL DEFAULT '0' COMMENT '礼品卡ID',
+  `coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店的优惠券ID',
+  `user_coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户的优惠券ID',
+  `coupon_cash` varchar(300) DEFAULT NULL COMMENT '优惠金额',
+  `method` int(11) NOT NULL DEFAULT '1' COMMENT '配送类型',
+  `code` varchar(100) DEFAULT NULL COMMENT '自提码或者核销码',
+  `pay_method` int(11) NOT NULL DEFAULT '1' COMMENT '支付类型',
+  `pay_type` int(11) NOT NULL DEFAULT '1' COMMENT '支付方式',
+  `info` varchar(300) DEFAULT NULL COMMENT '订单备注',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `fdate` int(11) NOT NULL DEFAULT '0' COMMENT '完成时间',
+  `operdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '下单时间',
+  `ps_cash` varchar(50) NOT NULL DEFAULT '0' COMMENT '配送费',
+  `notice` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否发送通知',
+  `oprice` varchar(50) NOT NULL DEFAULT '0' COMMENT '原价',
+  `withdraw` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否提现',
+  `card_code_card` varchar(800) NOT NULL COMMENT '礼品卡卡号',
+  `card_code_cash` varchar(50) NOT NULL DEFAULT '0' COMMENT '礼品卡抵扣金额',
+  `wallet_cash` varchar(50) NOT NULL DEFAULT '0' COMMENT '钱包抵扣金额'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_sell_order_goods`
+--
+
+DROP TABLE IF EXISTS `churen_shop_sell_order_goods`;
+CREATE TABLE `churen_shop_sell_order_goods` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
+  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
+  `sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
+  `price` varchar(50) DEFAULT NULL COMMENT '单价',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
+  `coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店的优惠券ID',
+  `user_coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户的优惠券ID',
+  `coupon_cash` varchar(300) DEFAULT NULL COMMENT '优惠金额',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_sell_order_ps`
+--
+
+DROP TABLE IF EXISTS `churen_shop_sell_order_ps`;
+CREATE TABLE `churen_shop_sell_order_ps` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
+  `service_id` int(11) NOT NULL DEFAULT '-1' COMMENT '配送服务商',
+  `order_num` varchar(800) DEFAULT NULL COMMENT '快递单号-多个用换行隔开',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '包裹数量',
+  `price` varchar(50) DEFAULT NULL COMMENT '快递费用',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `qu_date` int(11) NOT NULL DEFAULT '0' COMMENT '取件时间',
+  `qs_date` int(11) NOT NULL DEFAULT '0' COMMENT '签收时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_sell_order_refund`
+--
+
+DROP TABLE IF EXISTS `churen_shop_sell_order_refund`;
+CREATE TABLE `churen_shop_sell_order_refund` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `order_id` int(11) NOT NULL DEFAULT '0' COMMENT '订单表ID',
+  `order_goods_id` varchar(300) DEFAULT NULL COMMENT '订单商品表ID',
+  `cash` varchar(300) DEFAULT NULL COMMENT '退款金额',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '退款数量',
+  `desc` varchar(300) DEFAULT NULL COMMENT '退款描述',
+  `pic` varchar(8000) DEFAULT NULL COMMENT '退款图片',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '类型',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `process` int(11) NOT NULL DEFAULT '1' COMMENT '审核进度',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_sell_stat`
+--
+
+DROP TABLE IF EXISTS `churen_shop_sell_stat`;
+CREATE TABLE `churen_shop_sell_stat` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `day` int(11) NOT NULL DEFAULT '0' COMMENT '日期',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `area` varchar(500) DEFAULT NULL COMMENT '选择地区',
+  `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
+  `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `county` int(11) NOT NULL DEFAULT '0' COMMENT '县区',
+  `town` int(11) NOT NULL DEFAULT '0' COMMENT '街道',
+  `order` varchar(100) DEFAULT NULL COMMENT '订单量',
+  `goods` varchar(100) DEFAULT NULL COMMENT '商品数量',
+  `cash` varchar(100) DEFAULT NULL COMMENT '营业额',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_sell_stat_month`
+--
+
+DROP TABLE IF EXISTS `churen_shop_sell_stat_month`;
+CREATE TABLE `churen_shop_sell_stat_month` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `month` int(11) NOT NULL DEFAULT '0' COMMENT '账单时间',
+  `order` varchar(100) DEFAULT NULL COMMENT '订单量',
+  `goods` varchar(100) DEFAULT NULL COMMENT '商品数',
+  `cash` varchar(100) DEFAULT NULL COMMENT '销售额',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '是否已对账',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_service`
+--
+
+DROP TABLE IF EXISTS `churen_shop_service`;
+CREATE TABLE `churen_shop_service` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(200) DEFAULT NULL COMMENT '配送服务商名称',
+  `number` varchar(100) DEFAULT NULL COMMENT '服务商代号-用来根据接口获取物流信息',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '服务商类型',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_shop_cart`
+--
+
+DROP TABLE IF EXISTS `churen_shop_shop_cart`;
+CREATE TABLE `churen_shop_shop_cart` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
+  `sku_id` int(11) NOT NULL DEFAULT '0' COMMENT 'SKU',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_store`
+--
+
+DROP TABLE IF EXISTS `churen_shop_store`;
+CREATE TABLE `churen_shop_store` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
+  `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_store_stat_month`
+--
+
+DROP TABLE IF EXISTS `churen_shop_store_stat_month`;
+CREATE TABLE `churen_shop_store_stat_month` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
+  `month` int(11) NOT NULL DEFAULT '0' COMMENT '账单时间',
+  `order` varchar(100) DEFAULT NULL COMMENT '订单量',
+  `goods` varchar(100) DEFAULT NULL COMMENT '商品数',
+  `cash` varchar(100) DEFAULT NULL COMMENT '销售额',
+  `type` int(11) NOT NULL DEFAULT '1' COMMENT '是否已对账',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '生成时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_user_coupon`
+--
+
+DROP TABLE IF EXISTS `churen_shop_user_coupon`;
+CREATE TABLE `churen_shop_user_coupon` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券ID',
+  `shop_coupon_id` int(11) NOT NULL DEFAULT '0' COMMENT '优惠券ID',
+  `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `cash` varchar(100) DEFAULT NULL COMMENT '抵扣金额',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '可用状态',
+  `edate` int(11) NOT NULL DEFAULT '0' COMMENT '失效时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '领取时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_shop_user_share`
+--
+
+DROP TABLE IF EXISTS `churen_shop_user_share`;
+CREATE TABLE `churen_shop_user_share` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `act_id` int(11) NOT NULL DEFAULT '0' COMMENT '活动ID',
+  `path` varchar(100) DEFAULT NULL COMMENT '分享路径',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '分享状态',
+  `edate` int(11) NOT NULL DEFAULT '0' COMMENT '失效时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '领取时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_sms_code`
+--
+
+DROP TABLE IF EXISTS `churen_sms_code`;
+CREATE TABLE `churen_sms_code` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
+  `code` varchar(32) DEFAULT NULL COMMENT '验证码',
+  `day` int(11) NOT NULL DEFAULT '0' COMMENT '申请天',
+  `result` text COMMENT '返回记录',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_sms_config`
+--
+
+DROP TABLE IF EXISTS `churen_sms_config`;
+CREATE TABLE `churen_sms_config` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '配置名称',
+  `key` varchar(32) DEFAULT NULL COMMENT '短信标识-发送短信时,使用该标识来读取短信基本配置',
+  `sign` varchar(60) DEFAULT NULL COMMENT '短信签名',
+  `sdk` varchar(32) DEFAULT NULL COMMENT '是否调取SDK',
+  `appid` varchar(50) DEFAULT NULL COMMENT 'APPID',
+  `appsecret` varchar(80) DEFAULT NULL COMMENT 'APPSECRET',
+  `url` varchar(300) DEFAULT NULL COMMENT '接口地址',
+  `method` varchar(32) DEFAULT NULL COMMENT '请求方式',
+  `json` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否进行JSON编码',
+  `header` varchar(500) DEFAULT NULL COMMENT 'HEADER信息-如AUTHORIZATION:APPCODE E7183E44BA8E4CCAA3D690510923D3FA',
+  `body` varchar(500) DEFAULT NULL COMMENT 'BODY信息-如PARAM={CODE}&PHONE={MOBILE}&SIGN={SIGN}&SKIN={SKIN}',
+  `code_timeout` int(11) NOT NULL DEFAULT '600' COMMENT '验证码有效期-以秒为单位',
+  `code_length` int(11) NOT NULL DEFAULT '4' COMMENT '验证码长度',
+  `code_type` int(11) NOT NULL DEFAULT '4' COMMENT '验证码类型',
+  `code_total` int(11) NOT NULL DEFAULT '10' COMMENT '一天之内的最大发送次数',
+  `code_time` int(11) NOT NULL DEFAULT '60' COMMENT '不允许多久之内重复发送-以秒为单位',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_sms_info`
+--
+
+DROP TABLE IF EXISTS `churen_sms_info`;
+CREATE TABLE `churen_sms_info` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
+  `param` text COMMENT '请求记录',
+  `result` text COMMENT '发送记录',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '申请时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_sms_skin`
+--
+
+DROP TABLE IF EXISTS `churen_sms_skin`;
+CREATE TABLE `churen_sms_skin` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `config_id` int(11) NOT NULL DEFAULT '1' COMMENT '所属配置',
+  `name` varchar(32) DEFAULT NULL COMMENT '模板名称',
+  `key` varchar(32) DEFAULT NULL COMMENT '模板标识',
+  `content` varchar(800) DEFAULT NULL COMMENT '模板内容-如果短信接口已提供模板,请在此输入模板ID',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_store_goods`
+--
+
+DROP TABLE IF EXISTS `churen_store_goods`;
+CREATE TABLE `churen_store_goods` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
+  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
+  `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类ID',
+  `price_type` int(11) NOT NULL DEFAULT '1' COMMENT '价格类型',
+  `add_num` int(11) NOT NULL DEFAULT '0' COMMENT '新增库存-输入小于0的数字,则为减少库存',
+  `total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总库存',
+  `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
+  `status` tinyint(1) NOT NULL DEFAULT '2' COMMENT '状态'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_store_goods_sku`
+--
+
+DROP TABLE IF EXISTS `churen_store_goods_sku`;
+CREATE TABLE `churen_store_goods_sku` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
+  `goods_id` int(11) NOT NULL DEFAULT '0' COMMENT '商品名称',
+  `sku_id` int(11) NOT NULL DEFAULT '-1' COMMENT 'SKU_ID',
+  `add_num` int(11) NOT NULL DEFAULT '0' COMMENT '新增库存-输入小于0的数字,则为减少库存',
+  `total_num` int(11) NOT NULL DEFAULT '0' COMMENT '总库存',
+  `sell_num` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前,相当于置顶',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_store_info`
+--
+
+DROP TABLE IF EXISTS `churen_store_info`;
+CREATE TABLE `churen_store_info` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `name` varchar(32) DEFAULT NULL COMMENT '仓库名称',
+  `truename` varchar(100) DEFAULT NULL COMMENT '联系人姓名',
+  `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '联系人电话',
+  `area` varchar(500) DEFAULT NULL COMMENT '所在城市',
+  `province` int(11) NOT NULL DEFAULT '0' COMMENT '省份',
+  `city` int(11) NOT NULL DEFAULT '0' COMMENT '城市',
+  `map` varchar(300) DEFAULT NULL COMMENT '地理位置',
+  `lng` varchar(100) DEFAULT NULL COMMENT '经度',
+  `lat` varchar(100) DEFAULT NULL COMMENT '纬度',
+  `address` varchar(1000) DEFAULT NULL COMMENT '仓库地址',
+  `goods` text COMMENT '请先选择分类-选择分类,之后选择分类下的商品,点击商品名称可以设置库存',
+  `license` varchar(150) DEFAULT NULL COMMENT '营业执照',
+  `license_number` varchar(200) DEFAULT NULL COMMENT '营业执照号码',
+  `company_name` varchar(200) DEFAULT NULL COMMENT '公司名称',
+  `idcard_front` varchar(150) DEFAULT NULL COMMENT '身份证正面',
+  `idcard_back` varchar(150) DEFAULT NULL COMMENT '身份证背面',
+  `kh_license` varchar(150) DEFAULT NULL COMMENT '开户许可证',
+  `status` int(11) NOT NULL DEFAULT '1' COMMENT '认证状态',
+  `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `stat_type` int(11) NOT NULL DEFAULT '1' COMMENT '对账周期-可以选择按月还是按周生成对账单',
+  `stat_day` int(11) NOT NULL DEFAULT '10' COMMENT '对账单生成日期-这里直接填写对账周期内的第几天即可,如按月对账,这里填写10,就是本月10号生成上一个月的对账单,如按周对账,这里填写2,就是本周二生成上一周的对账单'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_store_member`
+--
+
+DROP TABLE IF EXISTS `churen_store_member`;
+CREATE TABLE `churen_store_member` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户名',
+  `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
+  `role_id` varchar(60) DEFAULT NULL COMMENT '角色',
+  `name` varchar(32) DEFAULT NULL COMMENT '员工姓名',
+  `mobile` bigint(11) NOT NULL DEFAULT '0' COMMENT '员工手机号',
+  `avatar` varchar(150) DEFAULT NULL COMMENT '头像',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_store_order`
+--
+
+DROP TABLE IF EXISTS `churen_store_order`;
+CREATE TABLE `churen_store_order` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `store_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属仓库',
+  `shop_id` int(11) NOT NULL DEFAULT '0' COMMENT '所属门店',
+  `shop_order_id` int(11) NOT NULL DEFAULT '0' COMMENT '门店订单ID',
+  `name` varchar(80) DEFAULT NULL COMMENT '订单名称',
+  `order_num` varchar(100) DEFAULT NULL COMMENT '订单编号',
+  `price` varchar(50) DEFAULT NULL COMMENT '购买价格',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '购买数量',
+  `pay_id` varchar(100) DEFAULT NULL COMMENT '支付订单ID',
+  `pay_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '支付状态',
+  `pay_price` varchar(50) DEFAULT NULL COMMENT '付款金额',
+  `info` varchar(300) DEFAULT NULL COMMENT '订单备注',
+  `note` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否发送状态提醒-1未发送,2已发送',
+  `notice` int(11) NOT NULL DEFAULT '0' COMMENT '模板消息提醒次数',
+  `tk_pic` varchar(150) DEFAULT NULL COMMENT '退款截图',
+  `tk_time` int(11) NOT NULL DEFAULT '0' COMMENT '退款时间',
+  `tk_admin` int(11) NOT NULL DEFAULT '1' COMMENT '退款审核人',
+  `tk_desc` varchar(300) DEFAULT NULL COMMENT '退款备注',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '下单时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_token_log`
+--
+
+DROP TABLE IF EXISTS `churen_token_log`;
+CREATE TABLE `churen_token_log` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(100) DEFAULT NULL COMMENT '请求名称',
+  `url` varchar(255) DEFAULT NULL COMMENT '请求地址',
+  `param` text COMMENT '请求信息',
+  `result` longtext COMMENT '微信返回信息',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_token_project`
+--
+
+DROP TABLE IF EXISTS `churen_token_project`;
+CREATE TABLE `churen_token_project` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(60) DEFAULT NULL COMMENT '项目名称',
+  `type` tinyint(11) NOT NULL DEFAULT '1' COMMENT '项目类型',
+  `appid` varchar(150) DEFAULT NULL COMMENT 'APPID-一般为微信APPID、阿里的APPKEY',
+  `secret` varchar(150) DEFAULT NULL COMMENT 'SECRET',
+  `token` varchar(150) DEFAULT NULL COMMENT '通信TOKEN(注意不是ACCESS_TOKEN)',
+  `key` varchar(150) DEFAULT NULL COMMENT '消息加解密密钥',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_token_token`
+--
+
+DROP TABLE IF EXISTS `churen_token_token`;
+CREATE TABLE `churen_token_token` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
+  `value` varchar(255) DEFAULT NULL COMMENT 'TOKEN标识',
+  `expires` int(11) NOT NULL DEFAULT '0' COMMENT '过期时间',
+  `mdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_upload_cate`
+--
+
+DROP TABLE IF EXISTS `churen_upload_cate`;
+CREATE TABLE `churen_upload_cate` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(300) DEFAULT NULL COMMENT '分类名称',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_upload_file`
+--
+
+DROP TABLE IF EXISTS `churen_upload_file`;
+CREATE TABLE `churen_upload_file` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `name` varchar(32) DEFAULT NULL COMMENT '文件名',
+  `source_name` varchar(200) DEFAULT NULL COMMENT '原文件名',
+  `upload` int(11) NOT NULL DEFAULT '1' COMMENT '所属资源配置',
+  `cate` int(11) NOT NULL DEFAULT '1' COMMENT '所属分类',
+  `key` varchar(32) DEFAULT NULL COMMENT 'KEY',
+  `search` varchar(100) DEFAULT NULL COMMENT 'SEARCH',
+  `value` varchar(800) DEFAULT NULL COMMENT '附加值',
+  `ext` varchar(24) DEFAULT NULL COMMENT '后缀名',
+  `file` varchar(150) DEFAULT NULL COMMENT '访问路径',
+  `yunfile` varchar(150) DEFAULT NULL COMMENT '云端访问路径',
+  `pic` varchar(150) DEFAULT NULL COMMENT '封面图-一般为视频截图',
+  `pic_num` int(11) NOT NULL DEFAULT '0' COMMENT '视频截图的秒数',
+  `width` int(11) NOT NULL DEFAULT '0' COMMENT '宽度',
+  `height` int(11) NOT NULL DEFAULT '0' COMMENT '高度',
+  `size` varchar(100) NOT NULL COMMENT '文件大小',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '上传时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_upload_pic_water`
+--
+
+DROP TABLE IF EXISTS `churen_upload_pic_water`;
+CREATE TABLE `churen_upload_pic_water` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
+  `name` varchar(24) DEFAULT NULL COMMENT '配置名',
+  `water` varchar(150) DEFAULT NULL COMMENT '水印图',
+  `water_position` int(1) NOT NULL DEFAULT '1' COMMENT '水印图位置',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '水印类型'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_upload_upload`
+--
+
+DROP TABLE IF EXISTS `churen_upload_upload`;
+CREATE TABLE `churen_upload_upload` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
+  `name` varchar(24) DEFAULT NULL COMMENT '配置名',
+  `width` int(11) NOT NULL DEFAULT '0' COMMENT '限制宽度-仅限图片类资源',
+  `height` int(11) NOT NULL DEFAULT '0' COMMENT '限制高度-仅限图片类资源',
+  `size` int(11) NOT NULL DEFAULT '2' COMMENT '限制大小(单位:M)',
+  `type` varchar(800) DEFAULT NULL COMMENT '限制文件后缀类型-多个用逗号隔开',
+  `alter` varchar(255) DEFAULT NULL COMMENT '默认的后续操作-T=1&C=1&W=1,其中T代表缩略图,1代表对应的ID,C代表裁剪图,W代表水印图,仅限图片类资源',
+  `cover` int(1) NOT NULL DEFAULT '1' COMMENT '是否覆盖-将根据上传时的文件名进行文件覆盖操作',
+  `save_type` int(1) NOT NULL DEFAULT '1' COMMENT '存储位置',
+  `yun` int(1) NOT NULL DEFAULT '1' COMMENT '选择云端',
+  `bucket` varchar(800) DEFAULT NULL COMMENT 'BUCKET名称',
+  `vod_convert` int(1) NOT NULL DEFAULT '1' COMMENT '是否进行视频转码',
+  `pipeline` varchar(800) DEFAULT NULL COMMENT '队列名称-多个用逗号隔开,将随机使用队列',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间',
+  `setwh` int(1) NOT NULL DEFAULT '1' COMMENT '宽高限制-仅限图片类资源'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_upload_yun`
+--
+
+DROP TABLE IF EXISTS `churen_upload_yun`;
+CREATE TABLE `churen_upload_yun` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
+  `name` varchar(24) DEFAULT NULL COMMENT '配置名',
+  `type` int(1) NOT NULL DEFAULT '2' COMMENT '存储类别-OSS建议申请STS保证安全性,参考HTTPS://HELP.ALIYUN.COM/DOCUMENT_DETAIL/100624.HTML',
+  `host` varchar(800) DEFAULT NULL COMMENT '域名',
+  `appkey` varchar(100) DEFAULT NULL COMMENT 'APPKEY',
+  `appsecret` varchar(200) DEFAULT NULL COMMENT 'APPSECRET',
+  `region_id` varchar(200) DEFAULT NULL COMMENT '区域ID-OSS直接填REGIONID即可,如BEIJING,七牛可填写Z1',
+  `role_arn` varchar(200) DEFAULT NULL COMMENT '权限策略ARN-OSS需要填写,如未填写,系统默认使用非STS形式上传至OSS,不能保证安全性',
+  `token` varchar(800) DEFAULT NULL COMMENT 'TOKEN',
+  `token_endtime` int(11) NOT NULL DEFAULT '0' COMMENT 'TOKEN失效时间',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_wechat_applet_msg`
+--
+
+DROP TABLE IF EXISTS `churen_wechat_applet_msg`;
+CREATE TABLE `churen_wechat_applet_msg` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目ID',
+  `name` varchar(120) DEFAULT NULL COMMENT '模板标题',
+  `key` varchar(20) DEFAULT NULL COMMENT '模板消息KEY-通过KEY值搜索数据',
+  `template_id` varchar(120) DEFAULT NULL COMMENT '模板ID',
+  `content` varchar(600) DEFAULT NULL COMMENT '模板内容',
+  `example` varchar(600) DEFAULT NULL COMMENT '模板样例',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_wechat_applet_msg_log`
+--
+
+DROP TABLE IF EXISTS `churen_wechat_applet_msg_log`;
+CREATE TABLE `churen_wechat_applet_msg_log` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
+  `msg_id` int(11) NOT NULL DEFAULT '0' COMMENT '消息ID',
+  `touser` varchar(120) DEFAULT NULL COMMENT '接收者',
+  `path` varchar(200) DEFAULT NULL COMMENT '跳转页面',
+  `data` text COMMENT '模板内容',
+  `form_id` varchar(300) DEFAULT NULL COMMENT '表单或者支付ID',
+  `emphasis_keyword` varchar(200) DEFAULT NULL COMMENT '模板需要放大的关键词',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '发送次数',
+  `result` text COMMENT '微信返回信息',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_wechat_applet_msg_send`
+--
+
+DROP TABLE IF EXISTS `churen_wechat_applet_msg_send`;
+CREATE TABLE `churen_wechat_applet_msg_send` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `project_id` varchar(300) DEFAULT NULL COMMENT '选择项目',
+  `key` varchar(20) DEFAULT NULL COMMENT '模板消息KEY',
+  `page` varchar(200) DEFAULT NULL COMMENT '页面路径',
+  `content` text COMMENT '模板内容',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_wechat_applet_subscribe`
+--
+
+DROP TABLE IF EXISTS `churen_wechat_applet_subscribe`;
+CREATE TABLE `churen_wechat_applet_subscribe` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目ID',
+  `name` varchar(120) DEFAULT NULL COMMENT '模板标题',
+  `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '订阅类型',
+  `key` varchar(20) DEFAULT NULL COMMENT '模板消息KEY-通过KEY值搜索数据',
+  `template_id` varchar(120) DEFAULT NULL COMMENT '模板ID',
+  `content` varchar(600) DEFAULT NULL COMMENT '模板内容',
+  `example` varchar(600) DEFAULT NULL COMMENT '模板样例',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_wechat_applet_subscribe_log`
+--
+
+DROP TABLE IF EXISTS `churen_wechat_applet_subscribe_log`;
+CREATE TABLE `churen_wechat_applet_subscribe_log` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
+  `subscribe_id` int(11) NOT NULL DEFAULT '0' COMMENT '消息ID',
+  `touser` varchar(120) DEFAULT NULL COMMENT '接收者',
+  `path` varchar(200) DEFAULT NULL COMMENT '跳转页面',
+  `data` text COMMENT '模板内容',
+  `miniprogram_state` varchar(300) DEFAULT NULL COMMENT '跳转小程序类型',
+  `num` int(11) NOT NULL DEFAULT '0' COMMENT '发送次数',
+  `result` text COMMENT '微信返回信息',
+  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_wechat_applet_subscribe_send`
+--
+
+DROP TABLE IF EXISTS `churen_wechat_applet_subscribe_send`;
+CREATE TABLE `churen_wechat_applet_subscribe_send` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `project_id` varchar(300) DEFAULT NULL COMMENT '选择项目',
+  `key` varchar(20) DEFAULT NULL COMMENT '消息KEY',
+  `page` varchar(200) DEFAULT NULL COMMENT '页面路径',
+  `miniprogram_state` varchar(300) DEFAULT NULL COMMENT '跳转小程序类型',
+  `content` text COMMENT '消息内容',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+-- --------------------------------------------------------
+
+--
+-- 表的结构 `churen_wechat_applet_total_base`
+--
+
+DROP TABLE IF EXISTS `churen_wechat_applet_total_base`;
+CREATE TABLE `churen_wechat_applet_total_base` (
+  `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
+  `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
+  `day` varchar(60) DEFAULT NULL COMMENT '统计日期',
+  `daynum` int(11) NOT NULL DEFAULT '0' COMMENT '统计日期',
+  `session_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '打开次数',
+  `visit_pv` int(11) NOT NULL DEFAULT '0' COMMENT '访问次数',
+  `visit_uv` int(11) NOT NULL DEFAULT '0' COMMENT '访问人数',
+  `visit_uv_new` int(11) NOT NULL DEFAULT '0' COMMENT '新用户数',
+  `stay_time_uv` varchar(30) DEFAULT NULL COMMENT '人均停留时长',
+  `stay_time_session` varchar(30) DEFAULT NULL COMMENT '次均停留时长',
+  `visit_depth` varchar(30) DEFAULT NULL COMMENT '平均访问深度',
+  `visit_total` int(11) NOT NULL DEFAULT '0' COMMENT '累计用户数',
+  `share_pv` int(11) NOT NULL DEFAULT '0' COMMENT '转发次数',
+  `share_uv` int(11) NOT NULL DEFAULT '0' COMMENT '转发人数',
+  `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
+  `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
+
+--
+-- 转储表的索引
+--
+
+--
+-- 表的索引 `churen_act_info`
+--
+ALTER TABLE `churen_act_info`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_area_city`
+--
+ALTER TABLE `churen_area_city`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_area_county`
+--
+ALTER TABLE `churen_area_county`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_area_province`
+--
+ALTER TABLE `churen_area_province`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_area_town`
+--
+ALTER TABLE `churen_area_town`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_area_village`
+--
+ALTER TABLE `churen_area_village`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_attr_cate`
+--
+ALTER TABLE `churen_attr_cate`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_attr_info`
+--
+ALTER TABLE `churen_attr_info`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_attr_search`
+--
+ALTER TABLE `churen_attr_search`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_attr_value`
+--
+ALTER TABLE `churen_attr_value`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_card_add`
+--
+ALTER TABLE `churen_card_add`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_card_code`
+--
+ALTER TABLE `churen_card_code`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `card` (`card`),
+  ADD KEY `uid` (`uid`),
+  ADD KEY `dh_uid` (`dh_uid`);
+
+--
+-- 表的索引 `churen_card_info`
+--
+ALTER TABLE `churen_card_info`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_card_order`
+--
+ALTER TABLE `churen_card_order`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_card_order_card`
+--
+ALTER TABLE `churen_card_order_card`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_card_order_ps`
+--
+ALTER TABLE `churen_card_order_ps`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_card_type`
+--
+ALTER TABLE `churen_card_type`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_cash_factory`
+--
+ALTER TABLE `churen_cash_factory`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_cash_order`
+--
+ALTER TABLE `churen_cash_order`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_cash_shop`
+--
+ALTER TABLE `churen_cash_shop`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_cash_store`
+--
+ALTER TABLE `churen_cash_store`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_category_attr`
+--
+ALTER TABLE `churen_category_attr`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_category_info`
+--
+ALTER TABLE `churen_category_info`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_category_project`
+--
+ALTER TABLE `churen_category_project`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_content_feature`
+--
+ALTER TABLE `churen_content_feature`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_content_news`
+--
+ALTER TABLE `churen_content_news`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_factory_goods`
+--
+ALTER TABLE `churen_factory_goods`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_factory_goods_sku`
+--
+ALTER TABLE `churen_factory_goods_sku`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_factory_info`
+--
+ALTER TABLE `churen_factory_info`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_factory_member`
+--
+ALTER TABLE `churen_factory_member`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_factory_order`
+--
+ALTER TABLE `churen_factory_order`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_goods_add_card`
+--
+ALTER TABLE `churen_goods_add_card`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_goods_card`
+--
+ALTER TABLE `churen_goods_card`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_goods_card_code`
+--
+ALTER TABLE `churen_goods_card_code`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `card` (`card`,`pwd`);
+
+--
+-- 表的索引 `churen_goods_column`
+--
+ALTER TABLE `churen_goods_column`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_goods_coupon`
+--
+ALTER TABLE `churen_goods_coupon`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_goods_info`
+--
+ALTER TABLE `churen_goods_info`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `search` (`category`(191),`top_category_id`,`second_category_id`,`category_id`,`mode`,`area`);
+
+--
+-- 表的索引 `churen_goods_info_category`
+--
+ALTER TABLE `churen_goods_info_category`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_goods_info_column`
+--
+ALTER TABLE `churen_goods_info_column`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_goods_info_sku`
+--
+ALTER TABLE `churen_goods_info_sku`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_goods_info_tag`
+--
+ALTER TABLE `churen_goods_info_tag`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_goods_tag`
+--
+ALTER TABLE `churen_goods_tag`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_main_cate`
+--
+ALTER TABLE `churen_main_cate`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_main_config`
+--
+ALTER TABLE `churen_main_config`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_main_factory_config`
+--
+ALTER TABLE `churen_main_factory_config`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_main_group`
+--
+ALTER TABLE `churen_main_group`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_main_help`
+--
+ALTER TABLE `churen_main_help`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_main_info`
+--
+ALTER TABLE `churen_main_info`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `i1` (`cate_id`,`reorder`);
+
+--
+-- 表的索引 `churen_main_manage_config`
+--
+ALTER TABLE `churen_main_manage_config`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_main_page`
+--
+ALTER TABLE `churen_main_page`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_main_sell_config`
+--
+ALTER TABLE `churen_main_sell_config`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_main_source`
+--
+ALTER TABLE `churen_main_source`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_main_zhaopin`
+--
+ALTER TABLE `churen_main_zhaopin`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_admin`
+--
+ALTER TABLE `churen_manage_admin`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_admin_role`
+--
+ALTER TABLE `churen_manage_admin_role`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_api`
+--
+ALTER TABLE `churen_manage_api`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_api_request`
+--
+ALTER TABLE `churen_manage_api_request`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_api_response`
+--
+ALTER TABLE `churen_manage_api_response`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_auth`
+--
+ALTER TABLE `churen_manage_auth`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_config`
+--
+ALTER TABLE `churen_manage_config`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_cron`
+--
+ALTER TABLE `churen_manage_cron`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_group`
+--
+ALTER TABLE `churen_manage_group`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_help`
+--
+ALTER TABLE `churen_manage_help`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_log`
+--
+ALTER TABLE `churen_manage_log`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_menu`
+--
+ALTER TABLE `churen_manage_menu`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_menu_group`
+--
+ALTER TABLE `churen_manage_menu_group`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_notice`
+--
+ALTER TABLE `churen_manage_notice`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_opt`
+--
+ALTER TABLE `churen_manage_opt`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_role`
+--
+ALTER TABLE `churen_manage_role`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_manage_top`
+--
+ALTER TABLE `churen_manage_top`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_message_inbox`
+--
+ALTER TABLE `churen_message_inbox`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_message_outbox`
+--
+ALTER TABLE `churen_message_outbox`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_message_project`
+--
+ALTER TABLE `churen_message_project`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_message_push`
+--
+ALTER TABLE `churen_message_push`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_message_type`
+--
+ALTER TABLE `churen_message_type`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_passport_address`
+--
+ALTER TABLE `churen_passport_address`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_passport_avatar`
+--
+ALTER TABLE `churen_passport_avatar`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_passport_code`
+--
+ALTER TABLE `churen_passport_code`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_passport_invoice`
+--
+ALTER TABLE `churen_passport_invoice`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_passport_profession`
+--
+ALTER TABLE `churen_passport_profession`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_passport_stat`
+--
+ALTER TABLE `churen_passport_stat`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_passport_system`
+--
+ALTER TABLE `churen_passport_system`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_passport_user`
+--
+ALTER TABLE `churen_passport_user`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `mobile` (`mobile`);
+
+--
+-- 表的索引 `churen_passport_user_system`
+--
+ALTER TABLE `churen_passport_user_system`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_passport_wechat`
+--
+ALTER TABLE `churen_passport_wechat`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `openid` (`uid`,`openid`,`unionid`);
+
+--
+-- 表的索引 `churen_pay_account`
+--
+ALTER TABLE `churen_pay_account`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_pay_channel`
+--
+ALTER TABLE `churen_pay_channel`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_pay_order`
+--
+ALTER TABLE `churen_pay_order`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_pay_project`
+--
+ALTER TABLE `churen_pay_project`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_poster_template`
+--
+ALTER TABLE `churen_poster_template`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_push_col`
+--
+ALTER TABLE `churen_push_col`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_push_data`
+--
+ALTER TABLE `churen_push_data`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_push_func`
+--
+ALTER TABLE `churen_push_func`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_push_info`
+--
+ALTER TABLE `churen_push_info`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_score_action`
+--
+ALTER TABLE `churen_score_action`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_score_action_log`
+--
+ALTER TABLE `churen_score_action_log`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `search` (`uid`,`action_id`,`cron_type`);
+
+--
+-- 表的索引 `churen_score_action_log_finish`
+--
+ALTER TABLE `churen_score_action_log_finish`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `search` (`uid`,`action_id`,`cron_type`);
+
+--
+-- 表的索引 `churen_score_config`
+--
+ALTER TABLE `churen_score_config`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_score_level`
+--
+ALTER TABLE `churen_score_level`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `i1` (`level`);
+
+--
+-- 表的索引 `churen_score_level_type`
+--
+ALTER TABLE `churen_score_level_type`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `i1` (`reorder`);
+
+--
+-- 表的索引 `churen_score_rule`
+--
+ALTER TABLE `churen_score_rule`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_score_user`
+--
+ALTER TABLE `churen_score_user`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `search` (`uid`,`config_id`);
+
+--
+-- 表的索引 `churen_shop_apply`
+--
+ALTER TABLE `churen_shop_apply`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_buy_order`
+--
+ALTER TABLE `churen_shop_buy_order`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_buy_order_goods`
+--
+ALTER TABLE `churen_shop_buy_order_goods`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_buy_order_ps`
+--
+ALTER TABLE `churen_shop_buy_order_ps`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_buy_order_refund`
+--
+ALTER TABLE `churen_shop_buy_order_refund`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_buy_stat`
+--
+ALTER TABLE `churen_shop_buy_stat`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_buy_stat_month`
+--
+ALTER TABLE `churen_shop_buy_stat_month`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_cart`
+--
+ALTER TABLE `churen_shop_cart`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `i1` (`uid`,`shop_id`,`goods_id`);
+
+--
+-- 表的索引 `churen_shop_coupon`
+--
+ALTER TABLE `churen_shop_coupon`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_coupon_act`
+--
+ALTER TABLE `churen_shop_coupon_act`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_coupon_act_1`
+--
+ALTER TABLE `churen_shop_coupon_act_1`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_factory`
+--
+ALTER TABLE `churen_shop_factory`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `i1` (`shop_id`);
+
+--
+-- 表的索引 `churen_shop_factory_stat_month`
+--
+ALTER TABLE `churen_shop_factory_stat_month`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_feedback`
+--
+ALTER TABLE `churen_shop_feedback`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_focus`
+--
+ALTER TABLE `churen_shop_focus`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_goods`
+--
+ALTER TABLE `churen_shop_goods`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_goods_sku`
+--
+ALTER TABLE `churen_shop_goods_sku`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_info`
+--
+ALTER TABLE `churen_shop_info`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_member`
+--
+ALTER TABLE `churen_shop_member`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_out_order`
+--
+ALTER TABLE `churen_shop_out_order`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_out_order_goods`
+--
+ALTER TABLE `churen_shop_out_order_goods`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_out_type`
+--
+ALTER TABLE `churen_shop_out_type`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_print`
+--
+ALTER TABLE `churen_shop_print`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_sell_order`
+--
+ALTER TABLE `churen_shop_sell_order`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_sell_order_goods`
+--
+ALTER TABLE `churen_shop_sell_order_goods`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_sell_order_ps`
+--
+ALTER TABLE `churen_shop_sell_order_ps`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_sell_order_refund`
+--
+ALTER TABLE `churen_shop_sell_order_refund`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_sell_stat`
+--
+ALTER TABLE `churen_shop_sell_stat`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_sell_stat_month`
+--
+ALTER TABLE `churen_shop_sell_stat_month`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_service`
+--
+ALTER TABLE `churen_shop_service`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_shop_cart`
+--
+ALTER TABLE `churen_shop_shop_cart`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_store`
+--
+ALTER TABLE `churen_shop_store`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `i1` (`shop_id`);
+
+--
+-- 表的索引 `churen_shop_store_stat_month`
+--
+ALTER TABLE `churen_shop_store_stat_month`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_user_coupon`
+--
+ALTER TABLE `churen_shop_user_coupon`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_shop_user_share`
+--
+ALTER TABLE `churen_shop_user_share`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_sms_code`
+--
+ALTER TABLE `churen_sms_code`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_sms_config`
+--
+ALTER TABLE `churen_sms_config`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_sms_info`
+--
+ALTER TABLE `churen_sms_info`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_sms_skin`
+--
+ALTER TABLE `churen_sms_skin`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_store_goods`
+--
+ALTER TABLE `churen_store_goods`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_store_goods_sku`
+--
+ALTER TABLE `churen_store_goods_sku`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_store_info`
+--
+ALTER TABLE `churen_store_info`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_store_member`
+--
+ALTER TABLE `churen_store_member`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_store_order`
+--
+ALTER TABLE `churen_store_order`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_token_log`
+--
+ALTER TABLE `churen_token_log`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_token_project`
+--
+ALTER TABLE `churen_token_project`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_token_token`
+--
+ALTER TABLE `churen_token_token`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_upload_cate`
+--
+ALTER TABLE `churen_upload_cate`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_upload_file`
+--
+ALTER TABLE `churen_upload_file`
+  ADD PRIMARY KEY (`id`),
+  ADD KEY `search` (`key`,`cate`,`search`),
+  ADD KEY `name` (`name`,`upload`);
+
+--
+-- 表的索引 `churen_upload_pic_water`
+--
+ALTER TABLE `churen_upload_pic_water`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_upload_upload`
+--
+ALTER TABLE `churen_upload_upload`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_upload_yun`
+--
+ALTER TABLE `churen_upload_yun`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_wechat_applet_msg`
+--
+ALTER TABLE `churen_wechat_applet_msg`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_wechat_applet_msg_log`
+--
+ALTER TABLE `churen_wechat_applet_msg_log`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_wechat_applet_msg_send`
+--
+ALTER TABLE `churen_wechat_applet_msg_send`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_wechat_applet_subscribe`
+--
+ALTER TABLE `churen_wechat_applet_subscribe`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_wechat_applet_subscribe_log`
+--
+ALTER TABLE `churen_wechat_applet_subscribe_log`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_wechat_applet_subscribe_send`
+--
+ALTER TABLE `churen_wechat_applet_subscribe_send`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 表的索引 `churen_wechat_applet_total_base`
+--
+ALTER TABLE `churen_wechat_applet_total_base`
+  ADD PRIMARY KEY (`id`);
+
+--
+-- 在导出的表使用AUTO_INCREMENT
+--
+
+--
+-- 使用表AUTO_INCREMENT `churen_act_info`
+--
+ALTER TABLE `churen_act_info`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_area_city`
+--
+ALTER TABLE `churen_area_city`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_area_county`
+--
+ALTER TABLE `churen_area_county`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_area_province`
+--
+ALTER TABLE `churen_area_province`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_area_town`
+--
+ALTER TABLE `churen_area_town`
+  MODIFY `id` bigint(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_area_village`
+--
+ALTER TABLE `churen_area_village`
+  MODIFY `id` bigint(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_attr_cate`
+--
+ALTER TABLE `churen_attr_cate`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_attr_info`
+--
+ALTER TABLE `churen_attr_info`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_attr_search`
+--
+ALTER TABLE `churen_attr_search`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_attr_value`
+--
+ALTER TABLE `churen_attr_value`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_card_add`
+--
+ALTER TABLE `churen_card_add`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '系统ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_card_code`
+--
+ALTER TABLE `churen_card_code`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_card_info`
+--
+ALTER TABLE `churen_card_info`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_card_order`
+--
+ALTER TABLE `churen_card_order`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_card_order_card`
+--
+ALTER TABLE `churen_card_order_card`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_card_order_ps`
+--
+ALTER TABLE `churen_card_order_ps`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_card_type`
+--
+ALTER TABLE `churen_card_type`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_cash_factory`
+--
+ALTER TABLE `churen_cash_factory`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_cash_order`
+--
+ALTER TABLE `churen_cash_order`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_cash_shop`
+--
+ALTER TABLE `churen_cash_shop`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_cash_store`
+--
+ALTER TABLE `churen_cash_store`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_category_attr`
+--
+ALTER TABLE `churen_category_attr`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_category_info`
+--
+ALTER TABLE `churen_category_info`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_category_project`
+--
+ALTER TABLE `churen_category_project`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_content_feature`
+--
+ALTER TABLE `churen_content_feature`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_content_news`
+--
+ALTER TABLE `churen_content_news`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_factory_goods`
+--
+ALTER TABLE `churen_factory_goods`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_factory_goods_sku`
+--
+ALTER TABLE `churen_factory_goods_sku`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_factory_info`
+--
+ALTER TABLE `churen_factory_info`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_factory_member`
+--
+ALTER TABLE `churen_factory_member`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_factory_order`
+--
+ALTER TABLE `churen_factory_order`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_goods_add_card`
+--
+ALTER TABLE `churen_goods_add_card`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '系统ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_goods_card`
+--
+ALTER TABLE `churen_goods_card`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_goods_card_code`
+--
+ALTER TABLE `churen_goods_card_code`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_goods_column`
+--
+ALTER TABLE `churen_goods_column`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_goods_coupon`
+--
+ALTER TABLE `churen_goods_coupon`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_goods_info`
+--
+ALTER TABLE `churen_goods_info`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_goods_info_category`
+--
+ALTER TABLE `churen_goods_info_category`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_goods_info_column`
+--
+ALTER TABLE `churen_goods_info_column`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_goods_info_sku`
+--
+ALTER TABLE `churen_goods_info_sku`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_goods_info_tag`
+--
+ALTER TABLE `churen_goods_info_tag`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_goods_tag`
+--
+ALTER TABLE `churen_goods_tag`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_main_cate`
+--
+ALTER TABLE `churen_main_cate`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_main_config`
+--
+ALTER TABLE `churen_main_config`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '平台ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_main_factory_config`
+--
+ALTER TABLE `churen_main_factory_config`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '平台ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_main_group`
+--
+ALTER TABLE `churen_main_group`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_main_help`
+--
+ALTER TABLE `churen_main_help`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_main_info`
+--
+ALTER TABLE `churen_main_info`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_main_manage_config`
+--
+ALTER TABLE `churen_main_manage_config`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '平台ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_main_page`
+--
+ALTER TABLE `churen_main_page`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_main_sell_config`
+--
+ALTER TABLE `churen_main_sell_config`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '平台ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_main_source`
+--
+ALTER TABLE `churen_main_source`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_main_zhaopin`
+--
+ALTER TABLE `churen_main_zhaopin`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_admin`
+--
+ALTER TABLE `churen_manage_admin`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '管理员ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_admin_role`
+--
+ALTER TABLE `churen_manage_admin_role`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_api`
+--
+ALTER TABLE `churen_manage_api`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_api_request`
+--
+ALTER TABLE `churen_manage_api_request`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_api_response`
+--
+ALTER TABLE `churen_manage_api_response`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_auth`
+--
+ALTER TABLE `churen_manage_auth`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_config`
+--
+ALTER TABLE `churen_manage_config`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_cron`
+--
+ALTER TABLE `churen_manage_cron`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_group`
+--
+ALTER TABLE `churen_manage_group`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '组ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_help`
+--
+ALTER TABLE `churen_manage_help`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_log`
+--
+ALTER TABLE `churen_manage_log`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_menu`
+--
+ALTER TABLE `churen_manage_menu`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '菜单ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_menu_group`
+--
+ALTER TABLE `churen_manage_menu_group`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '分组ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_notice`
+--
+ALTER TABLE `churen_manage_notice`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '公告ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_opt`
+--
+ALTER TABLE `churen_manage_opt`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_role`
+--
+ALTER TABLE `churen_manage_role`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '角色ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_manage_top`
+--
+ALTER TABLE `churen_manage_top`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_message_inbox`
+--
+ALTER TABLE `churen_message_inbox`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_message_outbox`
+--
+ALTER TABLE `churen_message_outbox`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_message_project`
+--
+ALTER TABLE `churen_message_project`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_message_push`
+--
+ALTER TABLE `churen_message_push`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_message_type`
+--
+ALTER TABLE `churen_message_type`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_passport_address`
+--
+ALTER TABLE `churen_passport_address`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_passport_avatar`
+--
+ALTER TABLE `churen_passport_avatar`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_passport_code`
+--
+ALTER TABLE `churen_passport_code`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_passport_invoice`
+--
+ALTER TABLE `churen_passport_invoice`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_passport_profession`
+--
+ALTER TABLE `churen_passport_profession`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_passport_stat`
+--
+ALTER TABLE `churen_passport_stat`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_passport_system`
+--
+ALTER TABLE `churen_passport_system`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_passport_user`
+--
+ALTER TABLE `churen_passport_user`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_passport_user_system`
+--
+ALTER TABLE `churen_passport_user_system`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_passport_wechat`
+--
+ALTER TABLE `churen_passport_wechat`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_pay_account`
+--
+ALTER TABLE `churen_pay_account`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_pay_channel`
+--
+ALTER TABLE `churen_pay_channel`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_pay_order`
+--
+ALTER TABLE `churen_pay_order`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_pay_project`
+--
+ALTER TABLE `churen_pay_project`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_poster_template`
+--
+ALTER TABLE `churen_poster_template`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_push_col`
+--
+ALTER TABLE `churen_push_col`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_push_data`
+--
+ALTER TABLE `churen_push_data`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_push_func`
+--
+ALTER TABLE `churen_push_func`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_push_info`
+--
+ALTER TABLE `churen_push_info`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '推送位ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_score_action`
+--
+ALTER TABLE `churen_score_action`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_score_action_log`
+--
+ALTER TABLE `churen_score_action_log`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_score_action_log_finish`
+--
+ALTER TABLE `churen_score_action_log_finish`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_score_config`
+--
+ALTER TABLE `churen_score_config`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_score_level`
+--
+ALTER TABLE `churen_score_level`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_score_level_type`
+--
+ALTER TABLE `churen_score_level_type`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_score_rule`
+--
+ALTER TABLE `churen_score_rule`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_score_user`
+--
+ALTER TABLE `churen_score_user`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_apply`
+--
+ALTER TABLE `churen_shop_apply`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_buy_order`
+--
+ALTER TABLE `churen_shop_buy_order`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_buy_order_goods`
+--
+ALTER TABLE `churen_shop_buy_order_goods`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_buy_order_ps`
+--
+ALTER TABLE `churen_shop_buy_order_ps`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_buy_order_refund`
+--
+ALTER TABLE `churen_shop_buy_order_refund`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_buy_stat`
+--
+ALTER TABLE `churen_shop_buy_stat`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_buy_stat_month`
+--
+ALTER TABLE `churen_shop_buy_stat_month`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_cart`
+--
+ALTER TABLE `churen_shop_cart`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_coupon`
+--
+ALTER TABLE `churen_shop_coupon`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_coupon_act`
+--
+ALTER TABLE `churen_shop_coupon_act`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_coupon_act_1`
+--
+ALTER TABLE `churen_shop_coupon_act_1`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_factory`
+--
+ALTER TABLE `churen_shop_factory`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_factory_stat_month`
+--
+ALTER TABLE `churen_shop_factory_stat_month`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_feedback`
+--
+ALTER TABLE `churen_shop_feedback`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_focus`
+--
+ALTER TABLE `churen_shop_focus`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_goods`
+--
+ALTER TABLE `churen_shop_goods`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_goods_sku`
+--
+ALTER TABLE `churen_shop_goods_sku`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_info`
+--
+ALTER TABLE `churen_shop_info`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_member`
+--
+ALTER TABLE `churen_shop_member`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_out_order`
+--
+ALTER TABLE `churen_shop_out_order`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_out_order_goods`
+--
+ALTER TABLE `churen_shop_out_order_goods`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_out_type`
+--
+ALTER TABLE `churen_shop_out_type`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_print`
+--
+ALTER TABLE `churen_shop_print`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_sell_order`
+--
+ALTER TABLE `churen_shop_sell_order`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_sell_order_goods`
+--
+ALTER TABLE `churen_shop_sell_order_goods`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_sell_order_ps`
+--
+ALTER TABLE `churen_shop_sell_order_ps`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_sell_order_refund`
+--
+ALTER TABLE `churen_shop_sell_order_refund`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_sell_stat`
+--
+ALTER TABLE `churen_shop_sell_stat`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_sell_stat_month`
+--
+ALTER TABLE `churen_shop_sell_stat_month`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_service`
+--
+ALTER TABLE `churen_shop_service`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_shop_cart`
+--
+ALTER TABLE `churen_shop_shop_cart`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_store`
+--
+ALTER TABLE `churen_shop_store`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_store_stat_month`
+--
+ALTER TABLE `churen_shop_store_stat_month`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_user_coupon`
+--
+ALTER TABLE `churen_shop_user_coupon`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_shop_user_share`
+--
+ALTER TABLE `churen_shop_user_share`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_sms_code`
+--
+ALTER TABLE `churen_sms_code`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_sms_config`
+--
+ALTER TABLE `churen_sms_config`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_sms_info`
+--
+ALTER TABLE `churen_sms_info`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_sms_skin`
+--
+ALTER TABLE `churen_sms_skin`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_store_goods`
+--
+ALTER TABLE `churen_store_goods`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_store_goods_sku`
+--
+ALTER TABLE `churen_store_goods_sku`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_store_info`
+--
+ALTER TABLE `churen_store_info`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_store_member`
+--
+ALTER TABLE `churen_store_member`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_store_order`
+--
+ALTER TABLE `churen_store_order`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_token_log`
+--
+ALTER TABLE `churen_token_log`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_token_project`
+--
+ALTER TABLE `churen_token_project`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_token_token`
+--
+ALTER TABLE `churen_token_token`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_upload_cate`
+--
+ALTER TABLE `churen_upload_cate`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_upload_file`
+--
+ALTER TABLE `churen_upload_file`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_upload_pic_water`
+--
+ALTER TABLE `churen_upload_pic_water`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_upload_upload`
+--
+ALTER TABLE `churen_upload_upload`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_upload_yun`
+--
+ALTER TABLE `churen_upload_yun`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_wechat_applet_msg`
+--
+ALTER TABLE `churen_wechat_applet_msg`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_wechat_applet_msg_log`
+--
+ALTER TABLE `churen_wechat_applet_msg_log`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_wechat_applet_msg_send`
+--
+ALTER TABLE `churen_wechat_applet_msg_send`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_wechat_applet_subscribe`
+--
+ALTER TABLE `churen_wechat_applet_subscribe`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_wechat_applet_subscribe_log`
+--
+ALTER TABLE `churen_wechat_applet_subscribe_log`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_wechat_applet_subscribe_send`
+--
+ALTER TABLE `churen_wechat_applet_subscribe_send`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
+
+--
+-- 使用表AUTO_INCREMENT `churen_wechat_applet_total_base`
+--
+ALTER TABLE `churen_wechat_applet_total_base`
+  MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
 COMMIT;
 
 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

+ 9 - 21
config/env/localhost/default.php

@@ -1,11 +1,5 @@
 <?php
 
-# 验证dc是否存在,一般在share目录下
-$dc = array();
-$dc_file = '/share/dc/config.php';
-if (is_file($dc_file)) {
-    $dc = include($dc_file);
-}
 # 基本配置
 $config['base'] = array
 (
@@ -21,15 +15,9 @@ $config['base'] = array
     'apiConfig' => false,
 );
 
-if (isset($dc['data'])) {
-    $config['base']['data'] = $dc['data'];
-}
+$create = false;
 
-$create = -1;
-if (isset($dc['mysql']['create'])) {
-    $create = -1;
-}
-$ip = isset($dc['host']) ? $dc['host'] : '192.168.33.10';
+$ip = '192.168.33.10';
 
 $local = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $ip;
 
@@ -49,13 +37,13 @@ $config['database'] = array
 		'type' => 'pdo',
 		'host' => array
 		(
-			'read' => isset($dc['mysql']) ? $dc['mysql']['host'] : 'web-mysql:3306',
-			'update' => isset($dc['mysql']) ? $dc['mysql']['host'] : 'web-mysql:3306',
-            'create' => isset($dc['mysql']) ? $dc['mysql']['host_create'] : 'web-mysql:3306',
+			'read' => 'web-mysql:3306',
+			'update' => 'web-mysql:3306',
+            'create' => 'web-mysql:3306',
 		),
 		'database' => 'churen',
-		'username' => isset($dc['mysql']) ? $dc['mysql']['username'] : 'root',
-		'password' => isset($dc['mysql']) ? $dc['mysql']['password'] : '123456',
+		'username' => 'root',
+		'password' => '123456',
 		'charset' => 'utf8mb4',
 	),
 );
@@ -115,7 +103,7 @@ $config['cache'] = array
 
 $config['debug'] = array
 (
-	'log' => false
+	'log' => array('type' => 'file')
 );
 
 /*
@@ -133,7 +121,7 @@ $uploadcdn = $host . 'churen/data/';
 $config['host'] = array
 (
     'upload'=> $upload . 'upload/?save',
-    'uploadRes'     => isset($dc['res']) && $dc['res'] ? $dc['res'] : $uploadcdn . 'upload/',
+    'uploadRes'     => $uploadcdn . 'upload/',
 
     # 定义接口
     'project' => array

+ 0 - 28
data/key/pkcs8_rsa_private_key.pem

@@ -1,28 +0,0 @@
------BEGIN PRIVATE KEY-----
-MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCnOk629YZyWZ3D
-79oTMDHDJOBTCcL2qNASEv6p8xYMEhsVHw3iroZDx9Epn1nK+bS+gWGCkfjhjqyH
-ZTusX0dA67Dam7LC9TySTkkBTGnHKRsftCpb+KMfWAEbcKT8in/kjhyj6r0r8KNB
-GYh3mdInx9+dqIA6iA1nJys/4CAQRTy8vV422dqBXFPcQLUsSHTAHB5xP1OTKLS0
-wPSwx4hSX086ueHtgAMm1TMZ/5NM2uoroOGhP2YTc+XDSmrEpKTj+0c3HVkhd/gj
-9R5hIQCt5cdZV8tD+J/UL0dFiEQYHnuaaqfQl2axJEPsNft5Ts6Nr5Gq1Z9D8of7
-Z+eOr25LAgMBAAECggEAEAJS+szyfAv8QH+7vs6EVQw4tXpfwcFTegd7fcWZvLoX
-AaShbawLin2cloF81SOmm/5C2X8j9mP0PFoCpnPQnHRzz9nL+UIE9HSuJIOuNLTI
-tfZHf9qDs0J3iKr2AH850yWPtFmKlqRI3LiXCewd5FUMIUm6TOAteEyVpV3NdAEl
-N0RE/cbwD2/DG69s4TereQcJNZ6lVh3cp0RDmsM+tiH8fB9UHa1ZKd7tn826u61b
-mosDpqIkZwOgXsfjUWK3zPDVAOfAk2+xR5H884UUPTOiDv5mkxfc6InAUoFl9M2/
-Mm0feaSqc3rYknCkk2pNMxZ19LOIWVA0noasKqFrEQKBgQDVJMnPQYALu2Gj+Xo7
-XcFiWfKNLXltIKuvbdddRjdJruzomI0UBSQgWrntfMQR1mGo6aBCUlCYYomaZFVK
-yGdIfseiFF2OKyeMBsrU7SoAF7e0/cgi4oKs9j6rXNv4+liQUyJZSvf7UlgpTyjm
-1AJZCFEtU83wZuXorR9+vewnNwKBgQDI2hLihY14qcAnIruuQOruIyR/h4MwRSXV
-U+6dk5OxkOTJx/dsgokkr4pb8c2kK3kz4N2GBk+1u6+k9VkWyxxsz+rari8gHGna
-uJL3ij4CiKNzxTkXOSET5rn6pMmnKQwE5VdocQ1W9nN6H1PKyhFE6IjdzgiJsqw/
-Y13DGdFTjQKBgAKjOOgarGX4xKWN0choSZtY95ptpKIIFHfQSSj7VHXR91aNhLlp
-st+/n6tjrt11pLG9amFHuX2ZQpCpizCouDZ6cyf7TokS2aNu9hWadbmYkYpo1ZAw
-82MGjRH7zTEQkAYBMVyfg+AVTcf9Fcl9eCX352FDNzoxW8j8U3ZzDTgTAoGBAKne
-5oH2+kPHLeDrm1gxR4DI8CF79xRoJytZpUJYgl13ckjGexim/l6sqJRC2e2zZvrd
-f/3OcLP/XPpjF0oT1qKg5ry0/N5nqY9287WwkemKrtNHRpXBl5xBU6IMpRBfwu6R
-GXAXzXRzVA9BV5j3dcuV78vIaagsGUozPCW6PDQxAoGANlP96CmdAzfHhNH0RGuT
-SjkY4sc0WI2RJ+TPNncPadEZP7oZGWZvjQu0/MHLn68CAuoGV8QR9OhowZn5WuXY
-J48EGhH+P+ryeXOKpncflvymWodJtfznM41Pq0X5hnadEzGkjaBC15xHOijOb6KU
-QsI1J3pXukDOmXXgpFTZXmU=
------END PRIVATE KEY-----

+ 0 - 27
data/key/privatekey.key

@@ -1,27 +0,0 @@
------BEGIN RSA PRIVATE KEY-----
-MIIEowIBAAKCAQEApzpOtvWGclmdw+/aEzAxwyTgUwnC9qjQEhL+qfMWDBIbFR8N
-4q6GQ8fRKZ9Zyvm0voFhgpH44Y6sh2U7rF9HQOuw2puywvU8kk5JAUxpxykbH7Qq
-W/ijH1gBG3Ck/Ip/5I4co+q9K/CjQRmId5nSJ8ffnaiAOogNZycrP+AgEEU8vL1e
-NtnagVxT3EC1LEh0wBwecT9Tkyi0tMD0sMeIUl9POrnh7YADJtUzGf+TTNrqK6Dh
-oT9mE3Plw0pqxKSk4/tHNx1ZIXf4I/UeYSEAreXHWVfLQ/if1C9HRYhEGB57mmqn
-0JdmsSRD7DX7eU7Oja+RqtWfQ/KH+2fnjq9uSwIDAQABAoIBABACUvrM8nwL/EB/
-u77OhFUMOLV6X8HBU3oHe33Fmby6FwGkoW2sC4p9nJaBfNUjppv+Qtl/I/Zj9Dxa
-AqZz0Jx0c8/Zy/lCBPR0riSDrjS0yLX2R3/ag7NCd4iq9gB/OdMlj7RZipakSNy4
-lwnsHeRVDCFJukzgLXhMlaVdzXQBJTdERP3G8A9vwxuvbOE3q3kHCTWepVYd3KdE
-Q5rDPrYh/HwfVB2tWSne7Z/NurutW5qLA6aiJGcDoF7H41Fit8zw1QDnwJNvsUeR
-/POFFD0zog7+ZpMX3OiJwFKBZfTNvzJtH3mkqnN62JJwpJNqTTMWdfSziFlQNJ6G
-rCqhaxECgYEA1STJz0GAC7tho/l6O13BYlnyjS15bSCrr23XXUY3Sa7s6JiNFAUk
-IFq57XzEEdZhqOmgQlJQmGKJmmRVSshnSH7HohRdjisnjAbK1O0qABe3tP3IIuKC
-rPY+q1zb+PpYkFMiWUr3+1JYKU8o5tQCWQhRLVPN8Gbl6K0ffr3sJzcCgYEAyNoS
-4oWNeKnAJyK7rkDq7iMkf4eDMEUl1VPunZOTsZDkycf3bIKJJK+KW/HNpCt5M+Dd
-hgZPtbuvpPVZFsscbM/q2q4vIBxp2riS94o+Aoijc8U5FzkhE+a5+qTJpykMBOVX
-aHENVvZzeh9TysoRROiI3c4IibKsP2NdwxnRU40CgYACozjoGqxl+MSljdHIaEmb
-WPeabaSiCBR30Eko+1R10fdWjYS5abLfv5+rY67ddaSxvWphR7l9mUKQqYswqLg2
-enMn+06JEtmjbvYVmnW5mJGKaNWQMPNjBo0R+80xEJAGATFcn4PgFU3H/RXJfXgl
-9+dhQzc6MVvI/FN2cw04EwKBgQCp3uaB9vpDxy3g65tYMUeAyPAhe/cUaCcrWaVC
-WIJdd3JIxnsYpv5erKiUQtnts2b63X/9znCz/1z6YxdKE9aioOa8tPzeZ6mPdvO1
-sJHpiq7TR0aVwZecQVOiDKUQX8LukRlwF810c1QPQVeY93XLle/LyGmoLBlKMzwl
-ujw0MQKBgDZT/egpnQM3x4TR9ERrk0o5GOLHNFiNkSfkzzZ3D2nRGT+6GRlmb40L
-tPzBy5+vAgLqBlfEEfToaMGZ+Vrl2CePBBoR/j/q8nlziqZ3H5b8plqHSbX85zON
-T6tF+YZ2nRMxpI2gQtecRzoozm+ilELCNSd6V7pAzpl14KRU2V5l
------END RSA PRIVATE KEY-----

+ 0 - 9
data/key/pubkey.key

@@ -1,9 +0,0 @@
------BEGIN PUBLIC KEY-----
-MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApzpOtvWGclmdw+/aEzAx
-wyTgUwnC9qjQEhL+qfMWDBIbFR8N4q6GQ8fRKZ9Zyvm0voFhgpH44Y6sh2U7rF9H
-QOuw2puywvU8kk5JAUxpxykbH7QqW/ijH1gBG3Ck/Ip/5I4co+q9K/CjQRmId5nS
-J8ffnaiAOogNZycrP+AgEEU8vL1eNtnagVxT3EC1LEh0wBwecT9Tkyi0tMD0sMeI
-Ul9POrnh7YADJtUzGf+TTNrqK6DhoT9mE3Plw0pqxKSk4/tHNx1ZIXf4I/UeYSEA
-reXHWVfLQ/if1C9HRYhEGB57mmqn0JdmsSRD7DX7eU7Oja+RqtWfQ/KH+2fnjq9u
-SwIDAQAB
------END PUBLIC KEY-----

BIN
data/key/pubkey.rar