shebao20150912.sql 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : 192.168.2.199
  4. Source Server Version : 50626
  5. Source Host : 192.168.2.199:3306
  6. Source Database : shebao
  7. Target Server Type : MYSQL
  8. Target Server Version : 50626
  9. File Encoding : 65001
  10. Date: 2015-09-12 15:18:16
  11. */
  12. SET FOREIGN_KEY_CHECKS=0;
  13. -- ----------------------------
  14. -- Table structure for `t_city_news`
  15. -- ----------------------------
  16. DROP TABLE IF EXISTS `t_city_news`;
  17. CREATE TABLE `t_city_news` (
  18. `c_n_id` int(30) unsigned NOT NULL AUTO_INCREMENT,
  19. `cid` int(30) DEFAULT NULL,
  20. `nid` int(30) DEFAULT NULL,
  21. PRIMARY KEY (`c_n_id`)
  22. ) ENGINE=InnoDB AUTO_INCREMENT=304 DEFAULT CHARSET=utf8;
  23. -- ----------------------------
  24. -- Table structure for `t_news`
  25. -- ----------------------------
  26. DROP TABLE IF EXISTS `t_news`;
  27. CREATE TABLE `t_news` (
  28. `nid` int(30) unsigned NOT NULL AUTO_INCREMENT COMMENT '标识ID',
  29. `title` varchar(255) DEFAULT NULL COMMENT '标题',
  30. `content` text COMMENT '内容',
  31. `publish_time` datetime DEFAULT NULL,
  32. PRIMARY KEY (`nid`)
  33. ) ENGINE=InnoDB AUTO_INCREMENT=220 DEFAULT CHARSET=utf8;
  34. -- ----------------------------
  35. -- Table structure for `t_sb_buy`
  36. -- ----------------------------
  37. DROP TABLE IF EXISTS `t_sb_buy`;
  38. CREATE TABLE `t_sb_buy` (
  39. `buy_no` varchar(32) NOT NULL DEFAULT '0' COMMENT '用于支付的订单号',
  40. `pay_uid` int(10) unsigned NOT NULL COMMENT '支付人ID',
  41. `id_card` varchar(20) NOT NULL COMMENT '身份证',
  42. `start_month` mediumint(8) unsigned NOT NULL COMMENT '购买的月份',
  43. `month_num` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '月份数',
  44. `pay_for` tinyint(1) unsigned NOT NULL DEFAULT '0',
  45. `cid` int(10) unsigned NOT NULL COMMENT '社保数据ID',
  46. `hukou` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '户籍性质',
  47. `total_fee` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '本单总金额',
  48. `shebaos` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '单月社保金额',
  49. `funds` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '单月公积金金额',
  50. `charges` decimal(6,2) NOT NULL DEFAULT '0.00' COMMENT '单月手续费',
  51. `card_charges` decimal(6,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '新办卡服务费',
  52. `pay_no` varchar(128) NOT NULL DEFAULT '' COMMENT '第三方支付订单号',
  53. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '支付状态',
  54. `gen_time` datetime NOT NULL COMMENT '创建时间',
  55. PRIMARY KEY (`buy_no`),
  56. KEY `buy_month_idx` (`start_month`)
  57. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='支付表';
  58. -- ----------------------------
  59. -- Table structure for `t_sb_buy_order`
  60. -- ----------------------------
  61. DROP TABLE IF EXISTS `t_sb_buy_order`;
  62. CREATE TABLE `t_sb_buy_order` (
  63. `order_no` varchar(32) NOT NULL COMMENT '子订单号',
  64. `buy_no` varchar(32) NOT NULL COMMENT '购买订单号',
  65. `pay_uid` int(10) unsigned NOT NULL COMMENT '支付人',
  66. `id_card` varchar(20) NOT NULL COMMENT '身份证',
  67. `city_code` smallint(6) NOT NULL COMMENT '城市代码',
  68. `pay_for` tinyint(1) NOT NULL COMMENT '对象(社保、公积金)',
  69. `for_month` int(10) unsigned NOT NULL COMMENT '月份201506',
  70. `shebaos` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '本月参保社保',
  71. `funds` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '本月缴存公积金',
  72. `charges` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '服务费',
  73. `new_card` tinyint(1) NOT NULL DEFAULT '0' COMMENT '新办卡',
  74. `isAuto` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否自动代扣生成',
  75. `status` tinyint(4) NOT NULL DEFAULT '2' COMMENT '状态(已支付成功)',
  76. `gen_time` datetime NOT NULL COMMENT '生成时间',
  77. PRIMARY KEY (`order_no`),
  78. KEY `buy_order_uid_idx` (`pay_uid`),
  79. KEY `buy_order_month_idx` (`for_month`)
  80. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='支付订单成功后的子订单';
  81. -- ----------------------------
  82. -- Records of t_sb_buy_order
  83. -- ----------------------------
  84. -- ----------------------------
  85. -- Table structure for `t_sb_buy_payer`
  86. -- ----------------------------
  87. DROP TABLE IF EXISTS `t_sb_buy_payer`;
  88. CREATE TABLE `t_sb_buy_payer` (
  89. `buy_no` varchar(32) NOT NULL,
  90. `pay_uid` int(10) unsigned NOT NULL,
  91. `pay_channel` varchar(32) NOT NULL,
  92. `buyer_id` varchar(32) DEFAULT NULL COMMENT '支付宝用户号/腾讯openID',
  93. `buyer_acc` varchar(32) DEFAULT NULL COMMENT '帐号、邮箱等',
  94. PRIMARY KEY (`buy_no`)
  95. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='支付成功后的相关信息';
  96. -- ----------------------------
  97. -- Records of t_sb_buy_payer
  98. -- ----------------------------
  99. -- ----------------------------
  100. -- Table structure for `t_sb_buy_user`
  101. -- ----------------------------
  102. DROP TABLE IF EXISTS `t_sb_buy_user`;
  103. CREATE TABLE `t_sb_buy_user` (
  104. `buy_no` varchar(32) NOT NULL COMMENT '购买订单号',
  105. `id_card` varchar(20) NOT NULL COMMENT '身份证',
  106. `user_name` varchar(32) NOT NULL COMMENT '订单受益人姓名',
  107. `nation` varchar(20) NOT NULL COMMENT '民族',
  108. `gender` tinyint(1) NOT NULL COMMENT '性别',
  109. `phone` varchar(16) NOT NULL COMMENT '联系方式',
  110. `modify_time` datetime DEFAULT NULL COMMENT '修改时间',
  111. `recon_result` tinyint(4) NOT NULL DEFAULT '0' COMMENT '核对结果',
  112. PRIMARY KEY (`buy_no`)
  113. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='参保人资料';
  114. -- ----------------------------
  115. -- Records of t_sb_buy_user
  116. -- ----------------------------
  117. -- ----------------------------
  118. -- Table structure for `t_sb_city`
  119. -- ----------------------------
  120. DROP TABLE IF EXISTS `t_sb_city`;
  121. CREATE TABLE `t_sb_city` (
  122. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  123. `city_code` smallint(6) NOT NULL COMMENT '城市编码',
  124. `shebao_type` varchar(32) DEFAULT '' COMMENT '社保类型(标准、豪华等)',
  125. `proxy_type` tinyint(3) unsigned DEFAULT NULL COMMENT '代理员工增减员方式1~8',
  126. `shebao_charge` decimal(6,2) DEFAULT NULL COMMENT '本城市的社保服务费',
  127. `shebao_card_charge` decimal(6,2) DEFAULT NULL COMMENT '本城市的代办社保卡服务费',
  128. `fund_charge` decimal(6,2) DEFAULT NULL COMMENT '本城市的公积金服务费',
  129. `package_charge` decimal(6,2) DEFAULT NULL COMMENT '社保、公积金打包服务费',
  130. `end_date` tinyint(4) DEFAULT NULL COMMENT '月购买日期区分',
  131. `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  132. PRIMARY KEY (`id`)
  133. ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='各城市、户藉的社保数据--主表';
  134. -- ----------------------------
  135. -- Records of t_sb_city
  136. -- ----------------------------
  137. INSERT INTO `t_sb_city` VALUES ('1', '1001', '标准', '1', '59.00', '20.00', '59.00', '99.00', '0', '2015-09-08 16:28:40');
  138. INSERT INTO `t_sb_city` VALUES ('4', '1002', '标准', '1', '59.00', '10.00', '59.00', '90.00', '15', '2015-08-21 14:43:27');
  139. INSERT INTO `t_sb_city` VALUES ('5', '1201', '标准', '1', '59.00', '20.00', '59.00', '90.00', '15', '2015-08-21 15:05:42');
  140. INSERT INTO `t_sb_city` VALUES ('6', '1003', '标准', '0', '2.00', '2.00', '2.00', '2.00', '0', '2015-09-08 19:55:24');
  141. -- ----------------------------
  142. -- Table structure for `t_sb_city_data`
  143. -- ----------------------------
  144. DROP TABLE IF EXISTS `t_sb_city_data`;
  145. CREATE TABLE `t_sb_city_data` (
  146. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  147. `cid` int(10) unsigned NOT NULL COMMENT '见T_SB_CITY',
  148. `hukou_type` tinyint(4) NOT NULL COMMENT '户籍性质',
  149. `pension` varchar(64) DEFAULT NULL COMMENT '养老',
  150. `medical` varchar(64) DEFAULT NULL COMMENT '医疗',
  151. `lose_job` varchar(64) DEFAULT NULL COMMENT '失业保险',
  152. `birth` varchar(64) DEFAULT NULL COMMENT '生育保险',
  153. `injury` varchar(64) DEFAULT NULL COMMENT '工伤',
  154. `major` varchar(64) DEFAULT NULL COMMENT '住院/重大',
  155. `village` varchar(64) DEFAULT NULL COMMENT '农民工医疗',
  156. `supplement` decimal(8,2) DEFAULT NULL COMMENT '补充医疗',
  157. `disabled` decimal(8,2) DEFAULT NULL COMMENT '残保金',
  158. `fund` varchar(64) DEFAULT NULL COMMENT '公积金最低额度',
  159. PRIMARY KEY (`id`)
  160. ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COMMENT='各城市、户藉的社保数据(ID与各户籍性质的社保数据)';
  161. -- ----------------------------
  162. -- Records of t_sb_city_data
  163. -- ----------------------------
  164. INSERT INTO `t_sb_city_data` VALUES ('8', '1', '1', '{\"min\":2408.0,\"max\":24080.0,\"e\":14.0,\"p\":8.0}', '{\"min\":3712.0,\"max\":37120.0,\"e\":8.0,\"p\":2.0}', '{\"min\":1895.0,\"max\":18950.0,\"e\":1.2,\"p\":0.5}', '{\"min\":3712.0,\"max\":37120.0,\"e\":0.85,\"p\":0.0}', '{\"min\":1895.0,\"max\":18950.0,\"e\":0.5,\"p\":0.0}', '{\"min\":6187.0,\"max\":9000.0,\"e\":0.26,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '0.00', '0.00', '{\"min\":200.0,\"max\":5331.0,\"e\":5.0,\"p\":5.0}');
  165. INSERT INTO `t_sb_city_data` VALUES ('9', '1', '2', '{\"min\":2408.0,\"max\":24080.0,\"e\":14.0,\"p\":8.0}', '{\"min\":3712.0,\"max\":37120.0,\"e\":8.0,\"p\":2.0}', '{\"min\":1895.0,\"max\":18950.0,\"e\":1.2,\"p\":0.5}', '{\"min\":3712.0,\"max\":37120.0,\"e\":0.85,\"p\":0.0}', '{\"min\":1895.0,\"max\":18950.0,\"e\":0.5,\"p\":0.0}', '{\"min\":1234.0,\"max\":5000.0,\"e\":0.26,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '0.00', '0.00', '{\"min\":300.0,\"max\":5300.0,\"e\":5.0,\"p\":5.0}');
  166. INSERT INTO `t_sb_city_data` VALUES ('10', '1', '3', '{\"min\":2408.0,\"max\":24080.0,\"e\":14.0,\"p\":8.0}', '{\"min\":3712.0,\"max\":37120.0,\"e\":8.0,\"p\":2.0}', '{\"min\":1895.0,\"max\":18950.0,\"e\":1.2,\"p\":0.5}', '{\"min\":3712.0,\"max\":37120.0,\"e\":0.85,\"p\":0.0}', '{\"min\":1895.0,\"max\":18950.0,\"e\":0.5,\"p\":0.0}', '{\"min\":6187.0,\"max\":9000.0,\"e\":0.26,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '0.00', '0.00', '{\"min\":303.0,\"max\":5303.0,\"e\":5.0,\"p\":5.0}');
  167. INSERT INTO `t_sb_city_data` VALUES ('11', '1', '4', '{\"min\":2408.0,\"max\":24080.0,\"e\":14.0,\"p\":8.0}', '{\"min\":3712.0,\"max\":37120.0,\"e\":8.0,\"p\":2.0}', '{\"min\":1895.0,\"max\":18950.0,\"e\":1.2,\"p\":0.5}', '{\"min\":3712.0,\"max\":37120.0,\"e\":0.85,\"p\":0.0}', '{\"min\":1895.0,\"max\":18950.0,\"e\":0.5,\"p\":0.0}', '{\"min\":6187.0,\"max\":9000.0,\"e\":0.26,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '0.00', '0.00', '{\"min\":308.0,\"max\":5308.0,\"e\":5.0,\"p\":5.0}');
  168. INSERT INTO `t_sb_city_data` VALUES ('12', '4', '1', '{\"min\":2408.0,\"max\":14958.0,\"e\":13.0,\"p\":8.0}', '{\"min\":3712.0,\"max\":3712.0,\"e\":5.0,\"p\":2.0}', '{\"min\":1510.0,\"max\":13920.0,\"e\":0.5,\"p\":0.5}', '{\"min\":3480.0,\"max\":3920.0,\"e\":0.9,\"p\":0.0}', '{\"min\":2784.0,\"max\":13920.0,\"e\":0.45,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '0.00', '37.02', null);
  169. INSERT INTO `t_sb_city_data` VALUES ('13', '4', '2', '{\"min\":2408.0,\"max\":14958.0,\"e\":13.0,\"p\":8.0}', '{\"min\":3712.0,\"max\":3712.0,\"e\":5.0,\"p\":2.0}', '{\"min\":1510.0,\"max\":13920.0,\"e\":0.5,\"p\":0.5}', '{\"min\":3480.0,\"max\":3920.0,\"e\":0.9,\"p\":0.0}', '{\"min\":2784.0,\"max\":13920.0,\"e\":0.45,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '0.00', '37.02', null);
  170. INSERT INTO `t_sb_city_data` VALUES ('14', '4', '3', '{\"min\":2408.0,\"max\":14958.0,\"e\":13.0,\"p\":8.0}', '{\"min\":3712.0,\"max\":3712.0,\"e\":5.0,\"p\":2.0}', '{\"min\":1510.0,\"max\":13920.0,\"e\":0.5,\"p\":0.5}', '{\"min\":3480.0,\"max\":3920.0,\"e\":0.9,\"p\":0.0}', '{\"min\":2784.0,\"max\":13920.0,\"e\":0.45,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '0.00', '37.02', null);
  171. INSERT INTO `t_sb_city_data` VALUES ('15', '4', '4', '{\"min\":2408.0,\"max\":14958.0,\"e\":13.0,\"p\":8.0}', '{\"min\":3712.0,\"max\":3712.0,\"e\":5.0,\"p\":2.0}', '{\"min\":1510.0,\"max\":13920.0,\"e\":0.5,\"p\":0.5}', '{\"min\":3480.0,\"max\":3920.0,\"e\":0.9,\"p\":0.0}', '{\"min\":2784.0,\"max\":13920.0,\"e\":0.45,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '0.00', '37.02', null);
  172. INSERT INTO `t_sb_city_data` VALUES ('16', '5', '1', '{\"min\":2415.0,\"max\":12075.0,\"e\":20.0,\"p\":8.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":8.0,\"p\":2.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":2.0,\"p\":1.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":0.7,\"p\":0.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":0.5,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '90.00', '0.00', null);
  173. INSERT INTO `t_sb_city_data` VALUES ('17', '5', '2', '{\"min\":2415.0,\"max\":12075.0,\"e\":20.0,\"p\":8.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":8.0,\"p\":2.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":2.0,\"p\":1.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":0.7,\"p\":0.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":0.5,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '90.00', '0.00', null);
  174. INSERT INTO `t_sb_city_data` VALUES ('18', '5', '3', '{\"min\":2415.0,\"max\":12075.0,\"e\":20.0,\"p\":8.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":8.0,\"p\":2.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":2.0,\"p\":1.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":0.7,\"p\":0.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":0.5,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '90.00', '0.00', null);
  175. INSERT INTO `t_sb_city_data` VALUES ('19', '5', '4', '{\"min\":2415.0,\"max\":12075.0,\"e\":20.0,\"p\":8.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":8.0,\"p\":2.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":2.0,\"p\":1.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":0.7,\"p\":0.0}', '{\"min\":2415.0,\"max\":12075.0,\"e\":0.5,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '{\"min\":0.0,\"max\":0.0,\"e\":0.0,\"p\":0.0}', '90.00', '0.00', null);
  176. -- ----------------------------
  177. -- Table structure for `t_sb_user`
  178. -- ----------------------------
  179. DROP TABLE IF EXISTS `t_sb_user`;
  180. CREATE TABLE `t_sb_user` (
  181. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  182. `u_id` int(10) unsigned NOT NULL COMMENT '用户标识',
  183. `id_card` varchar(20) NOT NULL COMMENT '身份证号码',
  184. `user_name` varchar(12) NOT NULL COMMENT '姓名',
  185. `nation` varchar(16) DEFAULT NULL COMMENT '民族',
  186. `gender` tinyint(4) DEFAULT NULL COMMENT '性别',
  187. `phone` varchar(12) DEFAULT NULL COMMENT '联系电话',
  188. `shebao_card` varchar(24) DEFAULT NULL COMMENT '社保卡号',
  189. `id_card_img` varchar(256) DEFAULT NULL COMMENT '正反面身份证图片链接',
  190. PRIMARY KEY (`id`),
  191. UNIQUE KEY `sb_user_uniq` (`u_id`,`id_card`),
  192. KEY `sb_user_uid` (`u_id`)
  193. ) ENGINE=InnoDB AUTO_INCREMENT=99 DEFAULT CHARSET=utf8 COMMENT='参保人身份数据(一个用户标识可对应多个参保人信息)';
  194. -- ----------------------------
  195. -- Table structure for `t_sys_log`
  196. -- ----------------------------
  197. DROP TABLE IF EXISTS `t_sys_log`;
  198. CREATE TABLE `t_sys_log` (
  199. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  200. `uid` int(10) unsigned NOT NULL,
  201. `error_msg` text,
  202. PRIMARY KEY (`id`)
  203. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='系统执行过程中的异常';
  204. -- ----------------------------
  205. -- Records of t_sys_log
  206. -- ----------------------------
  207. -- ----------------------------
  208. -- Table structure for `t_user`
  209. -- ----------------------------
  210. DROP TABLE IF EXISTS `t_user`;
  211. CREATE TABLE `t_user` (
  212. `u_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '本系统的用户标识',
  213. `user_id` varchar(32) DEFAULT NULL COMMENT '兼容性用户ID',
  214. `phone` varchar(13) DEFAULT NULL COMMENT '手机号码',
  215. `password` varchar(32) DEFAULT NULL COMMENT '密码',
  216. `nick_name` varchar(20) DEFAULT NULL COMMENT '昵称',
  217. `head_img` varchar(64) NOT NULL DEFAULT '' COMMENT '头像图片链接',
  218. `reg_channel` varchar(12) NOT NULL DEFAULT '0' COMMENT '注册来源(手机注册、闪聘帐号、微信账号)',
  219. `reg_time` datetime DEFAULT NULL COMMENT '注册时间',
  220. `login_time` datetime DEFAULT NULL COMMENT '登录时间',
  221. PRIMARY KEY (`u_id`),
  222. UNIQUE KEY `user_phone_idx` (`phone`)
  223. ) ENGINE=InnoDB AUTO_INCREMENT=1000001 DEFAULT CHARSET=utf8 COMMENT='用户基本信息表';