mysql.sql 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. DROP TABLE IF EXISTS `mall_admin_user`;
  2. CREATE TABLE `mall_admin_user` (
  3. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  4. `username` varchar(100) NOT NULL COMMENT '用户名',
  5. `password` char(32) NOT NULL COMMENT '密码',
  6. `status` tinyint(1) unsigned NOT NULL COMMENT '1正常,0待审,99删除',
  7. `create_time` int(10) unsigned NOT NULL COMMENT '创建时间',
  8. `update_time` int(10) NOT NULL COMMENT '更新时间',
  9. `last_login_time` int(10) NOT NULL COMMENT '最后登录时间',
  10. `last_login_ip` varchar(100) NOT NULL COMMENT '最后登录ip',
  11. `operate_user` varchar(100) NOT NULL COMMENT '操作人',
  12. PRIMARY KEY (`id`),
  13. UNIQUE KEY `username` (`username`) USING BTREE
  14. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
  15. DROP TABLE IF EXISTS `mall_user`;
  16. CREATE TABLE `mall_user` (
  17. `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id',
  18. `username` varchar(100) NOT NULL COMMENT '用户名',
  19. `phone_number` varchar(20) NOT NULL COMMENT '手机号',
  20. `password` char(32) NOT NULL COMMENT '密码',
  21. `ltype` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '登录方式 默认0手机号码登录 1用户密码登录',
  22. `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '会话保存天数',
  23. `sex` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '性别',
  24. `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
  25. `update_time` int(10) NOT NULL DEFAULT '0' COMMENT '更新时间',
  26. `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1正常,0待审,99删除',
  27. `operate_user` varchar(100) NOT NULL COMMENT '操作人',
  28. PRIMARY KEY (`id`) USING BTREE,
  29. KEY `username` (`username`),
  30. KEY `phone_number` (`phone_number`)
  31. ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;