wechat.sql 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. -- phpMyAdmin SQL Dump
  2. -- version 4.8.3
  3. -- https://www.phpmyadmin.net/
  4. --
  5. -- 主机: rm-2ze2vvl80xp9t9827.mysql.rds.aliyuncs.com
  6. -- 生成日期: 2018-12-04 10:06:44
  7. -- 服务器版本: 5.7.20-log
  8. -- PHP 版本: 7.1.17
  9. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  10. SET AUTOCOMMIT = 0;
  11. START TRANSACTION;
  12. SET time_zone = "+00:00";
  13. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  14. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  15. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  16. /*!40101 SET NAMES utf8mb4 */;
  17. --
  18. -- 数据库: `wechat`
  19. --
  20. -- --------------------------------------------------------
  21. --
  22. -- 表的结构 `upload_manage_admin`
  23. --
  24. CREATE TABLE `upload_manage_admin` (
  25. `id` int(11) UNSIGNED NOT NULL COMMENT '管理员ID',
  26. `username` varchar(24) DEFAULT NULL COMMENT '管理员名',
  27. `email` varchar(150) DEFAULT NULL COMMENT '邮箱-可用于登录,请准确填写,不允许重复',
  28. `mobile` varchar(32) DEFAULT NULL COMMENT '手机号',
  29. `password` varchar(64) DEFAULT NULL COMMENT '管理员密码',
  30. `config` int(11) NOT NULL DEFAULT '1' COMMENT '后台配置',
  31. `role` varchar(100) DEFAULT NULL COMMENT '角色',
  32. `group` int(11) NOT NULL DEFAULT '1' COMMENT '分组',
  33. `top` text COMMENT '头部菜单-这里的头部菜单如果设置,则会覆盖角色中的头部菜单',
  34. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '数据状态',
  35. `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  36. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
  37. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  38. --
  39. -- 转存表中的数据 `upload_manage_admin`
  40. --
  41. INSERT INTO `upload_manage_admin` (`id`, `username`, `email`, `mobile`, `password`, `config`, `role`, `group`, `top`, `state`, `status`, `cdate`) VALUES
  42. (1, 'admin@admin.com', 'admin@admin.com', NULL, '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92', 1, '1', 1, NULL, 1, 1, 1543889304);
  43. -- --------------------------------------------------------
  44. --
  45. -- 表的结构 `upload_manage_auth`
  46. --
  47. CREATE TABLE `upload_manage_auth` (
  48. `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
  49. `project` varchar(50) DEFAULT NULL COMMENT '项目KEY',
  50. `project_name` varchar(50) DEFAULT NULL COMMENT '项目名',
  51. `name` varchar(50) DEFAULT NULL COMMENT '权限名',
  52. `auth_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级权限',
  53. `key` varchar(100) DEFAULT NULL COMMENT '权限KEY',
  54. `value` varchar(30) DEFAULT NULL COMMENT '对应的值',
  55. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  56. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
  57. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  58. -- --------------------------------------------------------
  59. --
  60. -- 表的结构 `upload_manage_config`
  61. --
  62. CREATE TABLE `upload_manage_config` (
  63. `id` int(11) UNSIGNED NOT NULL COMMENT '配置ID',
  64. `name` varchar(32) DEFAULT NULL COMMENT '配置名',
  65. `template` int(1) NOT NULL DEFAULT '1' COMMENT '后台模板',
  66. `title` varchar(32) DEFAULT NULL COMMENT '后台TITLE',
  67. `info` varchar(40) DEFAULT NULL COMMENT '控制台欢迎标题',
  68. `content` text COMMENT '控制台欢迎内容',
  69. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  70. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
  71. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  72. --
  73. -- 转存表中的数据 `upload_manage_config`
  74. --
  75. INSERT INTO `upload_manage_config` (`id`, `name`, `template`, `title`, `info`, `content`, `state`, `cdate`) VALUES
  76. (1, '默认配置', 1, NULL, NULL, NULL, 1, 1543889304);
  77. -- --------------------------------------------------------
  78. --
  79. -- 表的结构 `upload_manage_group`
  80. --
  81. CREATE TABLE `upload_manage_group` (
  82. `id` int(11) UNSIGNED NOT NULL COMMENT '组ID',
  83. `name` varchar(50) DEFAULT NULL COMMENT '组名称',
  84. `area` varchar(255) DEFAULT NULL COMMENT '区域',
  85. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  86. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
  87. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  88. --
  89. -- 转存表中的数据 `upload_manage_group`
  90. --
  91. INSERT INTO `upload_manage_group` (`id`, `name`, `area`, `state`, `cdate`) VALUES
  92. (1, '默认分组', NULL, 1, 1543889305);
  93. -- --------------------------------------------------------
  94. --
  95. -- 表的结构 `upload_manage_log`
  96. --
  97. CREATE TABLE `upload_manage_log` (
  98. `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
  99. `project` varchar(32) DEFAULT NULL COMMENT '项目名',
  100. `table` varchar(32) DEFAULT NULL COMMENT '项目下的表名',
  101. `info` longtext COMMENT '日志记录',
  102. `admin` int(11) NOT NULL DEFAULT '0' COMMENT '操作人',
  103. `tid` int(11) NOT NULL DEFAULT '0' COMMENT '来源表ID',
  104. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  105. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '操作时间'
  106. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  107. --
  108. -- 转存表中的数据 `upload_manage_log`
  109. --
  110. INSERT INTO `upload_manage_log` (`id`, `project`, `table`, `info`, `admin`, `tid`, `state`, `cdate`) VALUES
  111. (1, 'token', 'project', 'PHRhYmxlIGNsYXNzPSJkZXZlci1pbWciIGJvcmRlcj0xIHdpZHRoPTEwMCUgaGVpZ2h0PTEwMCUgIGlkPSJkZXZlci1pbWciPjx0cj48dGQgc3R5bGU9d2lkdGg6MzAlO2xpbmUtaGVpZ2h0OjEuNzU7Zm9udC13ZWlnaHQ6Ym9sZD7mk43kvZw8L3RkPjx0ZCBzdHlsZT13aWR0aDozMCU7d29yZC1icmVhazpicmVhay1hbGw7d29yZC13cmFwOmJyZWFrLXdvcmQ7Pmluc2VydDwvdGQ+PC90cj48dHI+PHRkIHN0eWxlPXdpZHRoOjMwJTtsaW5lLWhlaWdodDoxLjc1O2ZvbnQtd2VpZ2h0OmJvbGQ+5pON5L2c5Lq6PC90ZD48dGQgc3R5bGU9d2lkdGg6MzAlO3dvcmQtYnJlYWs6YnJlYWstYWxsO3dvcmQtd3JhcDpicmVhay13b3JkOz5hZG1pbkBhZG1pbi5jb20tMTwvdGQ+PC90cj48dHI+PHRkIHN0eWxlPXdpZHRoOjMwJTtsaW5lLWhlaWdodDoxLjc1O2ZvbnQtd2VpZ2h0OmJvbGQ+5pON5L2cSVA8L3RkPjx0ZCBzdHlsZT13aWR0aDozMCU7d29yZC1icmVhazpicmVhay1hbGw7d29yZC13cmFwOmJyZWFrLXdvcmQ7PjM2LjExMC44LjIyNjwvdGQ+PC90cj48dHI+PHRkIHN0eWxlPXdpZHRoOjMwJTtsaW5lLWhlaWdodDoxLjc1O2ZvbnQtd2VpZ2h0OmJvbGQ+5pON5L2c5pe26Ze0PC90ZD48dGQgc3R5bGU9d2lkdGg6MzAlO3dvcmQtYnJlYWs6YnJlYWstYWxsO3dvcmQtd3JhcDpicmVhay13b3JkOz4yMDE4LTEyLTA0IDEwOjEwOjAzPC90ZD48L3RyPjx0cj48dGQgc3R5bGU9d2lkdGg6MzAlO2xpbmUtaGVpZ2h0OjEuNzU7Zm9udC13ZWlnaHQ6Ym9sZD7mlbDmja5JRDwvdGQ+PHRkIHN0eWxlPXdpZHRoOjMwJTt3b3JkLWJyZWFrOmJyZWFrLWFsbDt3b3JkLXdyYXA6YnJlYWstd29yZDs+MTwvdGQ+PC90cj48dHI+PHRkIHN0eWxlPXdpZHRoOjMwJTtsaW5lLWhlaWdodDoxLjc1O2ZvbnQtd2VpZ2h0OmJvbGQ+6aG555uu5ZCN56ewPC90ZD48dGQgc3R5bGU9d2lkdGg6MzAlO3dvcmQtYnJlYWs6YnJlYWstYWxsO3dvcmQtd3JhcDpicmVhay13b3JkOz7nsr7nvo7lsI/nqIvluo88L3RkPjwvdHI+PHRyPjx0ZCBzdHlsZT13aWR0aDozMCU7bGluZS1oZWlnaHQ6MS43NTtmb250LXdlaWdodDpib2xkPumhueebruexu+WeizwvdGQ+PHRkIHN0eWxlPXdpZHRoOjMwJTt3b3JkLWJyZWFrOmJyZWFrLWFsbDt3b3JkLXdyYXA6YnJlYWstd29yZDs+5bCP56iL5bqPPC90ZD48L3RyPjx0cj48dGQgc3R5bGU9d2lkdGg6MzAlO2xpbmUtaGVpZ2h0OjEuNzU7Zm9udC13ZWlnaHQ6Ym9sZD7lvq7kv6FhcHBpZDwvdGQ+PHRkIHN0eWxlPXdpZHRoOjMwJTt3b3JkLWJyZWFrOmJyZWFrLWFsbDt3b3JkLXdyYXA6YnJlYWstd29yZDs+d3hkMDU5MDY2NGQwMDA0ZjIzPC90ZD48L3RyPjx0cj48dGQgc3R5bGU9d2lkdGg6MzAlO2xpbmUtaGVpZ2h0OjEuNzU7Zm9udC13ZWlnaHQ6Ym9sZD7lvq7kv6FzZWNyZXQ8L3RkPjx0ZCBzdHlsZT13aWR0aDozMCU7d29yZC1icmVhazpicmVhay1hbGw7d29yZC13cmFwOmJyZWFrLXdvcmQ7PjAwOWJmNDhmZmQ1YTNjZWVjYjZhOTMzNDkyZDY0MWQyPC90ZD48L3RyPjx0cj48dGQgc3R5bGU9d2lkdGg6MzAlO2xpbmUtaGVpZ2h0OjEuNzU7Zm9udC13ZWlnaHQ6Ym9sZD7pgJrkv6F0b2tlbijms6jmhI/kuI3mmK9hY2Nlc3NfdG9rZW4pPC90ZD48dGQgc3R5bGU9d2lkdGg6MzAlO3dvcmQtYnJlYWs6YnJlYWstYWxsO3dvcmQtd3JhcDpicmVhay13b3JkOz5udWxsPC90ZD48L3RyPjx0cj48dGQgc3R5bGU9d2lkdGg6MzAlO2xpbmUtaGVpZ2h0OjEuNzU7Zm9udC13ZWlnaHQ6Ym9sZD7mtojmga/liqDop6Plr4blr4bpkqU8L3RkPjx0ZCBzdHlsZT13aWR0aDozMCU7d29yZC1icmVhazpicmVhay1hbGw7d29yZC13cmFwOmJyZWFrLXdvcmQ7Pm51bGw8L3RkPjwvdHI+PC90YWJsZT4=', 1, 1, 1, 1543889403);
  112. -- --------------------------------------------------------
  113. --
  114. -- 表的结构 `upload_manage_menu`
  115. --
  116. CREATE TABLE `upload_manage_menu` (
  117. `id` int(11) UNSIGNED NOT NULL COMMENT '菜单ID',
  118. `name` varchar(50) DEFAULT NULL COMMENT '菜单名称',
  119. `menu_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级菜单',
  120. `key` varchar(100) DEFAULT NULL COMMENT '菜单唯一KEY',
  121. `link` varchar(150) DEFAULT NULL COMMENT '链接(或路径)',
  122. `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序',
  123. `type` tinyint(1) NOT NULL DEFAULT '2' COMMENT '开启子菜单',
  124. `icon` varchar(100) DEFAULT NULL COMMENT '图标代码-请<A HREF="HTTPS://WWW.LAYUI.COM/DOC/ELEMENT/ICON.HTML" TARGET="_BLANK">点此</A>查看图标代码',
  125. `fast` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否快捷菜单',
  126. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  127. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
  128. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  129. --
  130. -- 转存表中的数据 `upload_manage_menu`
  131. --
  132. INSERT INTO `upload_manage_menu` (`id`, `name`, `menu_id`, `key`, `link`, `reorder`, `type`, `icon`, `fast`, `state`, `cdate`) VALUES
  133. (1, '主页', -1, 'console', 'console:主页', 10000, 2, 'layui-icon-home', 2, 1, 1543889305),
  134. (2, '控制台', 1, 'console.index', 'http://www.huoxingkandiqiu.com/wechat/manage/?l=console', 10, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889305),
  135. (3, '后台设置', -1, 'manage', '/share/lib/php/dever_package/manage/:后台设置', -100, 2, 'glyphicon glyphicon-wrench layui-icon-set-sm', 2, 1, 1543889305),
  136. (4, '管理账户设置', 3, 'manage.admin', 'project/database/list?project=manage&table=admin&menu=manage&search_option_state=1', 9, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889305),
  137. (5, '后台个性化', 3, 'manage.config', 'project/database/list?project=manage&table=config&menu=manage&search_option_state=1', 10, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889305),
  138. (6, '计划任务', 3, 'manage.cron', 'project/database/list?project=manage&table=cron&menu=manage&search_option_state=1', 1, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889305),
  139. (7, '管理组设置', 3, 'manage.group', 'project/database/list?project=manage&table=group&menu=manage&search_option_state=1', 8, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889305),
  140. (8, '管理操作日志', 3, 'manage.log', 'project/database/list?project=manage&table=log&menu=manage&search_option_state=1', 1, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889305),
  141. (9, '管理菜单设置', 3, 'manage.menu', 'project/database/list?project=manage&table=menu&menu=manage&search_option_state=1', 2, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889305),
  142. (10, '后台公告管理', 3, 'manage.notice', 'project/database/list?project=manage&table=notice&menu=manage&search_option_state=1', 7, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889305),
  143. (11, '字段记录表', 3, 'manage.opt', 'project/database/list?project=manage&table=opt&menu=manage&search_option_state=1', 1, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889305),
  144. (12, '管理角色设置', 3, 'manage.role', 'project/database/list?project=manage&table=role&menu=manage&search_option_state=1', 8, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889305),
  145. (13, '微信开发管理', -1, 'token', '/share/lib/php/dever_package/token/:微信开发管理', -1, 2, 'glyphicon glyphicon-road', 2, 1, 1543889336),
  146. (14, '请求日志', 13, 'token.log', 'project/database/list?project=token&table=log&menu=token&search_option_state=1', 1, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889336),
  147. (15, '项目管理', 13, 'token.project', 'project/database/list?project=token&table=project&menu=token&search_option_state=1', -10, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889336),
  148. (16, '小程序管理', -1, 'wechat_applet', '/share/lib/php/dever_package/wechat_applet/:小程序管理', 90, 2, 'glyphicon glyphicon-tint', 2, 1, 1543889345),
  149. (17, '模板消息列表', 16, 'wechat_applet.msg', 'project/database/list?project=wechat_applet&table=msg&menu=wechat_applet&search_option_state=1', 100, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889345),
  150. (18, '模板消息日志', 16, 'wechat_applet.msg_log', 'project/database/list?project=wechat_applet&table=msg_log&menu=wechat_applet&search_option_state=1', 90, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889345),
  151. (19, '发送模板消息', 16, 'wechat_applet.msg_send', 'project/database/list?project=wechat_applet&table=msg_send&menu=wechat_applet&search_option_state=1', 90, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889345),
  152. (20, '统计概览', 16, 'wechat_applet.total_base', 'project/database/list?project=wechat_applet&table=total_base&menu=wechat_applet&search_option_state=1', 20, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543889345),
  153. (21, '资源库', -1, 'upload', '/share/lib/php/dever_package/upload/:资源库', -90, 2, 'glyphicon glyphicon-upload layui-icon-picture', 2, 2, 1543915662),
  154. (22, '资源分类', 21, 'upload.cate', 'project/database/list?project=upload&table=cate&menu=upload&search_option_state=1', 99, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543915662),
  155. (23, '资源列表', 21, 'upload.file', 'project/database/list?project=upload&table=file&menu=upload&search_option_state=1', 9, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543915662),
  156. (24, '资源配置', 21, 'upload.upload', 'project/database/list?project=upload&table=upload&menu=upload&search_option_state=1', 100, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543915662),
  157. (25, '云端配置', 21, 'upload.yun', 'project/database/list?project=upload&table=yun&menu=upload&search_option_state=1', 1, 2, 'glyphicon glyphicon-folder-close', 2, 1, 1543915662);
  158. -- --------------------------------------------------------
  159. --
  160. -- 表的结构 `upload_manage_notice`
  161. --
  162. CREATE TABLE `upload_manage_notice` (
  163. `id` int(11) UNSIGNED NOT NULL COMMENT '公告ID',
  164. `name` varchar(32) DEFAULT NULL COMMENT '公告标题',
  165. `config` int(11) NOT NULL DEFAULT '1' COMMENT '后台配置',
  166. `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序(数值越大越靠前)',
  167. `content` text COMMENT '内容',
  168. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  169. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
  170. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  171. -- --------------------------------------------------------
  172. --
  173. -- 表的结构 `upload_manage_role`
  174. --
  175. CREATE TABLE `upload_manage_role` (
  176. `id` int(11) UNSIGNED NOT NULL COMMENT '角色ID',
  177. `name` varchar(24) DEFAULT NULL COMMENT '角色名',
  178. `role_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级角色',
  179. `self` tinyint(1) NOT NULL DEFAULT '2' COMMENT '是否只能管理自己发布的内容-请在需要此项权限的表中增加[数据查询时影响的字段]',
  180. `col_select` varchar(30) DEFAULT NULL COMMENT '数据查询时影响的字段-该项影响数据查询,如果在表中增加该字段,则后台在查询数据时自动查询当前管理员的ID下的数据,多个用逗号隔开,与[是否只能管理自己发布的内容]相关',
  181. `col_insert` varchar(30) DEFAULT NULL COMMENT '数据插入时影响的字段-该项影响数据插入,如果在表中增加该字段,则后台操作时自动为该字段赋值为当前管理员的ID,多个用逗号隔开',
  182. `col_update` varchar(30) DEFAULT NULL COMMENT '数据更新时影响的字段-该项影响数据更新,如果在表中增加该字段,则后台操作时自动为该字段赋值为当前管理员的ID,多个用逗号隔开',
  183. `oper` varchar(24) DEFAULT NULL COMMENT '操作权限',
  184. `auth` text COMMENT '左侧菜单',
  185. `top` text COMMENT '右侧头部菜单',
  186. `reorder` int(11) NOT NULL DEFAULT '1' COMMENT '排序-数值越大越靠前',
  187. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  188. `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  189. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
  190. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  191. --
  192. -- 转存表中的数据 `upload_manage_role`
  193. --
  194. INSERT INTO `upload_manage_role` (`id`, `name`, `role_id`, `self`, `col_select`, `col_insert`, `col_update`, `oper`, `auth`, `top`, `reorder`, `state`, `status`, `cdate`) VALUES
  195. (1, '系统管理员', -1, 2, 'admin', 'admin', 'admin', '1,2,3,4,5', 'all', NULL, 1, 1, 1, 1543889305),
  196. (2, '普通管理员', -1, 2, 'admin', 'admin', 'admin', '1,2,3,4,5', '', NULL, 1, 1, 1, 1543889305);
  197. -- --------------------------------------------------------
  198. --
  199. -- 表的结构 `upload_manage_top`
  200. --
  201. CREATE TABLE `upload_manage_top` (
  202. `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
  203. `name` varchar(50) DEFAULT NULL COMMENT '权限名',
  204. `top_id` int(11) NOT NULL DEFAULT '-1' COMMENT '上级权限',
  205. `key` varchar(100) DEFAULT NULL COMMENT '权限KEY',
  206. `value` varchar(30) DEFAULT NULL COMMENT '对应的值',
  207. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  208. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
  209. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  210. --
  211. -- 转存表中的数据 `upload_manage_top`
  212. --
  213. INSERT INTO `upload_manage_top` (`id`, `name`, `top_id`, `key`, `value`, `state`, `cdate`) VALUES
  214. (1, '微信开发管理-项目选择', -1, 'main/project_id', '1', 1, 1543889336),
  215. (2, '精美小程序', 1, 'main/project_id-3_1', '1', 1, 1543889403);
  216. -- --------------------------------------------------------
  217. --
  218. -- 表的结构 `upload_token_log`
  219. --
  220. CREATE TABLE `upload_token_log` (
  221. `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
  222. `name` varchar(100) DEFAULT NULL COMMENT '请求名称',
  223. `url` varchar(255) DEFAULT NULL COMMENT '请求地址',
  224. `param` text COMMENT '请求信息',
  225. `result` longtext COMMENT '微信返回信息',
  226. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  227. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
  228. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  229. -- --------------------------------------------------------
  230. --
  231. -- 表的结构 `upload_token_project`
  232. --
  233. CREATE TABLE `upload_token_project` (
  234. `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
  235. `name` varchar(60) DEFAULT NULL COMMENT '项目名称',
  236. `type` tinyint(11) NOT NULL DEFAULT '1' COMMENT '项目类型',
  237. `appid` varchar(150) DEFAULT NULL COMMENT '微信APPID',
  238. `secret` varchar(150) DEFAULT NULL COMMENT '微信SECRET',
  239. `token` varchar(150) DEFAULT NULL COMMENT '通信TOKEN(注意不是ACCESS_TOKEN)',
  240. `key` varchar(150) DEFAULT NULL COMMENT '消息加解密密钥',
  241. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  242. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
  243. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  244. --
  245. -- 转存表中的数据 `upload_token_project`
  246. --
  247. INSERT INTO `upload_token_project` (`id`, `name`, `type`, `appid`, `secret`, `token`, `key`, `state`, `cdate`) VALUES
  248. (1, '精美小程序', 3, 'wxd0590664d0004f23', '009bf48ffd5a3ceecb6a933492d641d2', '', '', 1, 1543889403);
  249. -- --------------------------------------------------------
  250. --
  251. -- 表的结构 `upload_wechat_applet_msg`
  252. --
  253. CREATE TABLE `upload_wechat_applet_msg` (
  254. `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
  255. `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目ID',
  256. `name` varchar(120) DEFAULT NULL COMMENT '模板标题',
  257. `key` varchar(20) DEFAULT NULL COMMENT '模板消息KEY-通过KEY值搜索数据',
  258. `template_id` varchar(120) DEFAULT NULL COMMENT '模板ID',
  259. `content` varchar(600) DEFAULT NULL COMMENT '模板内容',
  260. `example` varchar(600) DEFAULT NULL COMMENT '模板样例',
  261. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  262. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
  263. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  264. -- --------------------------------------------------------
  265. --
  266. -- 表的结构 `upload_wechat_applet_msg_log`
  267. --
  268. CREATE TABLE `upload_wechat_applet_msg_log` (
  269. `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
  270. `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
  271. `msg_id` int(11) NOT NULL DEFAULT '0' COMMENT '消息ID',
  272. `touser` varchar(120) DEFAULT NULL COMMENT '接收者',
  273. `page` varchar(200) DEFAULT NULL COMMENT '跳转页面',
  274. `data` text COMMENT '模板内容',
  275. `form_id` varchar(30) DEFAULT NULL COMMENT '表单或者支付ID',
  276. `emphasis_keyword` varchar(200) DEFAULT NULL COMMENT '模板需要放大的关键词',
  277. `num` int(11) NOT NULL DEFAULT '0' COMMENT '发送次数',
  278. `result` text COMMENT '微信返回信息',
  279. `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  280. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  281. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
  282. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  283. -- --------------------------------------------------------
  284. --
  285. -- 表的结构 `upload_wechat_applet_msg_send`
  286. --
  287. CREATE TABLE `upload_wechat_applet_msg_send` (
  288. `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
  289. `project_id` varchar(300) DEFAULT NULL COMMENT '选择项目',
  290. `key` varchar(20) DEFAULT NULL COMMENT '模板消息KEY',
  291. `page` varchar(200) DEFAULT NULL COMMENT '页面路径',
  292. `content` text COMMENT '模板内容',
  293. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  294. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间'
  295. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  296. -- --------------------------------------------------------
  297. --
  298. -- 表的结构 `upload_wechat_applet_total_base`
  299. --
  300. CREATE TABLE `upload_wechat_applet_total_base` (
  301. `id` int(11) UNSIGNED NOT NULL COMMENT 'ID',
  302. `project_id` int(11) NOT NULL DEFAULT '0' COMMENT '项目',
  303. `day` varchar(60) DEFAULT NULL COMMENT '统计日期',
  304. `daynum` int(11) NOT NULL DEFAULT '0' COMMENT '统计日期',
  305. `session_cnt` int(11) NOT NULL DEFAULT '0' COMMENT '打开次数',
  306. `visit_pv` int(11) NOT NULL DEFAULT '0' COMMENT '访问次数',
  307. `visit_uv` int(11) NOT NULL DEFAULT '0' COMMENT '访问人数',
  308. `visit_uv_new` int(11) NOT NULL DEFAULT '0' COMMENT '新用户数',
  309. `stay_time_uv` varchar(30) DEFAULT NULL COMMENT '人均停留时长',
  310. `stay_time_session` varchar(30) DEFAULT NULL COMMENT '次均停留时长',
  311. `visit_depth` varchar(30) DEFAULT NULL COMMENT '平均访问深度',
  312. `visit_total` int(11) NOT NULL DEFAULT '0' COMMENT '累计用户数',
  313. `share_pv` int(11) NOT NULL DEFAULT '0' COMMENT '转发次数',
  314. `share_uv` int(11) NOT NULL DEFAULT '0' COMMENT '转发人数',
  315. `state` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态',
  316. `cdate` int(11) NOT NULL DEFAULT '0' COMMENT '录入时间'
  317. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
  318. --
  319. -- 转储表的索引
  320. --
  321. --
  322. -- 表的索引 `upload_manage_admin`
  323. --
  324. ALTER TABLE `upload_manage_admin`
  325. ADD PRIMARY KEY (`id`);
  326. --
  327. -- 表的索引 `upload_manage_auth`
  328. --
  329. ALTER TABLE `upload_manage_auth`
  330. ADD PRIMARY KEY (`id`);
  331. --
  332. -- 表的索引 `upload_manage_config`
  333. --
  334. ALTER TABLE `upload_manage_config`
  335. ADD PRIMARY KEY (`id`);
  336. --
  337. -- 表的索引 `upload_manage_group`
  338. --
  339. ALTER TABLE `upload_manage_group`
  340. ADD PRIMARY KEY (`id`);
  341. --
  342. -- 表的索引 `upload_manage_log`
  343. --
  344. ALTER TABLE `upload_manage_log`
  345. ADD PRIMARY KEY (`id`);
  346. --
  347. -- 表的索引 `upload_manage_menu`
  348. --
  349. ALTER TABLE `upload_manage_menu`
  350. ADD PRIMARY KEY (`id`);
  351. --
  352. -- 表的索引 `upload_manage_notice`
  353. --
  354. ALTER TABLE `upload_manage_notice`
  355. ADD PRIMARY KEY (`id`);
  356. --
  357. -- 表的索引 `upload_manage_role`
  358. --
  359. ALTER TABLE `upload_manage_role`
  360. ADD PRIMARY KEY (`id`);
  361. --
  362. -- 表的索引 `upload_manage_top`
  363. --
  364. ALTER TABLE `upload_manage_top`
  365. ADD PRIMARY KEY (`id`);
  366. --
  367. -- 表的索引 `upload_token_log`
  368. --
  369. ALTER TABLE `upload_token_log`
  370. ADD PRIMARY KEY (`id`);
  371. --
  372. -- 表的索引 `upload_token_project`
  373. --
  374. ALTER TABLE `upload_token_project`
  375. ADD PRIMARY KEY (`id`);
  376. --
  377. -- 表的索引 `upload_wechat_applet_msg`
  378. --
  379. ALTER TABLE `upload_wechat_applet_msg`
  380. ADD PRIMARY KEY (`id`);
  381. --
  382. -- 表的索引 `upload_wechat_applet_msg_log`
  383. --
  384. ALTER TABLE `upload_wechat_applet_msg_log`
  385. ADD PRIMARY KEY (`id`);
  386. --
  387. -- 表的索引 `upload_wechat_applet_msg_send`
  388. --
  389. ALTER TABLE `upload_wechat_applet_msg_send`
  390. ADD PRIMARY KEY (`id`);
  391. --
  392. -- 表的索引 `upload_wechat_applet_total_base`
  393. --
  394. ALTER TABLE `upload_wechat_applet_total_base`
  395. ADD PRIMARY KEY (`id`);
  396. --
  397. -- 在导出的表使用AUTO_INCREMENT
  398. --
  399. --
  400. -- 使用表AUTO_INCREMENT `upload_manage_admin`
  401. --
  402. ALTER TABLE `upload_manage_admin`
  403. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '管理员ID', AUTO_INCREMENT=2;
  404. --
  405. -- 使用表AUTO_INCREMENT `upload_manage_auth`
  406. --
  407. ALTER TABLE `upload_manage_auth`
  408. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
  409. --
  410. -- 使用表AUTO_INCREMENT `upload_manage_config`
  411. --
  412. ALTER TABLE `upload_manage_config`
  413. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置ID', AUTO_INCREMENT=2;
  414. --
  415. -- 使用表AUTO_INCREMENT `upload_manage_group`
  416. --
  417. ALTER TABLE `upload_manage_group`
  418. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '组ID', AUTO_INCREMENT=2;
  419. --
  420. -- 使用表AUTO_INCREMENT `upload_manage_log`
  421. --
  422. ALTER TABLE `upload_manage_log`
  423. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', AUTO_INCREMENT=2;
  424. --
  425. -- 使用表AUTO_INCREMENT `upload_manage_menu`
  426. --
  427. ALTER TABLE `upload_manage_menu`
  428. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '菜单ID', AUTO_INCREMENT=26;
  429. --
  430. -- 使用表AUTO_INCREMENT `upload_manage_notice`
  431. --
  432. ALTER TABLE `upload_manage_notice`
  433. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '公告ID';
  434. --
  435. -- 使用表AUTO_INCREMENT `upload_manage_role`
  436. --
  437. ALTER TABLE `upload_manage_role`
  438. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '角色ID', AUTO_INCREMENT=3;
  439. --
  440. -- 使用表AUTO_INCREMENT `upload_manage_top`
  441. --
  442. ALTER TABLE `upload_manage_top`
  443. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', AUTO_INCREMENT=3;
  444. --
  445. -- 使用表AUTO_INCREMENT `upload_token_log`
  446. --
  447. ALTER TABLE `upload_token_log`
  448. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
  449. --
  450. -- 使用表AUTO_INCREMENT `upload_token_project`
  451. --
  452. ALTER TABLE `upload_token_project`
  453. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID', AUTO_INCREMENT=2;
  454. --
  455. -- 使用表AUTO_INCREMENT `upload_wechat_applet_msg`
  456. --
  457. ALTER TABLE `upload_wechat_applet_msg`
  458. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
  459. --
  460. -- 使用表AUTO_INCREMENT `upload_wechat_applet_msg_log`
  461. --
  462. ALTER TABLE `upload_wechat_applet_msg_log`
  463. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
  464. --
  465. -- 使用表AUTO_INCREMENT `upload_wechat_applet_msg_send`
  466. --
  467. ALTER TABLE `upload_wechat_applet_msg_send`
  468. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
  469. --
  470. -- 使用表AUTO_INCREMENT `upload_wechat_applet_total_base`
  471. --
  472. ALTER TABLE `upload_wechat_applet_total_base`
  473. MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID';
  474. COMMIT;
  475. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  476. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  477. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;