admin_v3.sql 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : ctolog.com
  4. Source Server Version : 50559
  5. Source Host : ctolog.com:3306
  6. Source Database : admin_v3
  7. Target Server Type : MYSQL
  8. Target Server Version : 50559
  9. File Encoding : 65001
  10. Date: 2018-03-23 17:07:39
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for goods
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `goods`;
  17. CREATE TABLE `goods` (
  18. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  19. `brand_id` bigint(20) unsigned DEFAULT '0' COMMENT '品牌ID',
  20. `cate_id` bigint(20) unsigned DEFAULT '0' COMMENT '商品分类id',
  21. `unit_id` bigint(20) DEFAULT NULL COMMENT '商品单位ID',
  22. `spec_id` bigint(20) unsigned DEFAULT '0' COMMENT '规格ID',
  23. `tags_id` varchar(255) DEFAULT '' COMMENT '商品标签ID',
  24. `is_code` bigint(1) DEFAULT '1' COMMENT '是否有码商品',
  25. `goods_title` varchar(255) DEFAULT '' COMMENT '商品标签',
  26. `goods_content` text COMMENT '商品内容',
  27. `goods_logo` varchar(255) DEFAULT '' COMMENT '商品LOGO',
  28. `goods_image` text COMMENT '商品图片地址',
  29. `goods_video` varchar(500) DEFAULT '' COMMENT '商品视频URL',
  30. `goods_desc` varchar(500) DEFAULT '' COMMENT '商品描述',
  31. `package_stock` bigint(20) unsigned DEFAULT '0' COMMENT '总库存数量',
  32. `package_sale` bigint(20) unsigned DEFAULT '0' COMMENT '已销售数量',
  33. `favorite_num` bigint(20) unsigned DEFAULT '0' COMMENT '收藏次数',
  34. `sort` bigint(20) unsigned DEFAULT '0' COMMENT '数据排序',
  35. `status` bigint(1) unsigned DEFAULT '1' COMMENT '商品状态(1有效,0无效)',
  36. `is_deleted` bigint(1) unsigned DEFAULT '0' COMMENT '删除状态(1删除,0未删除)',
  37. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  38. PRIMARY KEY (`id`)
  39. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商城商品主表';
  40. -- ----------------------------
  41. -- Records of goods
  42. -- ----------------------------
  43. -- ----------------------------
  44. -- Table structure for goods_brand
  45. -- ----------------------------
  46. DROP TABLE IF EXISTS `goods_brand`;
  47. CREATE TABLE `goods_brand` (
  48. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  49. `brand_logo` varchar(1024) DEFAULT '' COMMENT '品牌logo',
  50. `brand_cover` varchar(1024) DEFAULT '' COMMENT '品牌封面',
  51. `brand_title` varchar(255) DEFAULT '' COMMENT '商品品牌名称',
  52. `brand_desc` text COMMENT '商品品牌描述',
  53. `brand_detail` text COMMENT '品牌图文信息',
  54. `sort` int(11) unsigned DEFAULT '0' COMMENT '商品分类排序',
  55. `status` tinyint(1) unsigned DEFAULT '1' COMMENT '商品状态(1有效,0无效)',
  56. `is_deleted` tinyint(1) unsigned DEFAULT '0' COMMENT '删除状态(1删除,0未删除)',
  57. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  58. PRIMARY KEY (`id`)
  59. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商品产品品牌';
  60. -- ----------------------------
  61. -- Records of goods_brand
  62. -- ----------------------------
  63. -- ----------------------------
  64. -- Table structure for goods_cate
  65. -- ----------------------------
  66. DROP TABLE IF EXISTS `goods_cate`;
  67. CREATE TABLE `goods_cate` (
  68. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  69. `pid` bigint(20) unsigned DEFAULT '0' COMMENT '上级分类编号',
  70. `brand_id` bigint(20) DEFAULT '0' COMMENT '品牌ID',
  71. `cate_title` varchar(255) DEFAULT '' COMMENT '商品分类名称',
  72. `cate_desc` text COMMENT '商品分类',
  73. `sort` bigint(20) unsigned DEFAULT '0' COMMENT '商品分类排序',
  74. `status` bigint(1) unsigned DEFAULT '1' COMMENT '商品状态(1有效,0无效)',
  75. `is_deleted` bigint(1) unsigned DEFAULT '0' COMMENT '删除状态(1删除,0未删除)',
  76. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  77. PRIMARY KEY (`id`)
  78. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商城商品分类';
  79. -- ----------------------------
  80. -- Records of goods_cate
  81. -- ----------------------------
  82. -- ----------------------------
  83. -- Table structure for goods_list
  84. -- ----------------------------
  85. DROP TABLE IF EXISTS `goods_list`;
  86. CREATE TABLE `goods_list` (
  87. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  88. `goods_id` bigint(20) unsigned DEFAULT '0' COMMENT '商品ID',
  89. `goods_spec` varchar(255) DEFAULT '' COMMENT '商品规格名称',
  90. `goods_number` bigint(20) unsigned DEFAULT '0' COMMENT '商品礼品-商品数量',
  91. `market_price` decimal(20,2) unsigned DEFAULT '0.00' COMMENT '销售价格',
  92. `selling_price` decimal(20,2) unsigned DEFAULT '0.00' COMMENT '商品价格',
  93. `goods_stock` bigint(20) unsigned DEFAULT '0' COMMENT '商品库存统计',
  94. `goods_sale` bigint(20) unsigned DEFAULT '0' COMMENT '已销售数量',
  95. `status` bigint(1) unsigned DEFAULT '1' COMMENT '商品状态(1有效,0无效)',
  96. `is_deleted` bigint(1) unsigned DEFAULT '0' COMMENT '删除状态(1删除,0未删除)',
  97. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  98. PRIMARY KEY (`id`)
  99. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商城商品列表';
  100. -- ----------------------------
  101. -- Records of goods_list
  102. -- ----------------------------
  103. -- ----------------------------
  104. -- Table structure for goods_spec
  105. -- ----------------------------
  106. DROP TABLE IF EXISTS `goods_spec`;
  107. CREATE TABLE `goods_spec` (
  108. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  109. `mch_id` bigint(20) unsigned DEFAULT '0' COMMENT '商户ID',
  110. `spec_title` varchar(255) DEFAULT '' COMMENT '商品规格名称',
  111. `spec_param` varchar(255) DEFAULT '' COMMENT '商品规格参数',
  112. `spec_desc` varchar(255) DEFAULT '' COMMENT '商品规格描述',
  113. `sort` bigint(20) unsigned DEFAULT '0' COMMENT '商品规格排序',
  114. `status` bigint(1) unsigned DEFAULT '1' COMMENT '商品状态(1有效,0无效)',
  115. `is_deleted` bigint(1) unsigned DEFAULT '0' COMMENT '删除状态(1删除,0未删除)',
  116. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  117. PRIMARY KEY (`id`),
  118. KEY `index_store_goods_spec_mch_id` (`mch_id`)
  119. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='商城商品规格';
  120. -- ----------------------------
  121. -- Records of goods_spec
  122. -- ----------------------------
  123. -- ----------------------------
  124. -- Table structure for system_auth
  125. -- ----------------------------
  126. DROP TABLE IF EXISTS `system_auth`;
  127. CREATE TABLE `system_auth` (
  128. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  129. `title` varchar(20) NOT NULL COMMENT '权限名称',
  130. `status` tinyint(1) unsigned DEFAULT '1' COMMENT '状态(1:禁用,2:启用)',
  131. `sort` smallint(6) unsigned DEFAULT '0' COMMENT '排序权重',
  132. `desc` varchar(255) DEFAULT NULL COMMENT '备注说明',
  133. `create_by` bigint(11) unsigned DEFAULT '0' COMMENT '创建人',
  134. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  135. PRIMARY KEY (`id`),
  136. UNIQUE KEY `index_system_auth_title` (`title`) USING BTREE,
  137. KEY `index_system_auth_status` (`status`) USING BTREE
  138. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统权限表';
  139. -- ----------------------------
  140. -- Records of system_auth
  141. -- ----------------------------
  142. -- ----------------------------
  143. -- Table structure for system_auth_node
  144. -- ----------------------------
  145. DROP TABLE IF EXISTS `system_auth_node`;
  146. CREATE TABLE `system_auth_node` (
  147. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  148. `auth` bigint(20) unsigned DEFAULT NULL COMMENT '角色ID',
  149. `node` varchar(200) DEFAULT NULL COMMENT '节点路径',
  150. PRIMARY KEY (`id`),
  151. KEY `index_system_auth_auth` (`auth`) USING BTREE,
  152. KEY `index_system_auth_node` (`node`) USING BTREE
  153. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统角色与节点绑定';
  154. -- ----------------------------
  155. -- Records of system_auth_node
  156. -- ----------------------------
  157. -- ----------------------------
  158. -- Table structure for system_config
  159. -- ----------------------------
  160. DROP TABLE IF EXISTS `system_config`;
  161. CREATE TABLE `system_config` (
  162. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  163. `name` varchar(100) DEFAULT NULL COMMENT '配置编码',
  164. `value` varchar(500) DEFAULT NULL COMMENT '配置值',
  165. PRIMARY KEY (`id`),
  166. KEY `index_system_config_name` (`name`)
  167. ) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='系统参数配置';
  168. -- ----------------------------
  169. -- Records of system_config
  170. -- ----------------------------
  171. INSERT INTO `system_config` VALUES ('1', 'app_name', 'ThinkAdmin');
  172. INSERT INTO `system_config` VALUES ('2', 'site_name', 'ThinkAdmin');
  173. INSERT INTO `system_config` VALUES ('3', 'app_version', '3.0 dev');
  174. INSERT INTO `system_config` VALUES ('4', 'site_copy', '©版权所有 2014-2018 楚才科技');
  175. INSERT INTO `system_config` VALUES ('5', 'browser_icon', 'http://service.thinkadmin.top/static/upload/f47b8fe06e38ae99/08e8398da45583b9.png');
  176. INSERT INTO `system_config` VALUES ('6', 'tongji_baidu_key', '');
  177. INSERT INTO `system_config` VALUES ('7', 'miitbeian', '粤ICP备16006642号-2');
  178. INSERT INTO `system_config` VALUES ('8', 'storage_type', 'local');
  179. INSERT INTO `system_config` VALUES ('9', 'storage_local_exts', 'png,jpg,rar,doc,icon,mp4');
  180. INSERT INTO `system_config` VALUES ('10', 'storage_qiniu_bucket', '');
  181. INSERT INTO `system_config` VALUES ('11', 'storage_qiniu_domain', '');
  182. INSERT INTO `system_config` VALUES ('12', 'storage_qiniu_access_key', '');
  183. INSERT INTO `system_config` VALUES ('13', 'storage_qiniu_secret_key', '');
  184. INSERT INTO `system_config` VALUES ('14', 'storage_oss_bucket', 'cuci');
  185. INSERT INTO `system_config` VALUES ('15', 'storage_oss_endpoint', 'oss-cn-beijing.aliyuncs.com');
  186. INSERT INTO `system_config` VALUES ('16', 'storage_oss_domain', 'cuci.oss-cn-beijing.aliyuncs.com');
  187. INSERT INTO `system_config` VALUES ('17', 'storage_oss_keyid', '用你自己的吧');
  188. INSERT INTO `system_config` VALUES ('18', 'storage_oss_secret', '用你自己的吧');
  189. INSERT INTO `system_config` VALUES ('34', 'wechat_appid', 'wx60a43dd8161666d4');
  190. INSERT INTO `system_config` VALUES ('35', 'wechat_appkey', '9890a0d7c91801a609d151099e95b61a');
  191. INSERT INTO `system_config` VALUES ('36', 'storage_oss_is_https', 'http');
  192. INSERT INTO `system_config` VALUES ('37', 'wechat_type', 'api');
  193. INSERT INTO `system_config` VALUES ('38', 'wechat_token', 'test');
  194. INSERT INTO `system_config` VALUES ('39', 'wechat_appsecret', 'a041bec98ed015d52b99acea5c6a16ef');
  195. INSERT INTO `system_config` VALUES ('40', 'wechat_encodingaeskey', 'BJIUzE0gqlWy0GxfPp4J1oPTBmOrNDIGPNav1YFH5Z5');
  196. INSERT INTO `system_config` VALUES ('41', 'wechat_thr_appid', 'wx60a43dd8161666d4');
  197. INSERT INTO `system_config` VALUES ('42', 'wechat_thr_appkey', '05db2aa335382c66ab56d69b1a9ad0ee');
  198. -- ----------------------------
  199. -- Table structure for system_log
  200. -- ----------------------------
  201. DROP TABLE IF EXISTS `system_log`;
  202. CREATE TABLE `system_log` (
  203. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  204. `ip` char(15) NOT NULL DEFAULT '' COMMENT '操作者IP地址',
  205. `node` char(200) NOT NULL DEFAULT '' COMMENT '当前操作节点',
  206. `username` varchar(32) NOT NULL DEFAULT '' COMMENT '操作人用户名',
  207. `action` varchar(200) NOT NULL DEFAULT '' COMMENT '操作行为',
  208. `content` text NOT NULL COMMENT '操作内容描述',
  209. `create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  210. PRIMARY KEY (`id`)
  211. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统操作日志表';
  212. -- ----------------------------
  213. -- Records of system_log
  214. -- ----------------------------
  215. -- ----------------------------
  216. -- Table structure for system_menu
  217. -- ----------------------------
  218. DROP TABLE IF EXISTS `system_menu`;
  219. CREATE TABLE `system_menu` (
  220. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  221. `pid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '父id',
  222. `title` varchar(100) NOT NULL DEFAULT '' COMMENT '名称',
  223. `node` varchar(200) NOT NULL DEFAULT '' COMMENT '节点代码',
  224. `icon` varchar(100) NOT NULL DEFAULT '' COMMENT '菜单图标',
  225. `url` varchar(400) NOT NULL DEFAULT '' COMMENT '链接',
  226. `params` varchar(500) DEFAULT '' COMMENT '链接参数',
  227. `target` varchar(20) NOT NULL DEFAULT '_self' COMMENT '链接打开方式',
  228. `sort` int(11) unsigned DEFAULT '0' COMMENT '菜单排序',
  229. `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态(0:禁用,1:启用)',
  230. `create_by` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '创建人',
  231. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  232. PRIMARY KEY (`id`),
  233. KEY `index_system_menu_node` (`node`) USING BTREE
  234. ) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8 COMMENT='系统菜单表';
  235. -- ----------------------------
  236. -- Records of system_menu
  237. -- ----------------------------
  238. INSERT INTO `system_menu` VALUES ('1', '0', '系统设置', '', '', '#', '', '_self', '9000', '1', '10000', '2018-01-19 15:27:00');
  239. INSERT INTO `system_menu` VALUES ('2', '10', '后台菜单', '', 'fa fa-leaf', 'admin/menu/index', '', '_self', '10', '1', '10000', '2018-01-19 15:27:17');
  240. INSERT INTO `system_menu` VALUES ('3', '10', '系统参数', '', 'fa fa-modx', 'admin/config/index', '', '_self', '20', '1', '10000', '2018-01-19 15:27:57');
  241. INSERT INTO `system_menu` VALUES ('4', '11', '访问授权', '', 'fa fa-group', 'admin/auth/index', '', '_self', '20', '1', '10000', '2018-01-22 11:13:02');
  242. INSERT INTO `system_menu` VALUES ('5', '11', '用户管理', '', 'fa fa-user', 'admin/user/index', '', '_self', '10', '1', '0', '2018-01-23 12:15:12');
  243. INSERT INTO `system_menu` VALUES ('6', '11', '访问节点', '', 'fa fa-fort-awesome', 'admin/node/index', '', '_self', '30', '1', '0', '2018-01-23 12:36:54');
  244. INSERT INTO `system_menu` VALUES ('7', '0', '后台首页', '', '', 'admin/index/main', '', '_self', '1000', '1', '0', '2018-01-23 13:42:30');
  245. INSERT INTO `system_menu` VALUES ('8', '16', '系统日志', '', 'fa fa-code', 'admin/log/index', '', '_self', '10', '1', '0', '2018-01-24 13:52:58');
  246. INSERT INTO `system_menu` VALUES ('9', '10', '文件存储', '', 'fa fa-stop-circle', 'admin/config/file', '', '_self', '30', '1', '0', '2018-01-25 10:54:28');
  247. INSERT INTO `system_menu` VALUES ('10', '1', '系统管理', '', 'fa fa-scribd', '#', '', '_self', '200', '1', '0', '2018-01-25 18:14:28');
  248. INSERT INTO `system_menu` VALUES ('11', '1', '访问权限', '', 'fa fa-anchor', '#', '', '_self', '300', '1', '0', '2018-01-25 18:15:08');
  249. INSERT INTO `system_menu` VALUES ('16', '1', '日志管理', '', 'fa fa-hashtag', '#', '', '_self', '400', '1', '0', '2018-02-10 16:31:15');
  250. INSERT INTO `system_menu` VALUES ('17', '0', '微信管理', '', '', '#', '', '_self', '8000', '1', '0', '2018-03-06 14:42:49');
  251. INSERT INTO `system_menu` VALUES ('18', '17', '公众号配置', '', 'fa fa-cogs', '#', '', '_self', '0', '1', '0', '2018-03-06 14:43:05');
  252. INSERT INTO `system_menu` VALUES ('19', '18', '微信授权绑定', '', 'fa fa-cog', 'wechat/config/index', '', '_self', '0', '1', '0', '2018-03-06 14:43:26');
  253. INSERT INTO `system_menu` VALUES ('20', '18', '关注默认回复', '', 'fa fa-comment-o', 'wechat/keys/subscribe', '', '_self', '0', '1', '0', '2018-03-06 14:44:45');
  254. INSERT INTO `system_menu` VALUES ('21', '18', '无反馈默认回复', '', 'fa fa-commenting', 'wechat/keys/defaults', '', '_self', '0', '1', '0', '2018-03-06 14:45:55');
  255. INSERT INTO `system_menu` VALUES ('22', '18', '微信关键字管理', '', 'fa fa-hashtag', 'wechat/keys/index', '', '_self', '0', '1', '0', '2018-03-06 14:46:23');
  256. INSERT INTO `system_menu` VALUES ('23', '17', '微信服务定制', '', 'fa fa-cubes', '#', '', '_self', '0', '1', '0', '2018-03-06 14:47:11');
  257. INSERT INTO `system_menu` VALUES ('24', '23', '微信菜单管理', '', 'fa fa-gg-circle', 'wechat/menu/index', '', '_self', '0', '1', '0', '2018-03-06 14:47:39');
  258. INSERT INTO `system_menu` VALUES ('25', '23', '微信图文管理', '', 'fa fa-map-o', 'wechat/news/index', '', '_self', '0', '1', '0', '2018-03-06 14:48:14');
  259. INSERT INTO `system_menu` VALUES ('26', '17', '微信粉丝管理', '', 'fa fa-user', '#', '', '_self', '0', '1', '0', '2018-03-06 14:48:33');
  260. INSERT INTO `system_menu` VALUES ('27', '26', '微信粉丝列表', '', 'fa fa-users', 'wechat/fans/index', '', '_self', '20', '1', '0', '2018-03-06 14:49:04');
  261. INSERT INTO `system_menu` VALUES ('28', '26', '微信黑名单管理', '', 'fa fa-user-times', 'wechat/block/index', '', '_self', '30', '1', '0', '2018-03-06 14:49:22');
  262. INSERT INTO `system_menu` VALUES ('29', '26', '微信标签管理', '', 'fa fa-tags', 'wechat/tags/index', '', '_self', '10', '1', '0', '2018-03-06 14:49:39');
  263. -- ----------------------------
  264. -- Table structure for system_node
  265. -- ----------------------------
  266. DROP TABLE IF EXISTS `system_node`;
  267. CREATE TABLE `system_node` (
  268. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  269. `node` varchar(100) DEFAULT NULL COMMENT '节点代码',
  270. `title` varchar(500) DEFAULT NULL COMMENT '节点标题',
  271. `is_menu` tinyint(1) unsigned DEFAULT '0' COMMENT '是否可设置为菜单',
  272. `is_auth` tinyint(1) unsigned DEFAULT '1' COMMENT '是否启动RBAC权限控制',
  273. `is_login` tinyint(1) unsigned DEFAULT '1' COMMENT '是否启动登录控制',
  274. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  275. PRIMARY KEY (`id`),
  276. KEY `index_system_node_node` (`node`)
  277. ) ENGINE=InnoDB AUTO_INCREMENT=230 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='系统节点表';
  278. -- ----------------------------
  279. -- Records of system_node
  280. -- ----------------------------
  281. INSERT INTO `system_node` VALUES ('1', 'admin', '系统管理', '0', '1', '1', '2018-01-23 12:39:13');
  282. INSERT INTO `system_node` VALUES ('2', 'admin/auth', '权限管理', '0', '1', '1', '2018-01-23 12:39:14');
  283. INSERT INTO `system_node` VALUES ('3', 'admin/auth/index', '权限列表', '1', '1', '1', '2018-01-23 12:39:14');
  284. INSERT INTO `system_node` VALUES ('4', 'admin/auth/apply', '访问授权', '0', '1', '1', '2018-01-23 12:39:19');
  285. INSERT INTO `system_node` VALUES ('5', 'admin/auth/add', '添加权限', '0', '1', '1', '2018-01-23 12:39:22');
  286. INSERT INTO `system_node` VALUES ('6', 'admin/auth/edit', '编辑权限', '0', '1', '1', '2018-01-23 12:39:23');
  287. INSERT INTO `system_node` VALUES ('7', 'admin/auth/forbid', '禁用权限', '0', '1', '1', '2018-01-23 12:39:23');
  288. INSERT INTO `system_node` VALUES ('8', 'admin/auth/resume', '启用权限', '0', '1', '1', '2018-01-23 12:39:24');
  289. INSERT INTO `system_node` VALUES ('9', 'admin/auth/del', '删除权限', '0', '1', '1', '2018-01-23 12:39:25');
  290. INSERT INTO `system_node` VALUES ('10', 'admin/config/index', '系统参数', '1', '1', '1', '2018-01-23 12:39:25');
  291. INSERT INTO `system_node` VALUES ('11', 'admin/config/file', '文件存储', '0', '1', '1', '2018-01-23 12:39:26');
  292. INSERT INTO `system_node` VALUES ('13', 'admin/log/index', '日志记录', '1', '1', '1', '2018-01-23 12:39:28');
  293. INSERT INTO `system_node` VALUES ('14', 'admin/log/sms', '短信记录', '0', '1', '1', '2018-01-23 12:39:29');
  294. INSERT INTO `system_node` VALUES ('15', 'admin/log/del', '日志删除', '0', '1', '1', '2018-01-23 12:39:29');
  295. INSERT INTO `system_node` VALUES ('16', 'admin/menu/index', '系统菜单列表', '1', '1', '1', '2018-01-23 12:39:31');
  296. INSERT INTO `system_node` VALUES ('17', 'admin/menu/add', '添加系统菜单', '0', '1', '1', '2018-01-23 12:39:31');
  297. INSERT INTO `system_node` VALUES ('18', 'admin/menu/edit', '编辑系统菜单', '0', '1', '1', '2018-01-23 12:39:32');
  298. INSERT INTO `system_node` VALUES ('19', 'admin/menu/del', '删除系统菜单', '0', '1', '1', '2018-01-23 12:39:33');
  299. INSERT INTO `system_node` VALUES ('20', 'admin/menu/forbid', '禁用系统菜单', '0', '1', '1', '2018-01-23 12:39:33');
  300. INSERT INTO `system_node` VALUES ('21', 'admin/menu/resume', '启用系统菜单', '0', '1', '1', '2018-01-23 12:39:34');
  301. INSERT INTO `system_node` VALUES ('22', 'admin/node/index', '系统节点列表', '1', '1', '1', '2018-01-23 12:39:36');
  302. INSERT INTO `system_node` VALUES ('23', 'admin/node/save', '保存节点信息', '0', '1', '1', '2018-01-23 12:39:36');
  303. INSERT INTO `system_node` VALUES ('24', 'admin/user/index', '系统用户列表', '1', '1', '1', '2018-01-23 12:39:37');
  304. INSERT INTO `system_node` VALUES ('25', 'admin/user/auth', '用户授权操作', '0', '1', '1', '2018-01-23 12:39:38');
  305. INSERT INTO `system_node` VALUES ('26', 'admin/user/add', '添加系统用户', '0', '1', '1', '2018-01-23 12:39:39');
  306. INSERT INTO `system_node` VALUES ('27', 'admin/user/edit', '编辑系统用户', '0', '1', '1', '2018-01-23 12:39:39');
  307. INSERT INTO `system_node` VALUES ('28', 'admin/user/pass', '修改用户密码', '0', '1', '1', '2018-01-23 12:39:40');
  308. INSERT INTO `system_node` VALUES ('29', 'admin/user/del', '删除系统用户', '0', '1', '1', '2018-01-23 12:39:41');
  309. INSERT INTO `system_node` VALUES ('30', 'admin/user/forbid', '禁用系统用户', '0', '1', '1', '2018-01-23 12:39:41');
  310. INSERT INTO `system_node` VALUES ('31', 'admin/user/resume', '启用系统用户', '0', '1', '1', '2018-01-23 12:39:42');
  311. INSERT INTO `system_node` VALUES ('32', 'admin/config', '系统配置', '0', '1', '1', '2018-01-23 13:34:37');
  312. INSERT INTO `system_node` VALUES ('33', 'admin/log', '日志管理', '0', '1', '1', '2018-01-23 13:34:48');
  313. INSERT INTO `system_node` VALUES ('34', 'admin/menu', '系统菜单管理', '0', '1', '1', '2018-01-23 13:34:58');
  314. INSERT INTO `system_node` VALUES ('35', 'admin/node', '系统节点管理', '0', '1', '1', '2018-01-23 13:35:17');
  315. INSERT INTO `system_node` VALUES ('36', 'admin/user', '系统用户管理', '0', '1', '1', '2018-01-23 13:35:26');
  316. INSERT INTO `system_node` VALUES ('37', 'wechat', '微信管理', '0', '1', '1', '2018-02-06 11:53:21');
  317. INSERT INTO `system_node` VALUES ('38', 'wechat/config', '公众号对接', '0', '1', '1', '2018-02-06 11:53:32');
  318. INSERT INTO `system_node` VALUES ('39', 'wechat/config/index', '公众号对接', '1', '1', '1', '2018-02-06 11:53:32');
  319. INSERT INTO `system_node` VALUES ('45', 'wechat/block', '黑名单', '0', '1', '1', '2018-03-06 14:37:37');
  320. INSERT INTO `system_node` VALUES ('46', 'wechat/block/index', '黑名单列表', '1', '1', '1', '2018-03-06 14:37:47');
  321. INSERT INTO `system_node` VALUES ('47', 'wechat/block/backdel', '移出黑名单', '0', '1', '1', '2018-03-06 14:37:49');
  322. INSERT INTO `system_node` VALUES ('48', 'wechat/fans', '粉丝管理', '0', '1', '1', '2018-03-06 14:38:06');
  323. INSERT INTO `system_node` VALUES ('49', 'wechat/fans/index', '粉丝列表', '1', '1', '1', '2018-03-06 14:38:25');
  324. INSERT INTO `system_node` VALUES ('50', 'wechat/fans/backadd', '移入黑名单', '0', '1', '1', '2018-03-06 14:38:35');
  325. INSERT INTO `system_node` VALUES ('51', 'wechat/fans/tagset', '标签设置', '0', '1', '1', '2018-03-06 14:38:36');
  326. INSERT INTO `system_node` VALUES ('52', 'wechat/fans/tagadd', '添加标签', '0', '1', '1', '2018-03-06 14:38:37');
  327. INSERT INTO `system_node` VALUES ('53', 'wechat/fans/tagdel', '删除标签', '0', '1', '1', '2018-03-06 14:38:38');
  328. INSERT INTO `system_node` VALUES ('54', 'wechat/fans/sync', '同步粉丝', '0', '1', '1', '2018-03-06 14:38:38');
  329. INSERT INTO `system_node` VALUES ('55', 'wechat/keys', '关键字管理', '0', '1', '1', '2018-03-06 14:39:21');
  330. INSERT INTO `system_node` VALUES ('56', 'wechat/keys/index', '关键字列表', '1', '1', '1', '2018-03-06 14:39:25');
  331. INSERT INTO `system_node` VALUES ('57', 'wechat/keys/add', '添加关键字', '0', '1', '1', '2018-03-06 14:39:27');
  332. INSERT INTO `system_node` VALUES ('58', 'wechat/keys/edit', '编辑关键字', '0', '1', '1', '2018-03-06 14:39:28');
  333. INSERT INTO `system_node` VALUES ('59', 'wechat/keys/del', '删除关键字', '0', '1', '1', '2018-03-06 14:39:42');
  334. INSERT INTO `system_node` VALUES ('60', 'wechat/keys/forbid', '禁用关键字', '0', '1', '1', '2018-03-06 14:39:55');
  335. INSERT INTO `system_node` VALUES ('61', 'wechat/keys/resume', '启用关键字', '0', '1', '1', '2018-03-06 14:40:01');
  336. INSERT INTO `system_node` VALUES ('62', 'wechat/keys/subscribe', '关注默认回复', '1', '1', '1', '2018-03-06 14:40:12');
  337. INSERT INTO `system_node` VALUES ('63', 'wechat/keys/defaults', '无反馈默认回复', '1', '1', '1', '2018-03-06 14:40:27');
  338. INSERT INTO `system_node` VALUES ('64', 'wechat/menu', '微信菜单管理', '0', '1', '1', '2018-03-06 14:40:37');
  339. INSERT INTO `system_node` VALUES ('65', 'wechat/menu/index', '微信菜单管理', '1', '1', '1', '2018-03-06 14:40:41');
  340. INSERT INTO `system_node` VALUES ('66', 'wechat/menu/edit', '编辑发布菜单', '0', '1', '1', '2018-03-06 14:40:53');
  341. INSERT INTO `system_node` VALUES ('67', 'wechat/menu/cancel', '取消发布菜单', '0', '1', '1', '2018-03-06 14:41:01');
  342. INSERT INTO `system_node` VALUES ('68', 'wechat/news', '图文内容管理', '0', '1', '1', '2018-03-06 14:41:13');
  343. INSERT INTO `system_node` VALUES ('69', 'wechat/news/index', '图文内容管理', '1', '1', '1', '2018-03-06 14:41:20');
  344. INSERT INTO `system_node` VALUES ('70', 'wechat/news/select', '图文选择器', '0', '1', '1', '2018-03-06 14:41:22');
  345. INSERT INTO `system_node` VALUES ('71', 'wechat/news/image', '图文选择器', '0', '1', '1', '2018-03-06 14:41:22');
  346. INSERT INTO `system_node` VALUES ('72', 'wechat/news/add', '添加图文', '0', '1', '1', '2018-03-06 14:41:23');
  347. INSERT INTO `system_node` VALUES ('73', 'wechat/news/del', '删除图文', '0', '1', '1', '2018-03-06 14:41:23');
  348. INSERT INTO `system_node` VALUES ('74', 'wechat/news/push', '推荐图文', '0', '1', '1', '2018-03-06 14:41:24');
  349. INSERT INTO `system_node` VALUES ('75', 'wechat/news/edit', '编辑图文', '0', '1', '1', '2018-03-06 14:41:25');
  350. INSERT INTO `system_node` VALUES ('76', 'wechat/tags', '标签管理', '0', '1', '1', '2018-03-06 14:42:06');
  351. INSERT INTO `system_node` VALUES ('77', 'wechat/tags/index', '标签列表', '1', '1', '1', '2018-03-06 14:42:09');
  352. INSERT INTO `system_node` VALUES ('78', 'wechat/tags/add', '添加标签', '0', '1', '1', '2018-03-06 14:42:14');
  353. INSERT INTO `system_node` VALUES ('79', 'wechat/tags/edit', '编辑标签', '0', '1', '1', '2018-03-06 14:42:17');
  354. INSERT INTO `system_node` VALUES ('80', 'wechat/tags/del', '删除标签', '0', '1', '1', '2018-03-06 14:42:20');
  355. INSERT INTO `system_node` VALUES ('81', 'wechat/tags/sync', '同步标签', '0', '1', '1', '2018-03-06 14:42:23');
  356. INSERT INTO `system_node` VALUES ('229', 'admin/node/clear', '清理无效记录', '0', '1', '1', '2018-03-09 12:24:31');
  357. -- ----------------------------
  358. -- Table structure for system_sequence
  359. -- ----------------------------
  360. DROP TABLE IF EXISTS `system_sequence`;
  361. CREATE TABLE `system_sequence` (
  362. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  363. `type` varchar(20) DEFAULT NULL COMMENT '序号类型',
  364. `sequence` char(50) NOT NULL COMMENT '序号值',
  365. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  366. PRIMARY KEY (`id`),
  367. UNIQUE KEY `index_system_sequence_unique` (`type`,`sequence`) USING BTREE,
  368. KEY `index_system_sequence_type` (`type`),
  369. KEY `index_system_sequence_number` (`sequence`)
  370. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统序号表';
  371. -- ----------------------------
  372. -- Records of system_sequence
  373. -- ----------------------------
  374. -- ----------------------------
  375. -- Table structure for system_user
  376. -- ----------------------------
  377. DROP TABLE IF EXISTS `system_user`;
  378. CREATE TABLE `system_user` (
  379. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  380. `username` varchar(50) NOT NULL DEFAULT '' COMMENT '用户登录名',
  381. `password` char(32) NOT NULL DEFAULT '' COMMENT '用户登录密码',
  382. `qq` varchar(16) DEFAULT NULL COMMENT '联系QQ',
  383. `mail` varchar(32) DEFAULT NULL COMMENT '联系邮箱',
  384. `phone` varchar(16) DEFAULT NULL COMMENT '联系手机号',
  385. `desc` varchar(255) DEFAULT '' COMMENT '备注说明',
  386. `login_num` bigint(20) unsigned DEFAULT '0' COMMENT '登录次数',
  387. `login_at` datetime DEFAULT NULL,
  388. `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态(0:禁用,1:启用)',
  389. `authorize` varchar(255) DEFAULT NULL,
  390. `is_deleted` tinyint(1) unsigned DEFAULT '0' COMMENT '删除状态(1:删除,0:未删)',
  391. `create_by` bigint(20) unsigned DEFAULT NULL COMMENT '创建人',
  392. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  393. PRIMARY KEY (`id`),
  394. UNIQUE KEY `index_system_user_username` (`username`) USING BTREE
  395. ) ENGINE=InnoDB AUTO_INCREMENT=10001 DEFAULT CHARSET=utf8 COMMENT='系统用户表';
  396. -- ----------------------------
  397. -- Records of system_user
  398. -- ----------------------------
  399. INSERT INTO `system_user` VALUES ('10000', 'admin', '21232f297a57a5a743894a0e4a801fc3', '22222222', '', '18993368867', '', '23296', '2018-03-23 17:05:40', '1', '2,4', '0', null, '2015-11-13 15:14:22');
  400. -- ----------------------------
  401. -- Table structure for wechat_fans
  402. -- ----------------------------
  403. DROP TABLE IF EXISTS `wechat_fans`;
  404. CREATE TABLE `wechat_fans` (
  405. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  406. `appid` char(50) DEFAULT '' COMMENT '公众号Appid',
  407. `unionid` char(100) DEFAULT '' COMMENT 'unionid',
  408. `openid` char(100) DEFAULT '' COMMENT '用户的标识,对当前公众号唯一',
  409. `spread_openid` char(100) DEFAULT '' COMMENT '推荐人OPENID',
  410. `spread_at` datetime DEFAULT NULL COMMENT '推荐时间',
  411. `tagid_list` varchar(100) DEFAULT '' COMMENT '标签id',
  412. `is_black` tinyint(1) unsigned DEFAULT '0' COMMENT '是否为黑名单用户',
  413. `subscribe` tinyint(1) unsigned DEFAULT '0' COMMENT '用户是否关注该公众号(0:未关注, 1:已关注)',
  414. `nickname` varchar(200) DEFAULT '' COMMENT '用户的昵称',
  415. `sex` tinyint(1) unsigned DEFAULT NULL COMMENT '用户的性别,值为1时是男性,值为2时是女性,值为0时是未知',
  416. `country` varchar(50) DEFAULT '' COMMENT '用户所在国家',
  417. `province` varchar(50) DEFAULT '' COMMENT '用户所在省份',
  418. `city` varchar(50) DEFAULT '' COMMENT '用户所在城市',
  419. `language` varchar(50) DEFAULT '' COMMENT '用户的语言,简体中文为zh_CN',
  420. `headimgurl` varchar(500) DEFAULT '' COMMENT '用户头像',
  421. `subscribe_time` bigint(20) unsigned DEFAULT '0' COMMENT '用户关注时间',
  422. `subscribe_at` datetime DEFAULT NULL COMMENT '关注时间',
  423. `remark` varchar(50) DEFAULT '' COMMENT '备注',
  424. `expires_in` bigint(20) unsigned DEFAULT '0' COMMENT '有效时间',
  425. `refresh_token` varchar(200) DEFAULT '' COMMENT '刷新token',
  426. `access_token` varchar(200) DEFAULT '' COMMENT '访问token',
  427. `subscribe_scene` varchar(200) DEFAULT '' COMMENT '扫码关注场景',
  428. `qr_scene` varchar(100) DEFAULT '' COMMENT '二维码场景值',
  429. `qr_scene_str` varchar(200) DEFAULT '' COMMENT '二维码场景内容',
  430. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  431. PRIMARY KEY (`id`),
  432. KEY `index_wechat_fans_spread_openid` (`spread_openid`) USING BTREE,
  433. KEY `index_wechat_fans_openid` (`openid`) USING BTREE,
  434. KEY `index_wechat_fans_unionid` (`unionid`),
  435. KEY `index_wechat_fans_is_back` (`is_black`),
  436. KEY `index_wechat_fans_subscribe` (`subscribe`)
  437. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信粉丝';
  438. -- ----------------------------
  439. -- Records of wechat_fans
  440. -- ----------------------------
  441. -- ----------------------------
  442. -- Table structure for wechat_fans_tags
  443. -- ----------------------------
  444. DROP TABLE IF EXISTS `wechat_fans_tags`;
  445. CREATE TABLE `wechat_fans_tags` (
  446. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '标签ID',
  447. `appid` char(50) DEFAULT NULL COMMENT '公众号APPID',
  448. `name` varchar(35) DEFAULT NULL COMMENT '标签名称',
  449. `count` int(11) unsigned DEFAULT NULL COMMENT '总数',
  450. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期',
  451. KEY `index_wechat_fans_tags_id` (`id`) USING BTREE,
  452. KEY `index_wechat_fans_tags_appid` (`appid`) USING BTREE
  453. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信会员标签';
  454. -- ----------------------------
  455. -- Records of wechat_fans_tags
  456. -- ----------------------------
  457. -- ----------------------------
  458. -- Table structure for wechat_keys
  459. -- ----------------------------
  460. DROP TABLE IF EXISTS `wechat_keys`;
  461. CREATE TABLE `wechat_keys` (
  462. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  463. `appid` char(100) DEFAULT '' COMMENT '公众号APPID',
  464. `type` varchar(20) DEFAULT '' COMMENT '类型,text 文件消息,image 图片消息,news 图文消息',
  465. `keys` varchar(100) DEFAULT NULL COMMENT '关键字',
  466. `content` text COMMENT '文本内容',
  467. `image_url` varchar(255) DEFAULT '' COMMENT '图片链接',
  468. `voice_url` varchar(255) DEFAULT '' COMMENT '语音链接',
  469. `music_title` varchar(100) DEFAULT '' COMMENT '音乐标题',
  470. `music_url` varchar(255) DEFAULT '' COMMENT '音乐链接',
  471. `music_image` varchar(255) DEFAULT '' COMMENT '音乐缩略图链接',
  472. `music_desc` varchar(255) DEFAULT '' COMMENT '音乐描述',
  473. `video_title` varchar(100) DEFAULT '' COMMENT '视频标题',
  474. `video_url` varchar(255) DEFAULT '' COMMENT '视频URL',
  475. `video_desc` varchar(255) DEFAULT '' COMMENT '视频描述',
  476. `news_id` bigint(20) unsigned DEFAULT NULL COMMENT '图文ID',
  477. `sort` bigint(20) unsigned DEFAULT '0' COMMENT '排序字段',
  478. `status` tinyint(1) unsigned DEFAULT '1' COMMENT '0 禁用,1 启用',
  479. `create_by` bigint(20) unsigned DEFAULT NULL COMMENT '创建人',
  480. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建时间',
  481. PRIMARY KEY (`id`),
  482. KEY `index_wechat_keys_appid` (`appid`)
  483. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信关键字';
  484. -- ----------------------------
  485. -- Records of wechat_keys
  486. -- ----------------------------
  487. -- ----------------------------
  488. -- Table structure for wechat_menu
  489. -- ----------------------------
  490. DROP TABLE IF EXISTS `wechat_menu`;
  491. CREATE TABLE `wechat_menu` (
  492. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  493. `index` bigint(20) DEFAULT NULL,
  494. `pindex` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '父id',
  495. `type` varchar(24) NOT NULL DEFAULT '' COMMENT '菜单类型 null主菜单 link链接 keys关键字',
  496. `name` varchar(256) NOT NULL DEFAULT '' COMMENT '菜单名称',
  497. `content` text NOT NULL COMMENT '文字内容',
  498. `sort` bigint(20) unsigned DEFAULT '0' COMMENT '排序',
  499. `status` tinyint(1) unsigned DEFAULT '1' COMMENT '状态(0禁用1启用)',
  500. `create_by` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '创建人',
  501. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  502. PRIMARY KEY (`id`),
  503. KEY `index_wechat_menu_pindex` (`pindex`) USING BTREE
  504. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信菜单配置';
  505. -- ----------------------------
  506. -- Records of wechat_menu
  507. -- ----------------------------
  508. -- ----------------------------
  509. -- Table structure for wechat_news
  510. -- ----------------------------
  511. DROP TABLE IF EXISTS `wechat_news`;
  512. CREATE TABLE `wechat_news` (
  513. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  514. `media_id` varchar(100) DEFAULT '' COMMENT '永久素材MediaID',
  515. `local_url` varchar(300) DEFAULT '' COMMENT '永久素材显示URL',
  516. `article_id` varchar(60) DEFAULT '' COMMENT '关联图文ID,用,号做分割',
  517. `is_deleted` tinyint(1) unsigned DEFAULT '0' COMMENT '是否删除',
  518. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  519. `create_by` bigint(20) DEFAULT NULL COMMENT '创建人',
  520. PRIMARY KEY (`id`),
  521. KEY `index_wechat_news_artcle_id` (`article_id`) USING BTREE
  522. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信图文表';
  523. -- ----------------------------
  524. -- Records of wechat_news
  525. -- ----------------------------
  526. -- ----------------------------
  527. -- Table structure for wechat_news_article
  528. -- ----------------------------
  529. DROP TABLE IF EXISTS `wechat_news_article`;
  530. CREATE TABLE `wechat_news_article` (
  531. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  532. `title` varchar(50) DEFAULT '' COMMENT '素材标题',
  533. `local_url` varchar(300) DEFAULT '' COMMENT '永久素材显示URL',
  534. `show_cover_pic` tinyint(4) unsigned DEFAULT '0' COMMENT '是否显示封面 0不显示,1 显示',
  535. `author` varchar(20) DEFAULT '' COMMENT '作者',
  536. `digest` varchar(300) DEFAULT '' COMMENT '摘要内容',
  537. `content` longtext COMMENT '图文内容',
  538. `content_source_url` varchar(200) DEFAULT '' COMMENT '图文消息原文地址',
  539. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  540. `create_by` bigint(20) DEFAULT NULL COMMENT '创建人',
  541. PRIMARY KEY (`id`)
  542. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信素材表';
  543. -- ----------------------------
  544. -- Records of wechat_news_article
  545. -- ----------------------------
  546. -- ----------------------------
  547. -- Table structure for wechat_news_image
  548. -- ----------------------------
  549. DROP TABLE IF EXISTS `wechat_news_image`;
  550. CREATE TABLE `wechat_news_image` (
  551. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  552. `md5` varchar(32) DEFAULT '' COMMENT '文件md5',
  553. `local_url` varchar(300) DEFAULT '' COMMENT '本地文件链接',
  554. `media_url` varchar(300) DEFAULT '' COMMENT '远程图片链接',
  555. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  556. PRIMARY KEY (`id`),
  557. KEY `index_wechat_news_image_md5` (`md5`)
  558. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信服务器图片';
  559. -- ----------------------------
  560. -- Records of wechat_news_image
  561. -- ----------------------------
  562. -- ----------------------------
  563. -- Table structure for wechat_news_media
  564. -- ----------------------------
  565. DROP TABLE IF EXISTS `wechat_news_media`;
  566. CREATE TABLE `wechat_news_media` (
  567. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  568. `appid` varchar(100) DEFAULT '' COMMENT '公众号ID',
  569. `md5` varchar(32) DEFAULT '' COMMENT '文件md5',
  570. `type` varchar(20) DEFAULT '' COMMENT '媒体类型',
  571. `media_id` varchar(100) DEFAULT '' COMMENT '永久素材MediaID',
  572. `local_url` varchar(300) DEFAULT '' COMMENT '本地文件链接',
  573. `media_url` varchar(300) DEFAULT '' COMMENT '远程图片链接',
  574. `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  575. PRIMARY KEY (`id`)
  576. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='微信素材表';
  577. -- ----------------------------
  578. -- Records of wechat_news_media
  579. -- ----------------------------