garden.sql 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : Superbee
  4. Source Server Version : 50625
  5. Source Host : localhost:3306
  6. Source Database : garden
  7. Target Server Type : MYSQL
  8. Target Server Version : 50625
  9. File Encoding : 65001
  10. Date: 2017-03-27 17:09:48
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for gd_admin
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `gd_admin`;
  17. CREATE TABLE `gd_admin` (
  18. `id` int(11) NOT NULL AUTO_INCREMENT,
  19. `name` varchar(255) DEFAULT NULL,
  20. `nickname` varchar(255) DEFAULT NULL,
  21. `password` varchar(255) DEFAULT NULL,
  22. `create_time` datetime DEFAULT NULL,
  23. `update_time` datetime DEFAULT NULL,
  24. `last_ip` varchar(100) DEFAULT NULL,
  25. `phone` varchar(255) DEFAULT NULL,
  26. `last_time` datetime DEFAULT NULL,
  27. `address` varchar(255) DEFAULT NULL,
  28. PRIMARY KEY (`id`)
  29. ) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8;
  30. -- ----------------------------
  31. -- Records of gd_admin
  32. -- ----------------------------
  33. INSERT INTO `gd_admin` VALUES ('8', 'admin', '超级管理员', 'e10adc3949ba59abbe56e057f20f883e', '2017-02-24 15:55:47', '2017-03-21 15:05:52', '127.0.0.1', '13434123215', '2017-03-27 13:44:47', '临海村3号2-1');
  34. INSERT INTO `gd_admin` VALUES ('9', 'li', '李三', 'e10adc3949ba59abbe56e057f20f883e', '2017-02-24 15:56:41', '2017-03-21 14:48:25', '127.0.0.1', '13578945616', '2017-03-21 14:47:53', '高兴村');
  35. INSERT INTO `gd_admin` VALUES ('10', 'test', '测试管理员', 'e10adc3949ba59abbe56e057f20f883e', '2017-02-24 15:58:41', '2017-03-21 14:45:39', '192.168.1.41', null, '2017-03-21 14:45:39', null);
  36. INSERT INTO `gd_admin` VALUES ('37', 'shit', '草拟吗', 'e10adc3949ba59abbe56e057f20f883e', '2017-02-28 15:27:47', '2017-03-21 17:35:54', '127.0.0.1', '13223236542', '2017-03-21 15:08:08', '32321');
  37. -- ----------------------------
  38. -- Table structure for gd_role
  39. -- ----------------------------
  40. DROP TABLE IF EXISTS `gd_role`;
  41. CREATE TABLE `gd_role` (
  42. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  43. `title` varchar(100) DEFAULT NULL,
  44. `status` tinyint(1) DEFAULT '1' COMMENT '状态 1 启用 0 禁用',
  45. `rules` text,
  46. `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  47. PRIMARY KEY (`id`)
  48. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  49. -- ----------------------------
  50. -- Records of gd_role
  51. -- ----------------------------
  52. INSERT INTO `gd_role` VALUES ('1', '超级管理员', '1', '1,2,7,3,4,5,8,6,9,10,13,11,14,12,15,16,17,18', '2017-03-21 14:52:07');
  53. INSERT INTO `gd_role` VALUES ('2', '后台管理员', '1', '1,2,7,3,4,6,9,10,13,11,14,12', null);
  54. INSERT INTO `gd_role` VALUES ('3', '一般管理员', '1', '1,2,7,3,4,6', null);
  55. -- ----------------------------
  56. -- Table structure for gd_role_rule
  57. -- ----------------------------
  58. DROP TABLE IF EXISTS `gd_role_rule`;
  59. CREATE TABLE `gd_role_rule` (
  60. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  61. `aid` int(11) DEFAULT NULL,
  62. `rid` int(11) DEFAULT NULL,
  63. PRIMARY KEY (`id`)
  64. ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
  65. -- ----------------------------
  66. -- Records of gd_role_rule
  67. -- ----------------------------
  68. INSERT INTO `gd_role_rule` VALUES ('9', '8', '1');
  69. INSERT INTO `gd_role_rule` VALUES ('10', '9', '2');
  70. INSERT INTO `gd_role_rule` VALUES ('11', '10', '3');
  71. INSERT INTO `gd_role_rule` VALUES ('12', '37', '3');
  72. -- ----------------------------
  73. -- Table structure for gd_rule
  74. -- ----------------------------
  75. DROP TABLE IF EXISTS `gd_rule`;
  76. CREATE TABLE `gd_rule` (
  77. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  78. `pid` int(11) DEFAULT '0',
  79. `title` varchar(100) DEFAULT NULL,
  80. `name` varchar(100) DEFAULT NULL,
  81. `status` tinyint(1) DEFAULT '1' COMMENT '状态:为1正常,为0禁用',
  82. `type` tinyint(4) DEFAULT '1',
  83. `condition` varchar(255) DEFAULT NULL COMMENT '规则表达式,为空表示存在就验证,不为空表示按照条件验证',
  84. `update_time` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
  85. PRIMARY KEY (`id`)
  86. ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
  87. -- ----------------------------
  88. -- Records of gd_rule
  89. -- ----------------------------
  90. INSERT INTO `gd_rule` VALUES ('1', '0', '管理员列表', '/user/index/index', '1', '1', null, null);
  91. INSERT INTO `gd_rule` VALUES ('2', '1', '编辑管理员', '/user/index/edit', '1', '1', null, null);
  92. INSERT INTO `gd_rule` VALUES ('3', '1', '重置密码', '/user/index/reset', '1', '1', null, null);
  93. INSERT INTO `gd_rule` VALUES ('4', '3', '修改密码', '/user/index/pass', '1', '1', null, null);
  94. INSERT INTO `gd_rule` VALUES ('5', '1', '分配角色', '/user/index/group', '1', '1', null, null);
  95. INSERT INTO `gd_rule` VALUES ('6', '1', '删除管理员', '/user/index/delete', '1', '1', null, null);
  96. INSERT INTO `gd_rule` VALUES ('7', '2', '保存管理员', '/user/index/save', '1', '1', null, null);
  97. INSERT INTO `gd_rule` VALUES ('8', '5', '保存角色', '/user/index/rule', '1', '1', null, null);
  98. INSERT INTO `gd_rule` VALUES ('9', '0', '角色列表', '/user/role/index', '1', '1', null, null);
  99. INSERT INTO `gd_rule` VALUES ('10', '9', '角色编辑', '/user/role/edit', '1', '1', null, null);
  100. INSERT INTO `gd_rule` VALUES ('11', '9', '权限分配', '/user/role/set', '1', '1', null, null);
  101. INSERT INTO `gd_rule` VALUES ('12', '9', '删除角色', '/user/role/delete', '1', '1', '', null);
  102. INSERT INTO `gd_rule` VALUES ('13', '10', '保存角色', '/user/role/save', '1', '1', null, null);
  103. INSERT INTO `gd_rule` VALUES ('14', '11', '更新权限', '/user/role/update', '1', '1', null, null);
  104. INSERT INTO `gd_rule` VALUES ('15', '0', '权限列表', '/user/rule/index', '1', '1', null, null);
  105. INSERT INTO `gd_rule` VALUES ('16', '15', '更新权限', '/user/rule/save', '1', '1', null, null);
  106. INSERT INTO `gd_rule` VALUES ('17', '15', '编辑权限', '/user/rule/edit', '1', '1', null, null);
  107. INSERT INTO `gd_rule` VALUES ('18', '15', '删除权限', '/user/rule/delete', '1', '1', null, null);
  108. -- ----------------------------
  109. -- Table structure for gd_user
  110. -- ----------------------------
  111. DROP TABLE IF EXISTS `gd_user`;
  112. CREATE TABLE `gd_user` (
  113. `id` bigint(20) NOT NULL,
  114. `uid` varchar(255) NOT NULL DEFAULT '',
  115. `diamond` int(11) DEFAULT '0',
  116. `coin` int(11) DEFAULT '0',
  117. `short` varchar(12) DEFAULT NULL,
  118. `nickname` varchar(255) DEFAULT NULL,
  119. `mobile` varchar(255) DEFAULT NULL,
  120. `last_login` datetime DEFAULT NULL,
  121. `last_ip` varchar(100) DEFAULT NULL,
  122. `registertime` datetime DEFAULT NULL,
  123. PRIMARY KEY (`id`)
  124. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  125. -- ----------------------------
  126. -- Table structure for gd_user_skill
  127. -- ----------------------------
  128. DROP TABLE IF EXISTS `gd_user_skill`;
  129. CREATE TABLE `gd_user_skill` (
  130. `id` bigint(20) NOT NULL,
  131. `user_id` bigint(20) DEFAULT NULL,
  132. `skill_id` int(11) DEFAULT NULL,
  133. `time` int(11) DEFAULT NULL,
  134. PRIMARY KEY (`id`),
  135. KEY `user_id` (`user_id`)
  136. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;