hippo_social1.sql 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : localhost
  4. Source Server Version : 50505
  5. Source Host : localhost:3306
  6. Source Database : hippo_social
  7. Target Server Type : MYSQL
  8. Target Server Version : 50505
  9. File Encoding : 65001
  10. Date: 2019-04-12 17:48:17
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for hippo_action
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `hippo_action`;
  17. CREATE TABLE `hippo_action` (
  18. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  19. `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户id 0系统管理员',
  20. `title` char(80) NOT NULL DEFAULT '' COMMENT '行为说明',
  21. `remark` varchar(255) NOT NULL DEFAULT '' COMMENT '行为描述',
  22. `create_timestamp` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
  23. PRIMARY KEY (`id`)
  24. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统行为表';
  25. -- ----------------------------
  26. -- Records of hippo_action
  27. -- ----------------------------
  28. -- ----------------------------
  29. -- Table structure for hippo_ad
  30. -- ----------------------------
  31. DROP TABLE IF EXISTS `hippo_ad`;
  32. CREATE TABLE `hippo_ad` (
  33. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  34. `place_id` int(11) DEFAULT NULL COMMENT '广告位ID',
  35. `title` varchar(150) DEFAULT NULL COMMENT '广告名称',
  36. `cover_url` varchar(150) DEFAULT NULL COMMENT '广告图片',
  37. `photolist` varchar(20) NOT NULL COMMENT '辅助图片',
  38. `url` varchar(150) DEFAULT NULL COMMENT '广告链接',
  39. `listurl` varchar(255) DEFAULT NULL COMMENT '辅助链接',
  40. `background` varchar(150) DEFAULT NULL COMMENT '广告背景',
  41. `content` text COMMENT '广告描述',
  42. `sort` int(11) DEFAULT NULL COMMENT '排序 从小到大',
  43. `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '广告位状态',
  44. `update_timestamp` datetime DEFAULT NULL COMMENT '更新时间',
  45. `create_timestamp` datetime NOT NULL COMMENT '创建时间',
  46. PRIMARY KEY (`id`)
  47. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='广告表';
  48. -- ----------------------------
  49. -- Records of hippo_ad
  50. -- ----------------------------
  51. -- ----------------------------
  52. -- Table structure for hippo_article
  53. -- ----------------------------
  54. DROP TABLE IF EXISTS `hippo_article`;
  55. CREATE TABLE `hippo_article` (
  56. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
  57. `title` varchar(200) NOT NULL COMMENT '标题',
  58. `name` varchar(20) NOT NULL DEFAULT '' COMMENT '名臣',
  59. `description` text COMMENT '内容描述',
  60. `content` text COMMENT '内容',
  61. `status` int(2) NOT NULL DEFAULT '1' COMMENT '数据状态',
  62. `update_timestamp` datetime DEFAULT NULL COMMENT '更新时间',
  63. `create_timestamp` datetime NOT NULL COMMENT '创建时间',
  64. PRIMARY KEY (`id`)
  65. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='test';
  66. -- ----------------------------
  67. -- Records of hippo_article
  68. -- ----------------------------
  69. -- ----------------------------
  70. -- Table structure for hippo_auth_group
  71. -- ----------------------------
  72. DROP TABLE IF EXISTS `hippo_auth_group`;
  73. CREATE TABLE `hippo_auth_group` (
  74. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户组id,自增主键',
  75. `module` varchar(20) NOT NULL DEFAULT '' COMMENT '用户组所属模块',
  76. `type` varchar(10) NOT NULL DEFAULT '' COMMENT '组类型',
  77. `title` char(20) NOT NULL DEFAULT '' COMMENT '用户组中文名称',
  78. `description` varchar(80) NOT NULL DEFAULT '' COMMENT '描述信息',
  79. `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '用户组状态:为1正常,为0禁用,-1为删除',
  80. `rules` varchar(500) NOT NULL DEFAULT '' COMMENT '用户组拥有的规则id,多个规则 , 隔开',
  81. PRIMARY KEY (`id`)
  82. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  83. -- ----------------------------
  84. -- Records of hippo_auth_group
  85. -- ----------------------------
  86. -- ----------------------------
  87. -- Table structure for hippo_auth_group_access
  88. -- ----------------------------
  89. DROP TABLE IF EXISTS `hippo_auth_group_access`;
  90. CREATE TABLE `hippo_auth_group_access` (
  91. `uid` int(10) unsigned NOT NULL COMMENT '用户id',
  92. `group_id` mediumint(8) unsigned NOT NULL COMMENT '用户组id',
  93. UNIQUE KEY `uid_group_id` (`uid`,`group_id`) USING BTREE,
  94. KEY `uid` (`uid`) USING BTREE,
  95. KEY `group_id` (`group_id`) USING BTREE
  96. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  97. -- ----------------------------
  98. -- Records of hippo_auth_group_access
  99. -- ----------------------------
  100. -- ----------------------------
  101. -- Table structure for hippo_auth_rule
  102. -- ----------------------------
  103. DROP TABLE IF EXISTS `hippo_auth_rule`;
  104. CREATE TABLE `hippo_auth_rule` (
  105. `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '规则id,自增主键',
  106. `module` varchar(20) NOT NULL COMMENT '规则所属module',
  107. `type` tinyint(2) NOT NULL DEFAULT '1' COMMENT '1-url;2-主菜单',
  108. `name` char(80) NOT NULL DEFAULT '' COMMENT '规则唯一英文标识',
  109. `title` char(20) NOT NULL DEFAULT '' COMMENT '规则中文描述',
  110. `group` char(20) NOT NULL DEFAULT '' COMMENT '权限节点分组',
  111. `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否有效(0:无效,1:有效)',
  112. `condition` varchar(300) NOT NULL DEFAULT '' COMMENT '规则附加条件',
  113. PRIMARY KEY (`id`),
  114. KEY `module` (`module`,`name`,`status`,`type`) USING BTREE
  115. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  116. -- ----------------------------
  117. -- Records of hippo_auth_rule
  118. -- ----------------------------
  119. -- ----------------------------
  120. -- Table structure for hippo_config
  121. -- ----------------------------
  122. DROP TABLE IF EXISTS `hippo_config`;
  123. CREATE TABLE `hippo_config` (
  124. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置ID',
  125. `name` varchar(30) NOT NULL DEFAULT '' COMMENT '配置名称',
  126. `type` varchar(10) NOT NULL DEFAULT 'text' COMMENT '配置类型',
  127. `title` varchar(50) NOT NULL DEFAULT '' COMMENT '配置说明',
  128. `group1` varchar(30) NOT NULL DEFAULT '' COMMENT '配置分组1',
  129. `group2` varchar(30) NOT NULL DEFAULT '' COMMENT '配置分组2',
  130. `value` varchar(255) DEFAULT NULL COMMENT '配置值',
  131. `extra` varchar(255) NOT NULL DEFAULT '' COMMENT '配置值',
  132. `remark` varchar(100) NOT NULL DEFAULT '' COMMENT '配置说明',
  133. `update_timestamp` datetime DEFAULT NULL COMMENT '更新时间',
  134. `create_timestamp` datetime NOT NULL COMMENT '创建时间',
  135. PRIMARY KEY (`id`),
  136. KEY `type` (`type`) USING BTREE,
  137. KEY `group` (`group1`) USING BTREE
  138. ) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COMMENT='配置详情表';
  139. -- ----------------------------
  140. -- Records of hippo_config
  141. -- ----------------------------
  142. INSERT INTO `hippo_config` VALUES ('1', 'pension', 'text', '养老', 'social', 'farmer', '0.19', '0.08', '企业/个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  143. INSERT INTO `hippo_config` VALUES ('2', 'health', 'text', '医疗', 'social', 'farmer', '0.1', '0.02', '企业/个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  144. INSERT INTO `hippo_config` VALUES ('3', 'unemployment', 'text', '失业', 'social', 'farmer', '0.008', '0.002', '企业/个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  145. INSERT INTO `hippo_config` VALUES ('4', 'injury', 'text', '工伤', 'social', 'farmer', '0.004', '0', '企业/个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  146. INSERT INTO `hippo_config` VALUES ('5', 'birth', 'text', '生育', 'social', 'farmer', '0.008', '0', '企业/个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  147. INSERT INTO `hippo_config` VALUES ('6', 'largeMedic', 'text', '大额医疗', 'social', 'farmer', '3', '', '个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  148. INSERT INTO `hippo_config` VALUES ('7', 'fund', 'text', '公积金', 'fund', 'farmer', '0.12', '0.12', '企业/个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  149. INSERT INTO `hippo_config` VALUES ('8', 'monthly', 'text', '月付', 'service', 'farmer', '100', '150', '月付:%d元/月', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  150. INSERT INTO `hippo_config` VALUES ('9', 'seasonal', 'text', '季付', 'service', 'farmer', '270', '405', '季付:%d元/季', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  151. INSERT INTO `hippo_config` VALUES ('10', 'halfYearly', 'text', '半年付', 'service', 'farmer', '480', '720', '半年付:%d元/半年', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  152. INSERT INTO `hippo_config` VALUES ('11', 'yearly', 'text', '年付', 'service', 'farmer', '600', '900', '年付:%d元/年', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  153. INSERT INTO `hippo_config` VALUES ('12', 'pension', 'text', '社保', 'basic', 'farmer', '3387', '25401', '缴费基数', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  154. INSERT INTO `hippo_config` VALUES ('13', ' health', 'text', '社保', 'basic', 'farmer', '3387', '25401', '缴费基数', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  155. INSERT INTO `hippo_config` VALUES ('14', 'unemployment', 'text', '社保', 'basic', 'farmer', '5080', '25401', '缴费基数', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  156. INSERT INTO `hippo_config` VALUES ('15', 'injury', 'text', '社保', 'basic', 'farmer', '5080', '25401', '缴费基数', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  157. INSERT INTO `hippo_config` VALUES ('16', 'birth', 'text', '社保', 'basic', 'farmer', '5080', '25401', '缴费基数', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  158. INSERT INTO `hippo_config` VALUES ('17', 'fund', 'text', '公积金', 'basic', 'farmer', '2273', '25401', '缴费基数', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  159. INSERT INTO `hippo_config` VALUES ('18', 'pension', 'text', '养老', 'social', 'town', '0.19', '0.08', '企业/个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  160. INSERT INTO `hippo_config` VALUES ('19', 'health', 'text', '医疗', 'social', 'town', '0.1', '0.02', '企业/个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  161. INSERT INTO `hippo_config` VALUES ('20', 'unemployment', 'text', '失业', 'social', 'town', '0.008', '0.002', '企业/个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  162. INSERT INTO `hippo_config` VALUES ('21', 'injury', 'text', '工伤', 'social', 'town', '0.004', '0', '企业/个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  163. INSERT INTO `hippo_config` VALUES ('22', 'birth', 'text', '生育', 'social', 'town', '0.008', '0', '企业/个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  164. INSERT INTO `hippo_config` VALUES ('23', 'largeMedic', 'text', '大额医疗', 'social', 'town', '3', '', '个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  165. INSERT INTO `hippo_config` VALUES ('24', 'fund', 'text', '公积金', 'fund', 'town', '0.12', '0.12', '企业/个人', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  166. INSERT INTO `hippo_config` VALUES ('25', 'monthly', 'text', '月付', 'service', 'town', '100', '150', '月付:%d元/月', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  167. INSERT INTO `hippo_config` VALUES ('26', 'seasonal', 'text', '季付', 'service', 'town', '270', '405', '季付:%d元/季', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  168. INSERT INTO `hippo_config` VALUES ('27', 'halfYearly', 'text', '半年付', 'service', 'town', '480', '720', '半年付:%d元/半年', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  169. INSERT INTO `hippo_config` VALUES ('28', 'yearly', 'text', '年付', 'service', 'town', '600', '900', '年付:%d元/年', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  170. INSERT INTO `hippo_config` VALUES ('29', 'pension', 'text', '社保', 'basic', 'town', '3387', '25401', '缴费基数', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  171. INSERT INTO `hippo_config` VALUES ('30', 'health', 'text', '社保', 'basic', 'town', '3387', '25401', '缴费基数', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  172. INSERT INTO `hippo_config` VALUES ('31', 'unemployment', 'text', '社保', 'basic', 'town', '5080', '25401', '缴费基数', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  173. INSERT INTO `hippo_config` VALUES ('32', 'injury', 'text', '社保', 'basic', 'town', '5080', '25401', '缴费基数', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  174. INSERT INTO `hippo_config` VALUES ('33', 'birth', 'text', '社保', 'basic', 'town', '5080', '25401', '缴费基数', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  175. INSERT INTO `hippo_config` VALUES ('34', 'fund', 'text', '公积金', 'basic', 'town', '2273', '25401', '缴费基数', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  176. INSERT INTO `hippo_config` VALUES ('35', 'ohers', 'text', '手续费', 'others', 'farmer', '0', '0', '其他费用', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  177. INSERT INTO `hippo_config` VALUES ('36', 'ohers', 'text', '手续费', 'others', 'town', '0', '0', '其他费用', '2019-03-05 19:49:08', '2019-03-05 19:49:04');
  178. -- ----------------------------
  179. -- Table structure for hippo_coupon
  180. -- ----------------------------
  181. DROP TABLE IF EXISTS `hippo_coupon`;
  182. CREATE TABLE `hippo_coupon` (
  183. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '优惠券ID 自增',
  184. `name` varchar(60) NOT NULL COMMENT '优惠券名称',
  185. `type` tinyint(2) NOT NULL COMMENT '优惠券类型,1为折扣券,2抵扣券',
  186. `money` decimal(12,2) unsigned NOT NULL COMMENT '优惠金额,0为全额抵扣',
  187. `number` int(11) unsigned NOT NULL COMMENT '优惠券发放数量',
  188. `period` int(11) unsigned NOT NULL COMMENT '优惠券有效时间间隔',
  189. `status` tinyint(2) NOT NULL COMMENT '状态,0已冻结,1正常使用',
  190. `remarks` varchar(128) NOT NULL COMMENT '优惠券的使用说明',
  191. `coupon_start_time` datetime NOT NULL COMMENT '优惠券发放开始时间',
  192. `coupon_end_time` datetime NOT NULL COMMENT '优惠券发放结束时间',
  193. `create_timestamp` datetime NOT NULL COMMENT '优惠券创建时间',
  194. PRIMARY KEY (`id`)
  195. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  196. -- ----------------------------
  197. -- Records of hippo_coupon
  198. -- ----------------------------
  199. INSERT INTO `hippo_coupon` VALUES ('1', '半价优惠券', '1', '0.50', '100', '0', '1', '前100名半价优惠券,总发放100个,失效自动补充', '1970-01-01 00:00:00', '1970-01-01 00:00:00', '2019-03-06 21:34:36');
  200. INSERT INTO `hippo_coupon` VALUES ('2', '社保服务费抵扣券', '2', '0.00', '0', '30', '1', '按服务费套餐量减一发放', '1970-01-01 00:00:00', '1970-01-01 00:00:00', '2019-03-06 21:36:06');
  201. INSERT INTO `hippo_coupon` VALUES ('3', '社保公积金服务费抵扣券', '2', '0.00', '0', '30', '1', '按服务费套餐量减一发放', '1970-01-01 00:00:00', '1970-01-01 00:00:00', '2019-03-06 21:36:06');
  202. -- ----------------------------
  203. -- Table structure for hippo_coupon_receive
  204. -- ----------------------------
  205. DROP TABLE IF EXISTS `hippo_coupon_receive`;
  206. CREATE TABLE `hippo_coupon_receive` (
  207. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID自增',
  208. `uid` int(10) unsigned DEFAULT NULL COMMENT '用户ID',
  209. `coupon_id` int(10) unsigned DEFAULT NULL COMMENT '优惠券ID',
  210. `order_id` int(10) unsigned DEFAULT NULL COMMENT '订单Id',
  211. `coupon_type` tinyint(2) unsigned DEFAULT NULL COMMENT '优惠券类型,1为折扣券,2抵扣券',
  212. `status` tinyint(2) unsigned DEFAULT '1' COMMENT '状态 0失效  1正常 2锁定 3已使用',
  213. `end_timestamp` datetime DEFAULT NULL COMMENT '优惠券失效时间',
  214. `create_timestamp` datetime NOT NULL COMMENT '优惠券创建时间',
  215. PRIMARY KEY (`id`)
  216. ) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8;
  217. -- ----------------------------
  218. -- Records of hippo_coupon_receive
  219. -- ----------------------------
  220. INSERT INTO `hippo_coupon_receive` VALUES ('34', '1', '1', null, '1', '2', '2019-03-06 21:36:06', '2019-03-06 21:36:06');
  221. INSERT INTO `hippo_coupon_receive` VALUES ('35', '1', '2', '21', null, '1', '2019-03-06 21:36:06', '2019-03-06 21:36:06');
  222. INSERT INTO `hippo_coupon_receive` VALUES ('36', '1', '2', '21', null, '1', '2019-03-06 21:36:06', '2019-03-06 21:36:06');
  223. INSERT INTO `hippo_coupon_receive` VALUES ('37', '1', '2', '21', null, '1', '2019-03-06 21:36:06', '2019-03-06 21:36:06');
  224. INSERT INTO `hippo_coupon_receive` VALUES ('38', '1', '1', null, '1', '2', '2019-03-06 21:36:06', '2019-03-06 21:36:06');
  225. INSERT INTO `hippo_coupon_receive` VALUES ('39', '1', '1', null, '1', '2', '2019-03-06 21:36:06', '2019-03-06 21:36:06');
  226. -- ----------------------------
  227. -- Table structure for hippo_invite_relation
  228. -- ----------------------------
  229. DROP TABLE IF EXISTS `hippo_invite_relation`;
  230. CREATE TABLE `hippo_invite_relation` (
  231. `uid` int(11) NOT NULL COMMENT '用户id',
  232. `inviter` int(11) NOT NULL COMMENT '邀请人id',
  233. `status` tinyint(4) NOT NULL COMMENT '邀请状态 1已绑定 2邀请成功 3已发放',
  234. `update_timestamp` datetime DEFAULT NULL COMMENT '更新时间',
  235. `create_timestamp` datetime NOT NULL COMMENT '创建时间'
  236. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  237. -- ----------------------------
  238. -- Records of hippo_invite_relation
  239. -- ----------------------------
  240. INSERT INTO `hippo_invite_relation` VALUES ('2', '1', '1', null, '2019-04-04 15:11:26');
  241. -- ----------------------------
  242. -- Table structure for hippo_log_login
  243. -- ----------------------------
  244. DROP TABLE IF EXISTS `hippo_log_login`;
  245. CREATE TABLE `hippo_log_login` (
  246. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  247. `uid` int(11) NOT NULL,
  248. `token` varchar(255) NOT NULL,
  249. `login_type` varchar(255) NOT NULL,
  250. `login_ip` varchar(15) NOT NULL,
  251. `create_timestamp` datetime NOT NULL,
  252. PRIMARY KEY (`id`)
  253. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  254. -- ----------------------------
  255. -- Records of hippo_log_login
  256. -- ----------------------------
  257. -- ----------------------------
  258. -- Table structure for hippo_menu
  259. -- ----------------------------
  260. DROP TABLE IF EXISTS `hippo_menu`;
  261. CREATE TABLE `hippo_menu` (
  262. `nid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  263. `title` varchar(50) NOT NULL DEFAULT '' COMMENT '标题',
  264. `type` varchar(10) NOT NULL DEFAULT 'admin' COMMENT '菜单类别(admin后台,user会员中心)',
  265. `icon` varchar(20) NOT NULL DEFAULT '' COMMENT '分类图标',
  266. `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父级分类ID',
  267. `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序(同级有效)',
  268. `url` char(255) NOT NULL DEFAULT '' COMMENT '链接地址',
  269. `hide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隐藏',
  270. `group` varchar(50) DEFAULT '' COMMENT '分组',
  271. `is_dev` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否仅开发者模式可见',
  272. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态',
  273. PRIMARY KEY (`nid`)
  274. ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COMMENT='菜单管理';
  275. -- ----------------------------
  276. -- Records of hippo_menu
  277. -- ----------------------------
  278. INSERT INTO `hippo_menu` VALUES ('1', '首页', 'admin', 'home', '0', '0', 'admin/index/index', '0', '导航', '0', '1');
  279. INSERT INTO `hippo_menu` VALUES ('2', '订单', 'admin', 'publice', '0', '1', 'admin/order/index', '0', '导航', '0', '1');
  280. INSERT INTO `hippo_menu` VALUES ('3', '系统设置', 'admin', 'publice', '0', '1', 'admin/order/index', '0', '导航', '0', '1');
  281. INSERT INTO `hippo_menu` VALUES ('4', '管理员', 'admin', 'system', '0', '3', 'admin/user/index', '0', '导航', '0', '0');
  282. INSERT INTO `hippo_menu` VALUES ('5', '应用中心', 'admin', 'mini-list', '1', '0', 'admin/index/index', '0', '首页', '0', '0');
  283. INSERT INTO `hippo_menu` VALUES ('6', '更新缓存', 'admin', 'refresh', '1', '0', 'admin/index/clear', '0', '首页', '0', '0');
  284. INSERT INTO `hippo_menu` VALUES ('11', '用户列表', 'admin', 'user', '4', '0', 'admin/user/index', '0', '系统管理', '0', '0');
  285. INSERT INTO `hippo_menu` VALUES ('12', '用户组表', 'admin', 'users', '4', '0', 'admin/group/index', '0', '系统管理', '0', '0');
  286. INSERT INTO `hippo_menu` VALUES ('13', '菜单列表', 'admin', 'th-list', '4', '0', 'admin/menu/index', '0', '系统管理', '0', '0');
  287. INSERT INTO `hippo_menu` VALUES ('14', '权限列表', 'admin', 'paw', '4', '0', 'admin/group/access', '0', '系统管理', '0', '0');
  288. -- ----------------------------
  289. -- Table structure for hippo_orders
  290. -- ----------------------------
  291. DROP TABLE IF EXISTS `hippo_orders`;
  292. CREATE TABLE `hippo_orders` (
  293. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  294. `uid` int(11) NOT NULL,
  295. `order_sn` char(24) NOT NULL,
  296. `payment` decimal(10,2) NOT NULL COMMENT '支付金额',
  297. `service_type` tinyint(1) NOT NULL COMMENT '服务费类型 1月付 2季付 3 半年付 4 年付',
  298. `status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '订单状态 0 已取消 1 未付款 2 已付款 3 代缴中 4 交易成功 5 交易关闭',
  299. `pay_timestamp` datetime DEFAULT NULL COMMENT '支付时间',
  300. `send_timestamp` datetime DEFAULT NULL COMMENT '发货时间',
  301. `end_timestamp` datetime DEFAULT NULL COMMENT '完成时间',
  302. `close_timestamp` datetime DEFAULT NULL COMMENT '结束时间',
  303. `update_timestamp` datetime DEFAULT NULL COMMENT '更新时间',
  304. `create_timestamp` datetime NOT NULL COMMENT '创建时间',
  305. PRIMARY KEY (`id`)
  306. ) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8;
  307. -- ----------------------------
  308. -- Records of hippo_orders
  309. -- ----------------------------
  310. INSERT INTO `hippo_orders` VALUES ('43', '1', '201904081235302513625396', '2303.97', '0', '1', null, null, null, '2019-04-08 13:05:30', '2019-04-08 12:35:30', '2019-04-08 12:35:30');
  311. -- ----------------------------
  312. -- Table structure for hippo_order_info
  313. -- ----------------------------
  314. DROP TABLE IF EXISTS `hippo_order_info`;
  315. CREATE TABLE `hippo_order_info` (
  316. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  317. `uid` int(11) NOT NULL,
  318. `order_sn` char(24) NOT NULL,
  319. `social_basic` mediumint(8) unsigned DEFAULT NULL COMMENT '社保基数',
  320. `fund_basic` mediumint(8) unsigned DEFAULT '0' COMMENT '公积金基数',
  321. `charge_details` text NOT NULL COMMENT '缴费明细',
  322. `service_charge` decimal(8,2) unsigned NOT NULL COMMENT '服务费',
  323. `total_charge` decimal(10,2) unsigned NOT NULL COMMENT '总计',
  324. `update_timestamp` datetime DEFAULT NULL COMMENT '更新时间',
  325. `create_timestamp` datetime NOT NULL COMMENT '创建时间',
  326. PRIMARY KEY (`id`)
  327. ) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8;
  328. -- ----------------------------
  329. -- Records of hippo_order_info
  330. -- ----------------------------
  331. INSERT INTO `hippo_order_info` VALUES ('43', '1', '201904081235302513625396', '3387', '2273', '{\"social\":{\"pension\":[\"914.49\",\"\\u517b\\u8001\"],\"health\":[\"406.44\",\"\\u533b\\u7597\"],\"unemployment\":[\"33.87\",\"\\u5931\\u4e1a\"],\"injury\":[\"13.55\",\"\\u5de5\\u4f24\"],\"birth\":[\"27.10\",\"\\u751f\\u80b2\"],\"largeMedic\":[\"3.00\",\"\\u5927\\u989d\\u533b\\u7597\"]},\"service_type\":\"halfYearly\",\"service\":\"360.00\",\"subtotal\":\"1398.45\",\"fund\":\"545.52\",\"coupon\":0,\"discounts\":true,\"total\":\"2303.97\"}', '905.52', '2303.97', '2019-04-08 12:35:30', '2019-04-08 12:35:30');
  332. -- ----------------------------
  333. -- Table structure for hippo_pay_info
  334. -- ----------------------------
  335. DROP TABLE IF EXISTS `hippo_pay_info`;
  336. CREATE TABLE `hippo_pay_info` (
  337. `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  338. `uid` int(11) NOT NULL,
  339. `order_sn` char(24) NOT NULL COMMENT '订单号',
  340. `coupon` int(11) DEFAULT NULL COMMENT '优惠券id',
  341. `pay_platform` tinyint(4) NOT NULL COMMENT '支付平台 1 微信 2 支付宝 3 银行卡',
  342. `pay_no` varchar(255) DEFAULT NULL COMMENT '支付流水号',
  343. `pay_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '支付状态 0 未支付 1 已支付 2 已退款',
  344. `update_timestamp` datetime DEFAULT NULL COMMENT '更新时间',
  345. `create_timestamp` datetime NOT NULL COMMENT '创建时间',
  346. PRIMARY KEY (`id`)
  347. ) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;
  348. -- ----------------------------
  349. -- Records of hippo_pay_info
  350. -- ----------------------------
  351. INSERT INTO `hippo_pay_info` VALUES ('1', '1', '201903161654266184365196', '37', '0', null, '0', '2019-03-16 16:54:58', '2019-03-16 16:54:58');
  352. INSERT INTO `hippo_pay_info` VALUES ('2', '1', '201903161703463517475896', null, '0', null, '0', '2019-03-16 17:03:49', '2019-03-16 17:03:49');
  353. INSERT INTO `hippo_pay_info` VALUES ('3', '1', '201903161704341623461696', null, '0', null, '0', '2019-03-16 17:04:39', '2019-03-16 17:04:39');
  354. INSERT INTO `hippo_pay_info` VALUES ('4', '1', '201904011915264099690196', null, '0', null, '0', '2019-04-01 19:15:26', '2019-04-01 19:15:26');
  355. INSERT INTO `hippo_pay_info` VALUES ('5', '1', '201904021551264524908696', null, '0', null, '0', '2019-04-02 15:51:26', '2019-04-02 15:51:26');
  356. INSERT INTO `hippo_pay_info` VALUES ('6', '1', '201904021610253985359396', null, '0', null, '0', '2019-04-02 16:10:25', '2019-04-02 16:10:25');
  357. INSERT INTO `hippo_pay_info` VALUES ('7', '1', '201904021707455759668096', null, '0', null, '0', '2019-04-02 17:07:46', '2019-04-02 17:07:46');
  358. INSERT INTO `hippo_pay_info` VALUES ('8', '1', '201904021718468431608696', null, '0', null, '0', '2019-04-02 17:18:46', '2019-04-02 17:18:46');
  359. INSERT INTO `hippo_pay_info` VALUES ('9', '1', '201904021719446599386196', null, '0', null, '0', '2019-04-02 17:19:44', '2019-04-02 17:19:44');
  360. INSERT INTO `hippo_pay_info` VALUES ('10', '1', '201904021720594460293996', null, '0', null, '0', '2019-04-02 17:20:59', '2019-04-02 17:20:59');
  361. INSERT INTO `hippo_pay_info` VALUES ('11', '1', '201904021721391251285196', null, '0', null, '0', '2019-04-02 17:21:40', '2019-04-02 17:21:40');
  362. INSERT INTO `hippo_pay_info` VALUES ('12', '1', '201904021722569129420396', null, '0', null, '0', '2019-04-02 17:22:56', '2019-04-02 17:22:56');
  363. INSERT INTO `hippo_pay_info` VALUES ('13', '1', '201904021723254649103996', null, '0', null, '0', '2019-04-02 17:23:25', '2019-04-02 17:23:25');
  364. INSERT INTO `hippo_pay_info` VALUES ('14', '1', '201904021724332398976496', null, '0', null, '0', '2019-04-02 17:24:33', '2019-04-02 17:24:33');
  365. INSERT INTO `hippo_pay_info` VALUES ('15', '1', '201904021725435247287096', null, '0', null, '0', '2019-04-02 17:25:43', '2019-04-02 17:25:43');
  366. INSERT INTO `hippo_pay_info` VALUES ('16', '1', '201904021726304105217296', null, '0', null, '0', '2019-04-02 17:26:30', '2019-04-02 17:26:30');
  367. INSERT INTO `hippo_pay_info` VALUES ('17', '1', '201904021810235852906696', null, '0', null, '0', '2019-04-02 18:10:23', '2019-04-02 18:10:23');
  368. INSERT INTO `hippo_pay_info` VALUES ('18', '1', '201904021840284695996296', null, '0', null, '0', '2019-04-02 18:40:28', '2019-04-02 18:40:28');
  369. INSERT INTO `hippo_pay_info` VALUES ('19', '1', '201904021851401982204696', null, '0', null, '0', '2019-04-02 18:51:40', '2019-04-02 18:51:40');
  370. INSERT INTO `hippo_pay_info` VALUES ('20', '1', '201904021929043976756096', null, '0', null, '0', '2019-04-02 19:29:04', '2019-04-02 19:29:04');
  371. INSERT INTO `hippo_pay_info` VALUES ('21', '1', '201904022045125099651996', null, '0', null, '0', '2019-04-02 20:45:12', '2019-04-02 20:45:12');
  372. INSERT INTO `hippo_pay_info` VALUES ('22', '1', '201904081227437076735596', null, '0', null, '0', '2019-04-08 12:27:43', '2019-04-08 12:27:43');
  373. INSERT INTO `hippo_pay_info` VALUES ('23', '1', '201904081235302513625396', null, '0', null, '0', '2019-04-08 12:35:30', '2019-04-08 12:35:30');
  374. -- ----------------------------
  375. -- Table structure for hippo_sys_admin
  376. -- ----------------------------
  377. DROP TABLE IF EXISTS `hippo_sys_admin`;
  378. CREATE TABLE `hippo_sys_admin` (
  379. `sid` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
  380. `username` varchar(32) NOT NULL DEFAULT '' COMMENT '用户名',
  381. `password` varchar(64) NOT NULL DEFAULT '' COMMENT '用户密码',
  382. `nickname` char(16) NOT NULL DEFAULT '' COMMENT '昵称',
  383. `avator` varchar(150) NOT NULL DEFAULT '' COMMENT '头像',
  384. `email` char(100) DEFAULT NULL COMMENT '邮箱地址',
  385. `mobile` char(20) DEFAULT NULL COMMENT '手机号码',
  386. `salt` char(8) NOT NULL DEFAULT '' COMMENT '密码盐值',
  387. `login` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '登录次数',
  388. `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '账号状态',
  389. `create_timestamp` datetime NOT NULL COMMENT '注册时间',
  390. PRIMARY KEY (`sid`)
  391. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='系统用户表';
  392. -- ----------------------------
  393. -- Records of hippo_sys_admin
  394. -- ----------------------------
  395. INSERT INTO `hippo_sys_admin` VALUES ('1', 'admin', 'ae60dccc071c71dc5e9e3b40d7eb3afb', '超级管理员', '/static/images/avatar-1.jpg', '578322713@qq.com', '18535318830', 'Zzayqe', '1', '1', '2018-12-14 19:04:11');
  396. -- ----------------------------
  397. -- Table structure for hippo_sys_menu
  398. -- ----------------------------
  399. DROP TABLE IF EXISTS `hippo_sys_menu`;
  400. CREATE TABLE `hippo_sys_menu` (
  401. `nid` int(10) unsigned NOT NULL AUTO_INCREMENT,
  402. `title` varchar(50) NOT NULL DEFAULT '' COMMENT '标题',
  403. `type` varchar(10) NOT NULL DEFAULT 'admin' COMMENT '菜单类别(admin后台,user会员中心)',
  404. `icon` varchar(20) NOT NULL DEFAULT '' COMMENT '分类图标',
  405. `pid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '父级分类ID',
  406. `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序(同级有效)',
  407. `url` char(255) NOT NULL DEFAULT '' COMMENT '链接地址',
  408. `hide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隐藏',
  409. `group` varchar(50) DEFAULT '' COMMENT '分组',
  410. `is_dev` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否仅开发者模式可见',
  411. `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态',
  412. PRIMARY KEY (`nid`)
  413. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='菜单管理';
  414. -- ----------------------------
  415. -- Records of hippo_sys_menu
  416. -- ----------------------------
  417. -- ----------------------------
  418. -- Table structure for hippo_user
  419. -- ----------------------------
  420. DROP TABLE IF EXISTS `hippo_user`;
  421. CREATE TABLE `hippo_user` (
  422. `uid` int(11) unsigned NOT NULL AUTO_INCREMENT,
  423. `nickname` varchar(32) CHARACTER SET utf8mb4 DEFAULT NULL,
  424. `realname` varchar(32) DEFAULT NULL COMMENT '真实姓名',
  425. `gender` tinyint(4) DEFAULT NULL,
  426. `avatar` varchar(255) DEFAULT NULL COMMENT '登录凭据',
  427. `mobile` char(11) DEFAULT NULL COMMENT '手机号',
  428. `email` varchar(100) DEFAULT NULL,
  429. `addr` varchar(255) DEFAULT NULL COMMENT '联系地址',
  430. `free_times` tinyint(4) NOT NULL DEFAULT '0' COMMENT '免费次数,根据服务费付费方式获得',
  431. `inviter_code` char(6) DEFAULT NULL COMMENT '邀请码',
  432. `id_card` char(18) DEFAULT NULL COMMENT '身份证号码',
  433. `credit_card` varchar(24) DEFAULT NULL COMMENT '银行卡号',
  434. `social_type` tinyint(4) DEFAULT NULL COMMENT '社保户别',
  435. `social_city` mediumint(8) DEFAULT NULL COMMENT '参保城市',
  436. `last_social_basic` mediumint(8) DEFAULT NULL COMMENT '上次缴纳社保基数',
  437. `last_fund_basic` mediumint(8) DEFAULT NULL COMMENT '上次缴纳公积金基数',
  438. `update_timestamp` datetime DEFAULT NULL COMMENT '更新时间',
  439. `create_timestamp` datetime NOT NULL COMMENT '创建时间',
  440. PRIMARY KEY (`uid`)
  441. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
  442. -- ----------------------------
  443. -- Records of hippo_user
  444. -- ----------------------------
  445. INSERT INTO `hippo_user` VALUES ('1', '赵十四氏', '紫罗兰', '1', 'http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKUOC0ftZuklEBhfKc90VVlfdOSdy4fF92qtITzhaMQATCjAqRpFbNP8JibD74DkxfNvVMicL1aKcnw/0', '15532154466', '', '', '0', 'PTtbJF', '140321199105278033', null, '0', '0', null, null, '2019-04-04 15:12:28', '2019-03-14 14:25:55');
  446. INSERT INTO `hippo_user` VALUES ('2', 'hm_UaTJRNpH', null, '1', 'http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKUOC0ftZuklEBhfKc90VVlfdOSdy4fF92qtITzhaMQATCjAqRpFbNP8JibD74DkxfNvVMicL1aKcnw/0', '15512346698', null, null, '0', 'GBZXDd', null, null, null, null, null, null, '2019-03-16 16:30:22', '2019-03-16 16:30:22');
  447. -- ----------------------------
  448. -- Table structure for hippo_user_auths
  449. -- ----------------------------
  450. DROP TABLE IF EXISTS `hippo_user_auths`;
  451. CREATE TABLE `hippo_user_auths` (
  452. `uid` int(11) unsigned NOT NULL,
  453. `salt` char(6) NOT NULL COMMENT '密码盐值',
  454. `identity_type` char(8) NOT NULL COMMENT '登录类型 username,email,phone,weixin,qq,weibo,alipay,facebook,twitter,line,google',
  455. `identifier` varchar(255) NOT NULL COMMENT '登录凭据',
  456. `credential` varchar(11) DEFAULT NULL COMMENT '密码凭证'
  457. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  458. -- ----------------------------
  459. -- Records of hippo_user_auths
  460. -- ----------------------------
  461. INSERT INTO `hippo_user_auths` VALUES ('1', 'bhvtMJ', 'weixin', 'obqBt0f4y25Ugt8OVLIfolt9pWy4', '');
  462. INSERT INTO `hippo_user_auths` VALUES ('2', 'qGDRLV', 'mobile', '15512346698', '1234');