dolphin.sql 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : localhost
  4. Source Server Version : 50540
  5. Source Host : localhost:3306
  6. Source Database : dolphinphp
  7. Target Server Type : MYSQL
  8. Target Server Version : 50540
  9. File Encoding : 65001
  10. Date: 2016-12-13 21:43:18
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for `dp_admin_access`
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `dp_admin_access`;
  17. CREATE TABLE `dp_admin_access` (
  18. `module` varchar(16) NOT NULL DEFAULT '' COMMENT '模型名称',
  19. `group` varchar(16) NOT NULL DEFAULT '' COMMENT '权限分组标识',
  20. `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
  21. `nid` varchar(16) NOT NULL DEFAULT '' COMMENT '授权节点id',
  22. `tag` varchar(16) NOT NULL DEFAULT '' COMMENT '分组标签'
  23. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='统一授权表';
  24. -- ----------------------------
  25. -- Records of dp_admin_access
  26. -- ----------------------------
  27. -- ----------------------------
  28. -- Table structure for `dp_admin_action`
  29. -- ----------------------------
  30. DROP TABLE IF EXISTS `dp_admin_action`;
  31. CREATE TABLE `dp_admin_action` (
  32. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  33. `module` varchar(16) NOT NULL DEFAULT '' COMMENT '所属模块名',
  34. `name` varchar(32) NOT NULL DEFAULT '' COMMENT '行为唯一标识',
  35. `title` varchar(80) NOT NULL DEFAULT '' COMMENT '行为标题',
  36. `remark` varchar(128) NOT NULL DEFAULT '' COMMENT '行为描述',
  37. `rule` text NOT NULL COMMENT '行为规则',
  38. `log` text NOT NULL COMMENT '日志规则',
  39. `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态',
  40. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  41. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  42. PRIMARY KEY (`id`)
  43. ) ENGINE=MyISAM AUTO_INCREMENT=43 DEFAULT CHARSET=utf8 COMMENT='系统行为表';
  44. -- ----------------------------
  45. -- Records of dp_admin_action
  46. -- ----------------------------
  47. INSERT INTO `dp_admin_action` VALUES ('1', 'user', 'user_add', '添加用户', '添加用户', '', '[user|get_nickname] 添加了用户:[record|get_nickname]', '1', '1480156399', '1480163853');
  48. INSERT INTO `dp_admin_action` VALUES ('2', 'user', 'user_edit', '编辑用户', '编辑用户', '', '[user|get_nickname] 编辑了用户:[details]', '1', '1480164578', '1480297748');
  49. INSERT INTO `dp_admin_action` VALUES ('3', 'user', 'user_delete', '删除用户', '删除用户', '', '[user|get_nickname] 删除了用户:[details]', '1', '1480168582', '1480168616');
  50. INSERT INTO `dp_admin_action` VALUES ('4', 'user', 'user_enable', '启用用户', '启用用户', '', '[user|get_nickname] 启用了用户:[details]', '1', '1480169185', '1480169185');
  51. INSERT INTO `dp_admin_action` VALUES ('5', 'user', 'user_disable', '禁用用户', '禁用用户', '', '[user|get_nickname] 禁用了用户:[details]', '1', '1480169214', '1480170581');
  52. INSERT INTO `dp_admin_action` VALUES ('6', 'user', 'user_access', '用户授权', '用户授权', '', '[user|get_nickname] 对用户:[record|get_nickname] 进行了授权操作。详情:[details]', '1', '1480221441', '1480221563');
  53. INSERT INTO `dp_admin_action` VALUES ('7', 'user', 'role_add', '添加角色', '添加角色', '', '[user|get_nickname] 添加了角色:[details]', '1', '1480251473', '1480251473');
  54. INSERT INTO `dp_admin_action` VALUES ('8', 'user', 'role_edit', '编辑角色', '编辑角色', '', '[user|get_nickname] 编辑了角色:[details]', '1', '1480252369', '1480252369');
  55. INSERT INTO `dp_admin_action` VALUES ('9', 'user', 'role_delete', '删除角色', '删除角色', '', '[user|get_nickname] 删除了角色:[details]', '1', '1480252580', '1480252580');
  56. INSERT INTO `dp_admin_action` VALUES ('10', 'user', 'role_enable', '启用角色', '启用角色', '', '[user|get_nickname] 启用了角色:[details]', '1', '1480252620', '1480252620');
  57. INSERT INTO `dp_admin_action` VALUES ('11', 'user', 'role_disable', '禁用角色', '禁用角色', '', '[user|get_nickname] 禁用了角色:[details]', '1', '1480252651', '1480252651');
  58. INSERT INTO `dp_admin_action` VALUES ('12', 'user', 'attachment_enable', '启用附件', '启用附件', '', '[user|get_nickname] 启用了附件:附件ID([details])', '1', '1480253226', '1480253332');
  59. INSERT INTO `dp_admin_action` VALUES ('13', 'user', 'attachment_disable', '禁用附件', '禁用附件', '', '[user|get_nickname] 禁用了附件:附件ID([details])', '1', '1480253267', '1480253340');
  60. INSERT INTO `dp_admin_action` VALUES ('14', 'user', 'attachment_delete', '删除附件', '删除附件', '', '[user|get_nickname] 删除了附件:附件ID([details])', '1', '1480253323', '1480253323');
  61. INSERT INTO `dp_admin_action` VALUES ('15', 'admin', 'config_add', '添加配置', '添加配置', '', '[user|get_nickname] 添加了配置,[details]', '1', '1480296196', '1480296196');
  62. INSERT INTO `dp_admin_action` VALUES ('16', 'admin', 'config_edit', '编辑配置', '编辑配置', '', '[user|get_nickname] 编辑了配置:[details]', '1', '1480296960', '1480296960');
  63. INSERT INTO `dp_admin_action` VALUES ('17', 'admin', 'config_enable', '启用配置', '启用配置', '', '[user|get_nickname] 启用了配置:[details]', '1', '1480298479', '1480298479');
  64. INSERT INTO `dp_admin_action` VALUES ('18', 'admin', 'config_disable', '禁用配置', '禁用配置', '', '[user|get_nickname] 禁用了配置:[details]', '1', '1480298506', '1480298506');
  65. INSERT INTO `dp_admin_action` VALUES ('19', 'admin', 'config_delete', '删除配置', '删除配置', '', '[user|get_nickname] 删除了配置:[details]', '1', '1480298532', '1480298532');
  66. INSERT INTO `dp_admin_action` VALUES ('20', 'admin', 'database_export', '备份数据库', '备份数据库', '', '[user|get_nickname] 备份了数据库:[details]', '1', '1480298946', '1480298946');
  67. INSERT INTO `dp_admin_action` VALUES ('21', 'admin', 'database_import', '还原数据库', '还原数据库', '', '[user|get_nickname] 还原了数据库:[details]', '1', '1480301990', '1480302022');
  68. INSERT INTO `dp_admin_action` VALUES ('22', 'admin', 'database_optimize', '优化数据表', '优化数据表', '', '[user|get_nickname] 优化了数据表:[details]', '1', '1480302616', '1480302616');
  69. INSERT INTO `dp_admin_action` VALUES ('23', 'admin', 'database_repair', '修复数据表', '修复数据表', '', '[user|get_nickname] 修复了数据表:[details]', '1', '1480302798', '1480302798');
  70. INSERT INTO `dp_admin_action` VALUES ('24', 'admin', 'database_backup_delete', '删除数据库备份', '删除数据库备份', '', '[user|get_nickname] 删除了数据库备份:[details]', '1', '1480302870', '1480302870');
  71. INSERT INTO `dp_admin_action` VALUES ('25', 'admin', 'hook_add', '添加钩子', '添加钩子', '', '[user|get_nickname] 添加了钩子:[details]', '1', '1480303198', '1480303198');
  72. INSERT INTO `dp_admin_action` VALUES ('26', 'admin', 'hook_edit', '编辑钩子', '编辑钩子', '', '[user|get_nickname] 编辑了钩子:[details]', '1', '1480303229', '1480303229');
  73. INSERT INTO `dp_admin_action` VALUES ('27', 'admin', 'hook_delete', '删除钩子', '删除钩子', '', '[user|get_nickname] 删除了钩子:[details]', '1', '1480303264', '1480303264');
  74. INSERT INTO `dp_admin_action` VALUES ('28', 'admin', 'hook_enable', '启用钩子', '启用钩子', '', '[user|get_nickname] 启用了钩子:[details]', '1', '1480303294', '1480303294');
  75. INSERT INTO `dp_admin_action` VALUES ('29', 'admin', 'hook_disable', '禁用钩子', '禁用钩子', '', '[user|get_nickname] 禁用了钩子:[details]', '1', '1480303409', '1480303409');
  76. INSERT INTO `dp_admin_action` VALUES ('30', 'admin', 'menu_add', '添加节点', '添加节点', '', '[user|get_nickname] 添加了节点:[details]', '1', '1480305468', '1480305468');
  77. INSERT INTO `dp_admin_action` VALUES ('31', 'admin', 'menu_edit', '编辑节点', '编辑节点', '', '[user|get_nickname] 编辑了节点:[details]', '1', '1480305513', '1480305513');
  78. INSERT INTO `dp_admin_action` VALUES ('32', 'admin', 'menu_delete', '删除节点', '删除节点', '', '[user|get_nickname] 删除了节点:[details]', '1', '1480305562', '1480305562');
  79. INSERT INTO `dp_admin_action` VALUES ('33', 'admin', 'menu_enable', '启用节点', '启用节点', '', '[user|get_nickname] 启用了节点:[details]', '1', '1480305630', '1480305630');
  80. INSERT INTO `dp_admin_action` VALUES ('34', 'admin', 'menu_disable', '禁用节点', '禁用节点', '', '[user|get_nickname] 禁用了节点:[details]', '1', '1480305659', '1480305659');
  81. INSERT INTO `dp_admin_action` VALUES ('35', 'admin', 'module_install', '安装模块', '安装模块', '', '[user|get_nickname] 安装了模块:[details]', '1', '1480307558', '1480307558');
  82. INSERT INTO `dp_admin_action` VALUES ('36', 'admin', 'module_uninstall', '卸载模块', '卸载模块', '', '[user|get_nickname] 卸载了模块:[details]', '1', '1480307588', '1480307588');
  83. INSERT INTO `dp_admin_action` VALUES ('37', 'admin', 'module_enable', '启用模块', '启用模块', '', '[user|get_nickname] 启用了模块:[details]', '1', '1480307618', '1480307618');
  84. INSERT INTO `dp_admin_action` VALUES ('38', 'admin', 'module_disable', '禁用模块', '禁用模块', '', '[user|get_nickname] 禁用了模块:[details]', '1', '1480307653', '1480307653');
  85. INSERT INTO `dp_admin_action` VALUES ('39', 'admin', 'module_export', '导出模块', '导出模块', '', '[user|get_nickname] 导出了模块:[details]', '1', '1480307682', '1480307682');
  86. INSERT INTO `dp_admin_action` VALUES ('40', 'admin', 'packet_install', '安装数据包', '安装数据包', '', '[user|get_nickname] 安装了数据包:[details]', '1', '1480308342', '1480308342');
  87. INSERT INTO `dp_admin_action` VALUES ('41', 'admin', 'packet_uninstall', '卸载数据包', '卸载数据包', '', '[user|get_nickname] 卸载了数据包:[details]', '1', '1480308372', '1480308372');
  88. INSERT INTO `dp_admin_action` VALUES ('42', 'admin', 'system_config_update', '更新系统设置', '更新系统设置', '', '[user|get_nickname] 更新了系统设置:[details]', '1', '1480309555', '1480309642');
  89. -- ----------------------------
  90. -- Table structure for `dp_admin_attachment`
  91. -- ----------------------------
  92. DROP TABLE IF EXISTS `dp_admin_attachment`;
  93. CREATE TABLE `dp_admin_attachment` (
  94. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  95. `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
  96. `name` varchar(255) NOT NULL DEFAULT '' COMMENT '文件名',
  97. `module` varchar(32) NOT NULL DEFAULT '' COMMENT '模块名,由哪个模块上传的',
  98. `path` varchar(255) NOT NULL DEFAULT '' COMMENT '文件路径',
  99. `thumb` varchar(255) NOT NULL DEFAULT '' COMMENT '缩略图路径',
  100. `url` varchar(255) NOT NULL DEFAULT '' COMMENT '文件链接',
  101. `mime` varchar(128) NOT NULL DEFAULT '' COMMENT '文件mime类型',
  102. `ext` char(8) NOT NULL DEFAULT '' COMMENT '文件类型',
  103. `size` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '文件大小',
  104. `md5` char(32) NOT NULL DEFAULT '' COMMENT '文件md5',
  105. `sha1` char(40) NOT NULL DEFAULT '' COMMENT 'sha1 散列值',
  106. `driver` varchar(16) NOT NULL DEFAULT 'local' COMMENT '上传驱动',
  107. `download` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '下载次数',
  108. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上传时间',
  109. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  110. `sort` int(11) NOT NULL DEFAULT '100' COMMENT '排序',
  111. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态',
  112. `width` int(8) unsigned NOT NULL DEFAULT '0' COMMENT '图片宽度',
  113. `height` int(8) unsigned NOT NULL DEFAULT '0' COMMENT '图片高度',
  114. PRIMARY KEY (`id`)
  115. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='附件表';
  116. -- ----------------------------
  117. -- Records of dp_admin_attachment
  118. -- ----------------------------
  119. -- ----------------------------
  120. -- Table structure for `dp_admin_config`
  121. -- ----------------------------
  122. DROP TABLE IF EXISTS `dp_admin_config`;
  123. CREATE TABLE `dp_admin_config` (
  124. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  125. `name` varchar(64) NOT NULL DEFAULT '' COMMENT '名称',
  126. `title` varchar(32) NOT NULL DEFAULT '' COMMENT '标题',
  127. `group` varchar(32) NOT NULL DEFAULT '' COMMENT '配置分组',
  128. `type` varchar(32) NOT NULL DEFAULT '' COMMENT '类型',
  129. `value` text NOT NULL COMMENT '配置值',
  130. `options` text NOT NULL COMMENT '配置项',
  131. `tips` varchar(256) NOT NULL DEFAULT '' COMMENT '配置提示',
  132. `ajax_url` varchar(256) NOT NULL DEFAULT '' COMMENT '联动下拉框ajax地址',
  133. `next_items` varchar(256) NOT NULL DEFAULT '' COMMENT '联动下拉框的下级下拉框名,多个以逗号隔开',
  134. `param` varchar(32) NOT NULL DEFAULT '' COMMENT '联动下拉框请求参数名',
  135. `format` varchar(32) NOT NULL DEFAULT '' COMMENT '格式,用于格式文本',
  136. `table` varchar(32) NOT NULL DEFAULT '' COMMENT '表名,只用于快速联动类型',
  137. `level` tinyint(2) unsigned NOT NULL DEFAULT '2' COMMENT '联动级别,只用于快速联动类型',
  138. `key` varchar(32) NOT NULL DEFAULT '' COMMENT '键字段,只用于快速联动类型',
  139. `option` varchar(32) NOT NULL DEFAULT '' COMMENT '值字段,只用于快速联动类型',
  140. `pid` varchar(32) NOT NULL DEFAULT '' COMMENT '父级id字段,只用于快速联动类型',
  141. `ak` varchar(32) NOT NULL DEFAULT '' COMMENT '百度地图appkey',
  142. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  143. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  144. `sort` int(11) NOT NULL DEFAULT '100' COMMENT '排序',
  145. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态:0禁用,1启用',
  146. PRIMARY KEY (`id`)
  147. ) ENGINE=MyISAM AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COMMENT='系统配置表';
  148. -- ----------------------------
  149. -- Records of dp_admin_config
  150. -- ----------------------------
  151. INSERT INTO `dp_admin_config` VALUES ('1', 'web_site_status', '站点开关', 'base', 'switch', '1', '', '站点关闭后将不能访问,后台可正常登录', '', '', '', '', '', '2', '', '', '', '', '1475240395', '1477403914', '1', '1');
  152. INSERT INTO `dp_admin_config` VALUES ('2', 'web_site_title', '站点标题', 'base', 'text', '海豚PHP', '', '调用方式:<code>config(\'web_site_title\')</code>', '', '', '', '', '', '2', '', '', '', '', '1475240646', '1477710341', '2', '1');
  153. INSERT INTO `dp_admin_config` VALUES ('3', 'web_site_slogan', '站点标语', 'base', 'text', '海豚PHP,极简、极速、极致', '', '站点口号,调用方式:<code>config(\'web_site_slogan\')</code>', '', '', '', '', '', '2', '', '', '', '', '1475240994', '1477710357', '3', '1');
  154. INSERT INTO `dp_admin_config` VALUES ('4', 'web_site_logo', '站点LOGO', 'base', 'image', '', '', '', '', '', '', '', '', '2', '', '', '', '', '1475241067', '1475241067', '4', '1');
  155. INSERT INTO `dp_admin_config` VALUES ('5', 'web_site_description', '站点描述', 'base', 'textarea', '', '', '网站描述,有利于搜索引擎抓取相关信息', '', '', '', '', '', '2', '', '', '', '', '1475241186', '1475241186', '6', '1');
  156. INSERT INTO `dp_admin_config` VALUES ('6', 'web_site_keywords', '站点关键词', 'base', 'text', '海豚PHP、PHP开发框架、后台框架', '', '网站搜索引擎关键字', '', '', '', '', '', '2', '', '', '', '', '1475241328', '1475241328', '7', '1');
  157. INSERT INTO `dp_admin_config` VALUES ('7', 'web_site_copyright', '版权信息', 'base', 'text', 'Copyright © 2015-2017 DolphinPHP All rights reserved.', '', '调用方式:<code>config(\'web_site_copyright\')</code>', '', '', '', '', '', '2', '', '', '', '', '1475241416', '1477710383', '8', '1');
  158. INSERT INTO `dp_admin_config` VALUES ('8', 'web_site_icp', '备案信息', 'base', 'text', '', '', '调用方式:<code>config(\'web_site_icp\')</code>', '', '', '', '', '', '2', '', '', '', '', '1475241441', '1477710441', '9', '1');
  159. INSERT INTO `dp_admin_config` VALUES ('9', 'web_site_statistics', '站点统计', 'base', 'textarea', '', '', '网站统计代码,支持百度、Google、cnzz等,调用方式:<code>config(\'web_site_statistics\')</code>', '', '', '', '', '', '2', '', '', '', '', '1475241498', '1477710455', '10', '1');
  160. INSERT INTO `dp_admin_config` VALUES ('10', 'config_group', '配置分组', 'system', 'array', 'base:基本\r\nsystem:系统\r\nupload:上传\r\ndevelop:开发\r\ndatabase:数据库', '', '', '', '', '', '', '', '2', '', '', '', '', '1475241716', '1477649446', '100', '1');
  161. INSERT INTO `dp_admin_config` VALUES ('11', 'form_item_type', '配置类型', 'system', 'array', 'text:单行文本\r\ntextarea:多行文本\r\nstatic:静态文本\r\npassword:密码\r\ncheckbox:复选框\r\nradio:单选按钮\r\ndate:日期\r\ndatetime:日期+时间\r\nhidden:隐藏\r\nswitch:开关\r\narray:数组\r\nselect:下拉框\r\nlinkage:普通联动下拉框\r\nlinkages:快速联动下拉框\r\nimage:单张图片\r\nimages:多张图片\r\nfile:单个文件\r\nfiles:多个文件\r\nueditor:UEditor 编辑器\r\nwangeditor:wangEditor 编辑器\r\neditormd:markdown 编辑器\r\nckeditor:ckeditor 编辑器\r\nicon:字体图标\r\ntags:标签\r\nnumber:数字\r\nbmap:百度地图\r\ncolorpicker:取色器\r\njcrop:图片裁剪\r\nmasked:格式文本\r\nrange:范围\r\ntime:时间', '', '', '', '', '', '', '', '2', '', '', '', '', '1475241835', '1495853193', '100', '1');
  162. INSERT INTO `dp_admin_config` VALUES ('12', 'upload_file_size', '文件上传大小限制', 'upload', 'text', '0', '', '0为不限制大小,单位:kb', '', '', '', '', '', '2', '', '', '', '', '1475241897', '1477663520', '100', '1');
  163. INSERT INTO `dp_admin_config` VALUES ('13', 'upload_file_ext', '允许上传的文件后缀', 'upload', 'tags', 'doc,docx,xls,xlsx,ppt,pptx,pdf,wps,txt,rar,zip,gz,bz2,7z', '', '多个后缀用逗号隔开,不填写则不限制类型', '', '', '', '', '', '2', '', '', '', '', '1475241975', '1477649489', '100', '1');
  164. INSERT INTO `dp_admin_config` VALUES ('14', 'upload_image_size', '图片上传大小限制', 'upload', 'text', '0', '', '0为不限制大小,单位:kb', '', '', '', '', '', '2', '', '', '', '', '1475242015', '1477663529', '100', '1');
  165. INSERT INTO `dp_admin_config` VALUES ('15', 'upload_image_ext', '允许上传的图片后缀', 'upload', 'tags', 'gif,jpg,jpeg,bmp,png', '', '多个后缀用逗号隔开,不填写则不限制类型', '', '', '', '', '', '2', '', '', '', '', '1475242056', '1477649506', '100', '1');
  166. INSERT INTO `dp_admin_config` VALUES ('16', 'list_rows', '分页数量', 'system', 'number', '20', '', '每页的记录数', '', '', '', '', '', '2', '', '', '', '', '1475242066', '1476074507', '101', '1');
  167. INSERT INTO `dp_admin_config` VALUES ('17', 'system_color', '后台配色方案', 'system', 'radio', 'default', 'default:Default\r\namethyst:Amethyst\r\ncity:City\r\nflat:Flat\r\nmodern:Modern\r\nsmooth:Smooth', '', '', '', '', '', '', '2', '', '', '', '', '1475250066', '1477316689', '102', '1');
  168. INSERT INTO `dp_admin_config` VALUES ('18', 'develop_mode', '开发模式', 'develop', 'radio', '1', '0:关闭\r\n1:开启', '', '', '', '', '', '', '2', '', '', '', '', '1476864205', '1476864231', '100', '1');
  169. INSERT INTO `dp_admin_config` VALUES ('19', 'app_trace', '显示页面Trace', 'develop', 'radio', '0', '0:否\r\n1:是', '', '', '', '', '', '', '2', '', '', '', '', '1476866355', '1476866355', '100', '1');
  170. INSERT INTO `dp_admin_config` VALUES ('21', 'data_backup_path', '数据库备份根路径', 'database', 'text', '../data/', '', '路径必须以 / 结尾', '', '', '', '', '', '2', '', '', '', '', '1477017745', '1477018467', '100', '1');
  171. INSERT INTO `dp_admin_config` VALUES ('22', 'data_backup_part_size', '数据库备份卷大小', 'database', 'text', '20971520', '', '该值用于限制压缩后的分卷最大长度。单位:B;建议设置20M', '', '', '', '', '', '2', '', '', '', '', '1477017886', '1477017886', '100', '1');
  172. INSERT INTO `dp_admin_config` VALUES ('23', 'data_backup_compress', '数据库备份文件是否启用压缩', 'database', 'radio', '1', '0:否\r\n1:是', '压缩备份文件需要PHP环境支持 <code>gzopen</code>, <code>gzwrite</code>函数', '', '', '', '', '', '2', '', '', '', '', '1477017978', '1477018172', '100', '1');
  173. INSERT INTO `dp_admin_config` VALUES ('24', 'data_backup_compress_level', '数据库备份文件压缩级别', 'database', 'radio', '9', '1:最低\r\n4:一般\r\n9:最高', '数据库备份文件的压缩级别,该配置在开启压缩时生效', '', '', '', '', '', '2', '', '', '', '', '1477018083', '1477018083', '100', '1');
  174. INSERT INTO `dp_admin_config` VALUES ('25', 'top_menu_max', '顶部导航模块数量', 'system', 'text', '10', '', '设置顶部导航默认显示的模块数量', '', '', '', '', '', '2', '', '', '', '', '1477579289', '1477579289', '103', '1');
  175. INSERT INTO `dp_admin_config` VALUES ('26', 'web_site_logo_text', '站点LOGO文字', 'base', 'image', '', '', '', '', '', '', '', '', '2', '', '', '', '', '1477620643', '1477620643', '5', '1');
  176. INSERT INTO `dp_admin_config` VALUES ('27', 'upload_image_thumb', '缩略图尺寸', 'upload', 'text', '', '', '不填写则不生成缩略图,如需生成 <code>300x300</code> 的缩略图,则填写 <code>300,300</code> ,请注意,逗号必须是英文逗号', '', '', '', '', '', '2', '', '', '', '', '1477644150', '1477649513', '100', '1');
  177. INSERT INTO `dp_admin_config` VALUES ('28', 'upload_image_thumb_type', '缩略图裁剪类型', 'upload', 'radio', '1', '1:等比例缩放\r\n2:缩放后填充\r\n3:居中裁剪\r\n4:左上角裁剪\r\n5:右下角裁剪\r\n6:固定尺寸缩放', '该项配置只有在启用生成缩略图时才生效', '', '', '', '', '', '2', '', '', '', '', '1477646271', '1477649521', '100', '1');
  178. INSERT INTO `dp_admin_config` VALUES ('29', 'upload_thumb_water', '添加水印', 'upload', 'switch', '0', '', '', '', '', '', '', '', '2', '', '', '', '', '1477649648', '1477649648', '100', '1');
  179. INSERT INTO `dp_admin_config` VALUES ('30', 'upload_thumb_water_pic', '水印图片', 'upload', 'image', '', '', '只有开启水印功能才生效', '', '', '', '', '', '2', '', '', '', '', '1477656390', '1477656390', '100', '1');
  180. INSERT INTO `dp_admin_config` VALUES ('31', 'upload_thumb_water_position', '水印位置', 'upload', 'radio', '9', '1:左上角\r\n2:上居中\r\n3:右上角\r\n4:左居中\r\n5:居中\r\n6:右居中\r\n7:左下角\r\n8:下居中\r\n9:右下角', '只有开启水印功能才生效', '', '', '', '', '', '2', '', '', '', '', '1477656528', '1477656528', '100', '1');
  181. INSERT INTO `dp_admin_config` VALUES ('32', 'upload_thumb_water_alpha', '水印透明度', 'upload', 'text', '50', '', '请输入0~100之间的数字,数字越小,透明度越高', '', '', '', '', '', '2', '', '', '', '', '1477656714', '1477661309', '100', '1');
  182. INSERT INTO `dp_admin_config` VALUES ('33', 'wipe_cache_type', '清除缓存类型', 'system', 'checkbox', 'TEMP_PATH', 'TEMP_PATH:应用缓存\r\nLOG_PATH:应用日志\r\nCACHE_PATH:项目模板缓存', '清除缓存时,要删除的缓存类型', '', '', '', '', '', '2', '', '', '', '', '1477727305', '1477727305', '100', '1');
  183. INSERT INTO `dp_admin_config` VALUES ('34', 'captcha_signin', '后台验证码开关', 'system', 'switch', '0', '', '后台登录时是否需要验证码', '', '', '', '', '', '2', '', '', '', '', '1478771958', '1478771958', '99', '1');
  184. INSERT INTO `dp_admin_config` VALUES ('35', 'home_default_module', '前台默认模块', 'system', 'select', 'index', '', '前台默认访问的模块,该模块必须有Index控制器和index方法', '', '', '', '', '', '0', '', '', '', '', '1486714723', '1486715620', '104', '1');
  185. INSERT INTO `dp_admin_config` VALUES ('36', 'minify_status', '开启minify', 'system', 'switch', '0', '', '开启minify会压缩合并js、css文件,可以减少资源请求次数,如果不支持minify,可关闭', '', '', '', '', '', '0', '', '', '', '', '1487035843', '1487035843', '99', '1');
  186. INSERT INTO `dp_admin_config` VALUES ('37', 'upload_driver', '上传驱动', 'upload', 'radio', 'local', 'local:本地', '图片或文件上传驱动', '', '', '', '', '', '0', '', '', '', '', '1501488567', '1501490821', '100', '1');
  187. INSERT INTO `dp_admin_config` VALUES ('38', 'system_log', '系统日志', 'system', 'switch', '1', '', '是否开启系统日志功能', '', '', '', '', '', '0', '', '', '', '', '1512635391', '1512635391', '99', '1');
  188. INSERT INTO `dp_admin_config` VALUES ('39', 'asset_version', '资源版本号', 'develop', 'text', '20180327', '', '可通过修改版号强制用户更新静态文件', '', '', '', '', '', '0', '', '', '', '', '1522143239', '1522143239', '100', '1');
  189. -- ----------------------------
  190. -- Table structure for `dp_admin_hook`
  191. -- ----------------------------
  192. DROP TABLE IF EXISTS `dp_admin_hook`;
  193. CREATE TABLE `dp_admin_hook` (
  194. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  195. `name` varchar(32) NOT NULL DEFAULT '' COMMENT '钩子名称',
  196. `plugin` varchar(32) NOT NULL DEFAULT '' COMMENT '钩子来自哪个插件',
  197. `description` varchar(255) NOT NULL DEFAULT '' COMMENT '钩子描述',
  198. `system` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '是否为系统钩子',
  199. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  200. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  201. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态',
  202. PRIMARY KEY (`id`)
  203. ) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COMMENT='钩子表';
  204. -- ----------------------------
  205. -- Records of dp_admin_hook
  206. -- ----------------------------
  207. INSERT INTO `dp_admin_hook` VALUES ('1', 'admin_index', '', '后台首页', '1', '1468174214', '1477757518', '1');
  208. INSERT INTO `dp_admin_hook` VALUES ('2', 'plugin_index_tab_list', '', '插件扩展tab钩子', '1', '1468174214', '1468174214', '1');
  209. INSERT INTO `dp_admin_hook` VALUES ('3', 'module_index_tab_list', '', '模块扩展tab钩子', '1', '1468174214', '1468174214', '1');
  210. INSERT INTO `dp_admin_hook` VALUES ('4', 'page_tips', '', '每个页面的提示', '1', '1468174214', '1468174214', '1');
  211. INSERT INTO `dp_admin_hook` VALUES ('5', 'signin_footer', '', '登录页面底部钩子', '1', '1479269315', '1479269315', '1');
  212. INSERT INTO `dp_admin_hook` VALUES ('6', 'signin_captcha', '', '登录页面验证码钩子', '1', '1479269315', '1479269315', '1');
  213. INSERT INTO `dp_admin_hook` VALUES ('7', 'signin', '', '登录控制器钩子', '1', '1479386875', '1479386875', '1');
  214. INSERT INTO `dp_admin_hook` VALUES ('8', 'upload_attachment', '', '附件上传钩子', '1', '1501493808', '1501493808', '1');
  215. INSERT INTO `dp_admin_hook` VALUES ('9', 'page_plugin_js', '', '页面插件js钩子', '1', '1503633591', '1503633591', '1');
  216. INSERT INTO `dp_admin_hook` VALUES ('10', 'page_plugin_css', '', '页面插件css钩子', '1', '1503633591', '1503633591', '1');
  217. INSERT INTO `dp_admin_hook` VALUES ('11', 'signin_sso', '', '单点登录钩子', '1', '1503633591', '1503633591', '1');
  218. INSERT INTO `dp_admin_hook` VALUES ('12', 'signout_sso', '', '单点退出钩子', '1', '1503633591', '1503633591', '1');
  219. INSERT INTO `dp_admin_hook` VALUES ('13', 'user_add', '', '添加用户钩子', '1', '1503633591', '1503633591', '1');
  220. INSERT INTO `dp_admin_hook` VALUES ('14', 'user_edit', '', '编辑用户钩子', '1', '1503633591', '1503633591', '1');
  221. INSERT INTO `dp_admin_hook` VALUES ('15', 'user_delete', '', '删除用户钩子', '1', '1503633591', '1503633591', '1');
  222. INSERT INTO `dp_admin_hook` VALUES ('16', 'user_enable', '', '启用用户钩子', '1', '1503633591', '1503633591', '1');
  223. INSERT INTO `dp_admin_hook` VALUES ('17', 'user_disable', '', '禁用用户钩子', '1', '1503633591', '1503633591', '1');
  224. -- ----------------------------
  225. -- Table structure for `dp_admin_hook_plugin`
  226. -- ----------------------------
  227. DROP TABLE IF EXISTS `dp_admin_hook_plugin`;
  228. CREATE TABLE `dp_admin_hook_plugin` (
  229. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  230. `hook` varchar(32) NOT NULL DEFAULT '' COMMENT '钩子id',
  231. `plugin` varchar(32) NOT NULL DEFAULT '' COMMENT '插件标识',
  232. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间',
  233. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  234. `sort` int(11) unsigned NOT NULL DEFAULT '100' COMMENT '排序',
  235. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态',
  236. PRIMARY KEY (`id`)
  237. ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='钩子-插件对应表';
  238. -- ----------------------------
  239. -- Records of dp_admin_hook_plugin
  240. -- ----------------------------
  241. INSERT INTO `dp_admin_hook_plugin` VALUES ('1', 'admin_index', 'SystemInfo', '1477757503', '1477757503', '1', '1');
  242. INSERT INTO `dp_admin_hook_plugin` VALUES ('2', 'admin_index', 'DevTeam', '1477755780', '1477755780', '2', '1');
  243. -- ----------------------------
  244. -- Table structure for dp_admin_icon
  245. -- ----------------------------
  246. DROP TABLE IF EXISTS `dp_admin_icon`;
  247. CREATE TABLE `dp_admin_icon` (
  248. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  249. `name` varchar(32) NOT NULL DEFAULT '' COMMENT '图标名称',
  250. `url` varchar(255) NOT NULL DEFAULT '' COMMENT '图标css地址',
  251. `prefix` varchar(32) NOT NULL DEFAULT '' COMMENT '图标前缀',
  252. `font_family` varchar(32) NOT NULL DEFAULT '' COMMENT '字体名',
  253. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  254. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  255. `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态',
  256. PRIMARY KEY (`id`)
  257. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='图标表';
  258. -- ----------------------------
  259. -- Records of dp_admin_icon
  260. -- ----------------------------
  261. -- ----------------------------
  262. -- Table structure for dp_admin_icon_list
  263. -- ----------------------------
  264. DROP TABLE IF EXISTS `dp_admin_icon_list`;
  265. CREATE TABLE `dp_admin_icon_list` (
  266. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  267. `icon_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '所属图标id',
  268. `title` varchar(128) NOT NULL DEFAULT '' COMMENT '图标标题',
  269. `class` varchar(255) NOT NULL DEFAULT '' COMMENT '图标类名',
  270. `code` varchar(128) NOT NULL DEFAULT '' COMMENT '图标关键词',
  271. PRIMARY KEY (`id`)
  272. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='详细图标列表';
  273. -- ----------------------------
  274. -- Records of dp_admin_icon_list
  275. -- ----------------------------
  276. -- ----------------------------
  277. -- Table structure for `dp_admin_log`
  278. -- ----------------------------
  279. DROP TABLE IF EXISTS `dp_admin_log`;
  280. CREATE TABLE `dp_admin_log` (
  281. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  282. `action_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '行为id',
  283. `user_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '执行用户id',
  284. `action_ip` bigint(20) NOT NULL COMMENT '执行行为者ip',
  285. `model` varchar(50) NOT NULL DEFAULT '' COMMENT '触发行为的表',
  286. `record_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '触发行为的数据id',
  287. `remark` longtext NOT NULL COMMENT '日志备注',
  288. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态',
  289. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '执行行为的时间',
  290. PRIMARY KEY (`id`),
  291. KEY `action_ip_ix` (`action_ip`),
  292. KEY `action_id_ix` (`action_id`),
  293. KEY `user_id_ix` (`user_id`)
  294. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='行为日志表';
  295. -- ----------------------------
  296. -- Records of dp_admin_log
  297. -- ----------------------------
  298. -- ----------------------------
  299. -- Table structure for `dp_admin_menu`
  300. -- ----------------------------
  301. DROP TABLE IF EXISTS `dp_admin_menu`;
  302. CREATE TABLE `dp_admin_menu` (
  303. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  304. `pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上级菜单id',
  305. `module` varchar(16) NOT NULL DEFAULT '' COMMENT '模块名称',
  306. `title` varchar(32) NOT NULL DEFAULT '' COMMENT '菜单标题',
  307. `icon` varchar(64) NOT NULL DEFAULT '' COMMENT '菜单图标',
  308. `url_type` varchar(16) NOT NULL DEFAULT '' COMMENT '链接类型(link:外链,module:模块)',
  309. `url_value` varchar(255) NOT NULL DEFAULT '' COMMENT '链接地址',
  310. `url_target` varchar(16) NOT NULL DEFAULT '_self' COMMENT '链接打开方式:_blank,_self',
  311. `online_hide` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '网站上线后是否隐藏',
  312. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  313. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  314. `sort` int(11) NOT NULL DEFAULT '100' COMMENT '排序',
  315. `system_menu` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '是否为系统菜单,系统菜单不可删除',
  316. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态',
  317. `params` varchar(255) NOT NULL DEFAULT '' COMMENT '参数',
  318. PRIMARY KEY (`id`)
  319. ) ENGINE=MyISAM AUTO_INCREMENT=214 DEFAULT CHARSET=utf8 COMMENT='后台菜单表';
  320. -- ----------------------------
  321. -- Records of dp_admin_menu
  322. -- ----------------------------
  323. INSERT INTO `dp_admin_menu` VALUES ('1', '0', 'admin', '首页', 'fa fa-fw fa-home', 'module_admin', 'admin/index/index', '_self', '0', '1467617722', '1477710540', '1', '1', '1', '');
  324. INSERT INTO `dp_admin_menu` VALUES ('2', '1', 'admin', '快捷操作', 'fa fa-fw fa-folder-open-o', 'module_admin', '', '_self', '0', '1467618170', '1477710695', '1', '1', '1', '');
  325. INSERT INTO `dp_admin_menu` VALUES ('3', '2', 'admin', '清空缓存', 'fa fa-fw fa-trash-o', 'module_admin', 'admin/index/wipecache', '_self', '0', '1467618273', '1489049773', '3', '1', '1', '');
  326. INSERT INTO `dp_admin_menu` VALUES ('4', '0', 'admin', '系统', 'fa fa-fw fa-gear', 'module_admin', 'admin/system/index', '_self', '0', '1467618361', '1477710540', '2', '1', '1', '');
  327. INSERT INTO `dp_admin_menu` VALUES ('5', '4', 'admin', '系统功能', 'si si-wrench', 'module_admin', '', '_self', '0', '1467618441', '1477710695', '1', '1', '1', '');
  328. INSERT INTO `dp_admin_menu` VALUES ('6', '5', 'admin', '系统设置', 'fa fa-fw fa-wrench', 'module_admin', 'admin/system/index', '_self', '0', '1467618490', '1477710695', '1', '1', '1', '');
  329. INSERT INTO `dp_admin_menu` VALUES ('7', '5', 'admin', '配置管理', 'fa fa-fw fa-gears', 'module_admin', 'admin/config/index', '_self', '0', '1467618618', '1477710695', '2', '1', '1', '');
  330. INSERT INTO `dp_admin_menu` VALUES ('8', '7', 'admin', '新增', '', 'module_admin', 'admin/config/add', '_self', '0', '1467618648', '1477710695', '1', '1', '1', '');
  331. INSERT INTO `dp_admin_menu` VALUES ('9', '7', 'admin', '编辑', '', 'module_admin', 'admin/config/edit', '_self', '0', '1467619566', '1477710695', '2', '1', '1', '');
  332. INSERT INTO `dp_admin_menu` VALUES ('10', '7', 'admin', '删除', '', 'module_admin', 'admin/config/delete', '_self', '0', '1467619583', '1477710695', '3', '1', '1', '');
  333. INSERT INTO `dp_admin_menu` VALUES ('11', '7', 'admin', '启用', '', 'module_admin', 'admin/config/enable', '_self', '0', '1467619609', '1477710695', '4', '1', '1', '');
  334. INSERT INTO `dp_admin_menu` VALUES ('12', '7', 'admin', '禁用', '', 'module_admin', 'admin/config/disable', '_self', '0', '1467619637', '1477710695', '5', '1', '1', '');
  335. INSERT INTO `dp_admin_menu` VALUES ('13', '5', 'admin', '节点管理', 'fa fa-fw fa-bars', 'module_admin', 'admin/menu/index', '_self', '0', '1467619882', '1477710695', '3', '1', '1', '');
  336. INSERT INTO `dp_admin_menu` VALUES ('14', '13', 'admin', '新增', '', 'module_admin', 'admin/menu/add', '_self', '0', '1467619902', '1477710695', '1', '1', '1', '');
  337. INSERT INTO `dp_admin_menu` VALUES ('15', '13', 'admin', '编辑', '', 'module_admin', 'admin/menu/edit', '_self', '0', '1467620331', '1477710695', '2', '1', '1', '');
  338. INSERT INTO `dp_admin_menu` VALUES ('16', '13', 'admin', '删除', '', 'module_admin', 'admin/menu/delete', '_self', '0', '1467620363', '1477710695', '3', '1', '1', '');
  339. INSERT INTO `dp_admin_menu` VALUES ('17', '13', 'admin', '启用', '', 'module_admin', 'admin/menu/enable', '_self', '0', '1467620386', '1477710695', '4', '1', '1', '');
  340. INSERT INTO `dp_admin_menu` VALUES ('18', '13', 'admin', '禁用', '', 'module_admin', 'admin/menu/disable', '_self', '0', '1467620404', '1477710695', '5', '1', '1', '');
  341. INSERT INTO `dp_admin_menu` VALUES ('19', '68', 'user', '权限管理', 'fa fa-fw fa-key', 'module_admin', '', '_self', '0', '1467688065', '1477710702', '1', '1', '1', '');
  342. INSERT INTO `dp_admin_menu` VALUES ('20', '19', 'user', '用户管理', 'fa fa-fw fa-user', 'module_admin', 'user/index/index', '_self', '0', '1467688137', '1477710702', '1', '1', '1', '');
  343. INSERT INTO `dp_admin_menu` VALUES ('21', '20', 'user', '新增', '', 'module_admin', 'user/index/add', '_self', '0', '1467688177', '1477710702', '1', '1', '1', '');
  344. INSERT INTO `dp_admin_menu` VALUES ('22', '20', 'user', '编辑', '', 'module_admin', 'user/index/edit', '_self', '0', '1467688202', '1477710702', '2', '1', '1', '');
  345. INSERT INTO `dp_admin_menu` VALUES ('23', '20', 'user', '删除', '', 'module_admin', 'user/index/delete', '_self', '0', '1467688219', '1477710702', '3', '1', '1', '');
  346. INSERT INTO `dp_admin_menu` VALUES ('24', '20', 'user', '启用', '', 'module_admin', 'user/index/enable', '_self', '0', '1467688238', '1477710702', '4', '1', '1', '');
  347. INSERT INTO `dp_admin_menu` VALUES ('25', '20', 'user', '禁用', '', 'module_admin', 'user/index/disable', '_self', '0', '1467688256', '1477710702', '5', '1', '1', '');
  348. INSERT INTO `dp_admin_menu` VALUES ('211', '64', 'admin', '日志详情', '', 'module_admin', 'admin/log/details', '_self', '0', '1480299320', '1480299320', '100', '0', '1', '');
  349. INSERT INTO `dp_admin_menu` VALUES ('32', '4', 'admin', '扩展中心', 'si si-social-dropbox', 'module_admin', '', '_self', '0', '1467688853', '1477710695', '2', '1', '1', '');
  350. INSERT INTO `dp_admin_menu` VALUES ('33', '32', 'admin', '模块管理', 'fa fa-fw fa-th-large', 'module_admin', 'admin/module/index', '_self', '0', '1467689008', '1477710695', '1', '1', '1', '');
  351. INSERT INTO `dp_admin_menu` VALUES ('34', '33', 'admin', '导入', '', 'module_admin', 'admin/module/import', '_self', '0', '1467689153', '1477710695', '1', '1', '1', '');
  352. INSERT INTO `dp_admin_menu` VALUES ('35', '33', 'admin', '导出', '', 'module_admin', 'admin/module/export', '_self', '0', '1467689173', '1477710695', '2', '1', '1', '');
  353. INSERT INTO `dp_admin_menu` VALUES ('36', '33', 'admin', '安装', '', 'module_admin', 'admin/module/install', '_self', '0', '1467689192', '1477710695', '3', '1', '1', '');
  354. INSERT INTO `dp_admin_menu` VALUES ('37', '33', 'admin', '卸载', '', 'module_admin', 'admin/module/uninstall', '_self', '0', '1467689241', '1477710695', '4', '1', '1', '');
  355. INSERT INTO `dp_admin_menu` VALUES ('38', '33', 'admin', '启用', '', 'module_admin', 'admin/module/enable', '_self', '0', '1467689294', '1477710695', '5', '1', '1', '');
  356. INSERT INTO `dp_admin_menu` VALUES ('39', '33', 'admin', '禁用', '', 'module_admin', 'admin/module/disable', '_self', '0', '1467689312', '1477710695', '6', '1', '1', '');
  357. INSERT INTO `dp_admin_menu` VALUES ('40', '33', 'admin', '更新', '', 'module_admin', 'admin/module/update', '_self', '0', '1467689341', '1477710695', '7', '1', '1', '');
  358. INSERT INTO `dp_admin_menu` VALUES ('41', '32', 'admin', '插件管理', 'fa fa-fw fa-puzzle-piece', 'module_admin', 'admin/plugin/index', '_self', '0', '1467689527', '1477710695', '2', '1', '1', '');
  359. INSERT INTO `dp_admin_menu` VALUES ('42', '41', 'admin', '导入', '', 'module_admin', 'admin/plugin/import', '_self', '0', '1467689650', '1477710695', '1', '1', '1', '');
  360. INSERT INTO `dp_admin_menu` VALUES ('43', '41', 'admin', '导出', '', 'module_admin', 'admin/plugin/export', '_self', '0', '1467689665', '1477710695', '2', '1', '1', '');
  361. INSERT INTO `dp_admin_menu` VALUES ('44', '41', 'admin', '安装', '', 'module_admin', 'admin/plugin/install', '_self', '0', '1467689680', '1477710695', '3', '1', '1', '');
  362. INSERT INTO `dp_admin_menu` VALUES ('45', '41', 'admin', '卸载', '', 'module_admin', 'admin/plugin/uninstall', '_self', '0', '1467689700', '1477710695', '4', '1', '1', '');
  363. INSERT INTO `dp_admin_menu` VALUES ('46', '41', 'admin', '启用', '', 'module_admin', 'admin/plugin/enable', '_self', '0', '1467689730', '1477710695', '5', '1', '1', '');
  364. INSERT INTO `dp_admin_menu` VALUES ('47', '41', 'admin', '禁用', '', 'module_admin', 'admin/plugin/disable', '_self', '0', '1467689747', '1477710695', '6', '1', '1', '');
  365. INSERT INTO `dp_admin_menu` VALUES ('48', '41', 'admin', '设置', '', 'module_admin', 'admin/plugin/config', '_self', '0', '1467689789', '1477710695', '7', '1', '1', '');
  366. INSERT INTO `dp_admin_menu` VALUES ('49', '41', 'admin', '管理', '', 'module_admin', 'admin/plugin/manage', '_self', '0', '1467689846', '1477710695', '8', '1', '1', '');
  367. INSERT INTO `dp_admin_menu` VALUES ('50', '5', 'admin', '附件管理', 'fa fa-fw fa-cloud-upload', 'module_admin', 'admin/attachment/index', '_self', '0', '1467690161', '1477710695', '4', '1', '1', '');
  368. INSERT INTO `dp_admin_menu` VALUES ('51', '70', 'admin', '文件上传', '', 'module_admin', 'admin/attachment/upload', '_self', '0', '1467690240', '1489049773', '1', '1', '1', '');
  369. INSERT INTO `dp_admin_menu` VALUES ('52', '50', 'admin', '下载', '', 'module_admin', 'admin/attachment/download', '_self', '0', '1467690334', '1477710695', '2', '1', '1', '');
  370. INSERT INTO `dp_admin_menu` VALUES ('53', '50', 'admin', '启用', '', 'module_admin', 'admin/attachment/enable', '_self', '0', '1467690352', '1477710695', '3', '1', '1', '');
  371. INSERT INTO `dp_admin_menu` VALUES ('54', '50', 'admin', '禁用', '', 'module_admin', 'admin/attachment/disable', '_self', '0', '1467690369', '1477710695', '4', '1', '1', '');
  372. INSERT INTO `dp_admin_menu` VALUES ('55', '50', 'admin', '删除', '', 'module_admin', 'admin/attachment/delete', '_self', '0', '1467690396', '1477710695', '5', '1', '1', '');
  373. INSERT INTO `dp_admin_menu` VALUES ('56', '41', 'admin', '删除', '', 'module_admin', 'admin/plugin/delete', '_self', '0', '1467858065', '1477710695', '11', '1', '1', '');
  374. INSERT INTO `dp_admin_menu` VALUES ('57', '41', 'admin', '编辑', '', 'module_admin', 'admin/plugin/edit', '_self', '0', '1467858092', '1477710695', '10', '1', '1', '');
  375. INSERT INTO `dp_admin_menu` VALUES ('60', '41', 'admin', '新增', '', 'module_admin', 'admin/plugin/add', '_self', '0', '1467858421', '1477710695', '9', '1', '1', '');
  376. INSERT INTO `dp_admin_menu` VALUES ('61', '41', 'admin', '执行', '', 'module_admin', 'admin/plugin/execute', '_self', '0', '1467879016', '1477710695', '14', '1', '1', '');
  377. INSERT INTO `dp_admin_menu` VALUES ('62', '13', 'admin', '保存', '', 'module_admin', 'admin/menu/save', '_self', '0', '1468073039', '1477710695', '6', '1', '1', '');
  378. INSERT INTO `dp_admin_menu` VALUES ('64', '5', 'admin', '系统日志', 'fa fa-fw fa-book', 'module_admin', 'admin/log/index', '_self', '0', '1476111944', '1477710695', '6', '0', '1', '');
  379. INSERT INTO `dp_admin_menu` VALUES ('65', '5', 'admin', '数据库管理', 'fa fa-fw fa-database', 'module_admin', 'admin/database/index', '_self', '0', '1476111992', '1477710695', '8', '0', '1', '');
  380. INSERT INTO `dp_admin_menu` VALUES ('66', '32', 'admin', '数据包管理', 'fa fa-fw fa-database', 'module_admin', 'admin/packet/index', '_self', '0', '1476112326', '1477710695', '4', '0', '1', '');
  381. INSERT INTO `dp_admin_menu` VALUES ('67', '19', 'user', '角色管理', 'fa fa-fw fa-users', 'module_admin', 'user/role/index', '_self', '0', '1476113025', '1477710702', '3', '0', '1', '');
  382. INSERT INTO `dp_admin_menu` VALUES ('68', '0', 'user', '用户', 'fa fa-fw fa-user', 'module_admin', 'user/index/index', '_self', '0', '1476193348', '1477710540', '3', '0', '1', '');
  383. INSERT INTO `dp_admin_menu` VALUES ('69', '32', 'admin', '钩子管理', 'fa fa-fw fa-anchor', 'module_admin', 'admin/hook/index', '_self', '0', '1476236193', '1477710695', '3', '0', '1', '');
  384. INSERT INTO `dp_admin_menu` VALUES ('70', '2', 'admin', '后台首页', 'fa fa-fw fa-tachometer', 'module_admin', 'admin/index/index', '_self', '0', '1476237472', '1489049773', '1', '0', '1', '');
  385. INSERT INTO `dp_admin_menu` VALUES ('71', '67', 'user', '新增', '', 'module_admin', 'user/role/add', '_self', '0', '1476256935', '1477710702', '1', '0', '1', '');
  386. INSERT INTO `dp_admin_menu` VALUES ('72', '67', 'user', '编辑', '', 'module_admin', 'user/role/edit', '_self', '0', '1476256968', '1477710702', '2', '0', '1', '');
  387. INSERT INTO `dp_admin_menu` VALUES ('73', '67', 'user', '删除', '', 'module_admin', 'user/role/delete', '_self', '0', '1476256993', '1477710702', '3', '0', '1', '');
  388. INSERT INTO `dp_admin_menu` VALUES ('74', '67', 'user', '启用', '', 'module_admin', 'user/role/enable', '_self', '0', '1476257023', '1477710702', '4', '0', '1', '');
  389. INSERT INTO `dp_admin_menu` VALUES ('75', '67', 'user', '禁用', '', 'module_admin', 'user/role/disable', '_self', '0', '1476257046', '1477710702', '5', '0', '1', '');
  390. INSERT INTO `dp_admin_menu` VALUES ('76', '20', 'user', '授权', '', 'module_admin', 'user/index/access', '_self', '0', '1476375187', '1477710702', '6', '0', '1', '');
  391. INSERT INTO `dp_admin_menu` VALUES ('77', '69', 'admin', '新增', '', 'module_admin', 'admin/hook/add', '_self', '0', '1476668971', '1477710695', '1', '0', '1', '');
  392. INSERT INTO `dp_admin_menu` VALUES ('78', '69', 'admin', '编辑', '', 'module_admin', 'admin/hook/edit', '_self', '0', '1476669006', '1477710695', '2', '0', '1', '');
  393. INSERT INTO `dp_admin_menu` VALUES ('79', '69', 'admin', '删除', '', 'module_admin', 'admin/hook/delete', '_self', '0', '1476669375', '1477710695', '3', '0', '1', '');
  394. INSERT INTO `dp_admin_menu` VALUES ('80', '69', 'admin', '启用', '', 'module_admin', 'admin/hook/enable', '_self', '0', '1476669427', '1477710695', '4', '0', '1', '');
  395. INSERT INTO `dp_admin_menu` VALUES ('81', '69', 'admin', '禁用', '', 'module_admin', 'admin/hook/disable', '_self', '0', '1476669564', '1477710695', '5', '0', '1', '');
  396. INSERT INTO `dp_admin_menu` VALUES ('183', '66', 'admin', '安装', '', 'module_admin', 'admin/packet/install', '_self', '0', '1476851362', '1477710695', '1', '0', '1', '');
  397. INSERT INTO `dp_admin_menu` VALUES ('184', '66', 'admin', '卸载', '', 'module_admin', 'admin/packet/uninstall', '_self', '0', '1476851382', '1477710695', '2', '0', '1', '');
  398. INSERT INTO `dp_admin_menu` VALUES ('185', '5', 'admin', '行为管理', 'fa fa-fw fa-bug', 'module_admin', 'admin/action/index', '_self', '0', '1476882441', '1477710695', '7', '0', '1', '');
  399. INSERT INTO `dp_admin_menu` VALUES ('186', '185', 'admin', '新增', '', 'module_admin', 'admin/action/add', '_self', '0', '1476884439', '1477710695', '1', '0', '1', '');
  400. INSERT INTO `dp_admin_menu` VALUES ('187', '185', 'admin', '编辑', '', 'module_admin', 'admin/action/edit', '_self', '0', '1476884464', '1477710695', '2', '0', '1', '');
  401. INSERT INTO `dp_admin_menu` VALUES ('188', '185', 'admin', '启用', '', 'module_admin', 'admin/action/enable', '_self', '0', '1476884493', '1477710695', '3', '0', '1', '');
  402. INSERT INTO `dp_admin_menu` VALUES ('189', '185', 'admin', '禁用', '', 'module_admin', 'admin/action/disable', '_self', '0', '1476884534', '1477710695', '4', '0', '1', '');
  403. INSERT INTO `dp_admin_menu` VALUES ('190', '185', 'admin', '删除', '', 'module_admin', 'admin/action/delete', '_self', '0', '1476884551', '1477710695', '5', '0', '1', '');
  404. INSERT INTO `dp_admin_menu` VALUES ('191', '65', 'admin', '备份数据库', '', 'module_admin', 'admin/database/export', '_self', '0', '1476972746', '1477710695', '1', '0', '1', '');
  405. INSERT INTO `dp_admin_menu` VALUES ('192', '65', 'admin', '还原数据库', '', 'module_admin', 'admin/database/import', '_self', '0', '1476972772', '1477710695', '2', '0', '1', '');
  406. INSERT INTO `dp_admin_menu` VALUES ('193', '65', 'admin', '优化表', '', 'module_admin', 'admin/database/optimize', '_self', '0', '1476972800', '1477710695', '3', '0', '1', '');
  407. INSERT INTO `dp_admin_menu` VALUES ('194', '65', 'admin', '修复表', '', 'module_admin', 'admin/database/repair', '_self', '0', '1476972825', '1477710695', '4', '0', '1', '');
  408. INSERT INTO `dp_admin_menu` VALUES ('195', '65', 'admin', '删除备份', '', 'module_admin', 'admin/database/delete', '_self', '0', '1476973457', '1477710695', '5', '0', '1', '');
  409. INSERT INTO `dp_admin_menu` VALUES ('210', '41', 'admin', '快速编辑', '', 'module_admin', 'admin/plugin/quickedit', '_self', '0', '1477713981', '1477713981', '100', '0', '1', '');
  410. INSERT INTO `dp_admin_menu` VALUES ('209', '185', 'admin', '快速编辑', '', 'module_admin', 'admin/action/quickedit', '_self', '0', '1477713939', '1477713939', '100', '0', '1', '');
  411. INSERT INTO `dp_admin_menu` VALUES ('208', '7', 'admin', '快速编辑', '', 'module_admin', 'admin/config/quickedit', '_self', '0', '1477713808', '1477713808', '100', '0', '1', '');
  412. INSERT INTO `dp_admin_menu` VALUES ('207', '69', 'admin', '快速编辑', '', 'module_admin', 'admin/hook/quickedit', '_self', '0', '1477713770', '1477713770', '100', '0', '1', '');
  413. INSERT INTO `dp_admin_menu` VALUES ('212', '2', 'admin', '个人设置', 'fa fa-fw fa-user', 'module_admin', 'admin/index/profile', '_self', '0', '1489049767', '1489049773', '2', '0', '1', '');
  414. INSERT INTO `dp_admin_menu` VALUES ('213', '70', 'admin', '检查版本更新', '', 'module_admin', 'admin/index/checkupdate', '_self', '0', '1490588610', '1490588610', '100', '0', '1', '');
  415. INSERT INTO `dp_admin_menu` VALUES ('214', '68', 'user', '消息管理', 'fa fa-fw fa-comments-o', 'module_admin', '', '_self', '0', '1520492129', '1520492129', '100', '0', '1', '');
  416. INSERT INTO `dp_admin_menu` VALUES ('215', '214', 'user', '消息列表', 'fa fa-fw fa-th-list', 'module_admin', 'user/message/index', '_self', '0', '1520492195', '1520492195', '100', '0', '1', '');
  417. INSERT INTO `dp_admin_menu` VALUES ('216', '215', 'user', '新增', '', 'module_admin', 'user/message/add', '_self', '0', '1520492195', '1520492195', '100', '0', '1', '');
  418. INSERT INTO `dp_admin_menu` VALUES ('217', '215', 'user', '编辑', '', 'module_admin', 'user/message/edit', '_self', '0', '1520492195', '1520492195', '100', '0', '1', '');
  419. INSERT INTO `dp_admin_menu` VALUES ('218', '215', 'user', '删除', '', 'module_admin', 'user/message/delete', '_self', '0', '1520492195', '1520492195', '100', '0', '1', '');
  420. INSERT INTO `dp_admin_menu` VALUES ('219', '215', 'user', '启用', '', 'module_admin', 'user/message/enable', '_self', '0', '1520492195', '1520492195', '100', '0', '1', '');
  421. INSERT INTO `dp_admin_menu` VALUES ('220', '215', 'user', '禁用', '', 'module_admin', 'user/message/disable', '_self', '0', '1520492195', '1520492195', '100', '0', '1', '');
  422. INSERT INTO `dp_admin_menu` VALUES ('221', '215', 'user', '快速编辑', '', 'module_admin', 'user/message/quickedit', '_self', '0', '1520492195', '1520492195', '100', '0', '1', '');
  423. INSERT INTO `dp_admin_menu` VALUES ('222', '2', 'admin', '消息中心', 'fa fa-fw fa-comments-o', 'module_admin', 'admin/message/index', '_self', '0', '1520495992', '1520496254', '100', '0', '1', '');
  424. INSERT INTO `dp_admin_menu` VALUES ('223', '222', 'admin', '删除', '', 'module_admin', 'admin/message/delete', '_self', '0', '1520495992', '1520496263', '100', '0', '1', '');
  425. INSERT INTO `dp_admin_menu` VALUES ('224', '222', 'admin', '启用', '', 'module_admin', 'admin/message/enable', '_self', '0', '1520495992', '1520496270', '100', '0', '1', '');
  426. INSERT INTO `dp_admin_menu` VALUES ('225', '32', 'admin', '图标管理', 'fa fa-fw fa-tint', 'module_admin', 'admin/icon/index', '_self', '0', '1520908295', '1520908295', '100', '0', '1', '');
  427. INSERT INTO `dp_admin_menu` VALUES ('226', '225', 'admin', '新增', '', 'module_admin', 'admin/icon/add', '_self', '0', '1520908295', '1520908295', '100', '0', '1', '');
  428. INSERT INTO `dp_admin_menu` VALUES ('227', '225', 'admin', '编辑', '', 'module_admin', 'admin/icon/edit', '_self', '0', '1520908295', '1520908295', '100', '0', '1', '');
  429. INSERT INTO `dp_admin_menu` VALUES ('228', '225', 'admin', '删除', '', 'module_admin', 'admin/icon/delete', '_self', '0', '1520908295', '1520908295', '100', '0', '1', '');
  430. INSERT INTO `dp_admin_menu` VALUES ('229', '225', 'admin', '启用', '', 'module_admin', 'admin/icon/enable', '_self', '0', '1520908295', '1520908295', '100', '0', '1', '');
  431. INSERT INTO `dp_admin_menu` VALUES ('230', '225', 'admin', '禁用', '', 'module_admin', 'admin/icon/disable', '_self', '0', '1520908295', '1520908295', '100', '0', '1', '');
  432. INSERT INTO `dp_admin_menu` VALUES ('231', '225', 'admin', '快速编辑', '', 'module_admin', 'admin/icon/quickedit', '_self', '0', '1520908295', '1520908295', '100', '0', '1', '');
  433. INSERT INTO `dp_admin_menu` VALUES ('232', '225', 'admin', '图标列表', '', 'module_admin', 'admin/icon/items', '_self', '0', '1520923368', '1520923368', '100', '0', '1', '');
  434. INSERT INTO `dp_admin_menu` VALUES ('233', '225', 'admin', '更新图标', '', 'module_admin', 'admin/icon/reload', '_self', '0', '1520931908', '1520931908', '100', '0', '1', '');
  435. INSERT INTO `dp_admin_menu` VALUES ('234', '20', 'user', '快速编辑', '', 'module_admin', 'user/index/quickedit', '_self', '0', '1526028258', '1526028258', '100', '0', '1', '');
  436. INSERT INTO `dp_admin_menu` VALUES ('235', '67', 'user', '快速编辑', '', 'module_admin', 'user/role/quickedit', '_self', '0', '1526028282', '1526028282', '100', '0', '1', '');
  437. INSERT INTO `dp_admin_menu` VALUES ('236', '6', 'admin', '快速编辑', '', 'module_admin', 'admin/system/quickedit', '_self', '0', '1559054310', '1559054310', '100', '0', '1', '');
  438. -- ----------------------------
  439. -- Table structure for dp_admin_message
  440. -- ----------------------------
  441. DROP TABLE IF EXISTS `dp_admin_message`;
  442. CREATE TABLE `dp_admin_message` (
  443. `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  444. `uid_receive` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '接收消息的用户id',
  445. `uid_send` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '发送消息的用户id',
  446. `type` varchar(128) NOT NULL DEFAULT '' COMMENT '消息分类',
  447. `content` text NOT NULL COMMENT '消息内容',
  448. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态',
  449. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  450. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  451. `read_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '阅读时间',
  452. PRIMARY KEY (`id`)
  453. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='消息表';
  454. -- ----------------------------
  455. -- Records of dp_admin_message
  456. -- ----------------------------
  457. -- ----------------------------
  458. -- Table structure for `dp_admin_module`
  459. -- ----------------------------
  460. DROP TABLE IF EXISTS `dp_admin_module`;
  461. CREATE TABLE `dp_admin_module` (
  462. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  463. `name` varchar(32) NOT NULL DEFAULT '' COMMENT '模块名称(标识)',
  464. `title` varchar(32) NOT NULL DEFAULT '' COMMENT '模块标题',
  465. `icon` varchar(64) NOT NULL DEFAULT '' COMMENT '图标',
  466. `description` text NOT NULL COMMENT '描述',
  467. `author` varchar(32) NOT NULL DEFAULT '' COMMENT '作者',
  468. `author_url` varchar(255) NOT NULL DEFAULT '' COMMENT '作者主页',
  469. `config` text NULL COMMENT '配置信息',
  470. `access` text NULL COMMENT '授权配置',
  471. `version` varchar(16) NOT NULL DEFAULT '' COMMENT '版本号',
  472. `identifier` varchar(64) NOT NULL DEFAULT '' COMMENT '模块唯一标识符',
  473. `system_module` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '是否为系统模块',
  474. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  475. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  476. `sort` int(11) NOT NULL DEFAULT '100' COMMENT '排序',
  477. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态',
  478. PRIMARY KEY (`id`)
  479. ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='模块表';
  480. -- ----------------------------
  481. -- Records of dp_admin_module
  482. -- ----------------------------
  483. INSERT INTO `dp_admin_module` VALUES ('1', 'admin', '系统', 'fa fa-fw fa-gear', '系统模块,DolphinPHP的核心模块', 'DolphinPHP', 'http://www.dolphinphp.com', '', '', '1.0.0', 'admin.dolphinphp.module', '1', '1468204902', '1468204902', '100', '1');
  484. INSERT INTO `dp_admin_module` VALUES ('2', 'user', '用户', 'fa fa-fw fa-user', '用户模块,DolphinPHP自带模块', 'DolphinPHP', 'http://www.dolphinphp.com', '', '', '1.0.0', 'user.dolphinphp.module', '1', '1468204902', '1468204902', '100', '1');
  485. -- ----------------------------
  486. -- Table structure for `dp_admin_packet`
  487. -- ----------------------------
  488. DROP TABLE IF EXISTS `dp_admin_packet`;
  489. CREATE TABLE `dp_admin_packet` (
  490. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  491. `name` varchar(32) NOT NULL DEFAULT '' COMMENT '数据包名',
  492. `title` varchar(32) NOT NULL DEFAULT '' COMMENT '数据包标题',
  493. `author` varchar(32) NOT NULL DEFAULT '' COMMENT '作者',
  494. `author_url` varchar(255) NOT NULL DEFAULT '' COMMENT '作者url',
  495. `version` varchar(16) NOT NULL,
  496. `tables` text NOT NULL COMMENT '数据表名',
  497. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  498. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  499. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态',
  500. PRIMARY KEY (`id`)
  501. ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='数据包表';
  502. -- ----------------------------
  503. -- Records of dp_admin_packet
  504. -- ----------------------------
  505. -- ----------------------------
  506. -- Table structure for `dp_admin_plugin`
  507. -- ----------------------------
  508. DROP TABLE IF EXISTS `dp_admin_plugin`;
  509. CREATE TABLE `dp_admin_plugin` (
  510. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  511. `name` varchar(32) NOT NULL DEFAULT '' COMMENT '插件名称',
  512. `title` varchar(32) NOT NULL DEFAULT '' COMMENT '插件标题',
  513. `icon` varchar(64) NOT NULL DEFAULT '' COMMENT '图标',
  514. `description` text NOT NULL COMMENT '插件描述',
  515. `author` varchar(32) NOT NULL DEFAULT '' COMMENT '作者',
  516. `author_url` varchar(255) NOT NULL DEFAULT '' COMMENT '作者主页',
  517. `config` text NOT NULL COMMENT '配置信息',
  518. `version` varchar(16) NOT NULL DEFAULT '' COMMENT '版本号',
  519. `identifier` varchar(64) NOT NULL DEFAULT '' COMMENT '插件唯一标识符',
  520. `admin` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '是否有后台管理',
  521. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '安装时间',
  522. `update_time` int(11) NOT NULL DEFAULT '0' COMMENT '更新时间',
  523. `sort` int(11) NOT NULL DEFAULT '100' COMMENT '排序',
  524. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态',
  525. PRIMARY KEY (`id`)
  526. ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='插件表';
  527. -- ----------------------------
  528. -- Records of dp_admin_plugin
  529. -- ----------------------------
  530. INSERT INTO `dp_admin_plugin` VALUES ('1', 'SystemInfo', '系统环境信息', 'fa fa-fw fa-info-circle', '在后台首页显示服务器信息', '蔡伟明', 'http://www.caiweiming.com', '{\"display\":\"1\",\"width\":\"6\"}', '1.0.0', 'system_info.ming.plugin', '0', '1477757503', '1477757503', '100', '1');
  531. INSERT INTO `dp_admin_plugin` VALUES ('2', 'DevTeam', '开发团队成员信息', 'fa fa-fw fa-users', '开发团队成员信息', '蔡伟明', 'http://www.caiweiming.com', '{\"display\":\"1\",\"width\":\"6\"}', '1.0.0', 'dev_team.ming.plugin', '0', '1477755780', '1477755780', '100', '1');
  532. -- ----------------------------
  533. -- Table structure for `dp_admin_role`
  534. -- ----------------------------
  535. DROP TABLE IF EXISTS `dp_admin_role`;
  536. CREATE TABLE `dp_admin_role` (
  537. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '角色id',
  538. `pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '上级角色',
  539. `name` varchar(32) NOT NULL DEFAULT '' COMMENT '角色名称',
  540. `description` varchar(255) NOT NULL DEFAULT '' COMMENT '角色描述',
  541. `menu_auth` text NOT NULL COMMENT '菜单权限',
  542. `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  543. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  544. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  545. `status` tinyint(2) NOT NULL DEFAULT '1' COMMENT '状态',
  546. `access` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '是否可登录后台',
  547. `default_module` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '默认访问模块',
  548. PRIMARY KEY (`id`)
  549. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='角色表';
  550. -- ----------------------------
  551. -- Records of dp_admin_role
  552. -- ----------------------------
  553. INSERT INTO `dp_admin_role` VALUES ('1', '0', '超级管理员', '系统默认创建的角色,拥有最高权限', '', '0', '1476270000', '1468117612', '1', '1', '0');
  554. -- ----------------------------
  555. -- Table structure for `dp_admin_user`
  556. -- ----------------------------
  557. DROP TABLE IF EXISTS `dp_admin_user`;
  558. CREATE TABLE `dp_admin_user` (
  559. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  560. `username` varchar(32) NOT NULL DEFAULT '' COMMENT '用户名',
  561. `nickname` varchar(32) NOT NULL DEFAULT '' COMMENT '昵称',
  562. `password` varchar(96) NOT NULL DEFAULT '' COMMENT '密码',
  563. `email` varchar(64) NOT NULL DEFAULT '' COMMENT '邮箱地址',
  564. `email_bind` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否绑定邮箱地址',
  565. `mobile` varchar(11) NOT NULL DEFAULT '' COMMENT '手机号码',
  566. `mobile_bind` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否绑定手机号码',
  567. `avatar` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '头像',
  568. `money` decimal(11,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '余额',
  569. `score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '积分',
  570. `role` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '主角色ID',
  571. `roles` varchar(255) NOT NULL DEFAULT '' COMMENT '副角色ID',
  572. `group` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '部门id',
  573. `signup_ip` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '注册ip',
  574. `create_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  575. `update_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
  576. `last_login_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最后一次登录时间',
  577. `last_login_ip` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT '登录ip',
  578. `sort` int(11) NOT NULL DEFAULT '100' COMMENT '排序',
  579. `status` tinyint(2) NOT NULL DEFAULT '0' COMMENT '状态:0禁用,1启用',
  580. PRIMARY KEY (`id`)
  581. ) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='用户表';
  582. -- ----------------------------
  583. -- Records of dp_admin_user
  584. -- ----------------------------
  585. INSERT INTO `dp_admin_user` VALUES ('1', 'admin', '超级管理员', '$2y$10$Brw6wmuSLIIx3Yabid8/Wu5l8VQ9M/H/CG3C9RqN9dUCwZW3ljGOK', '', '0', '', '0', '0', '0.00', '0', '1', '', '0', '0', '1476065410', '1477794539', '1477794539', '2130706433', '100', '1');