DROP TABLE IF EXISTS `mall_admin_user`; CREATE TABLE `mall_admin_user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id', `username` varchar(100) NOT NULL COMMENT '用户名', `password` char(32) NOT NULL COMMENT '密码', `status` tinyint(1) unsigned NOT NULL COMMENT '1正常,0待审,99删除', `create_time` int(10) unsigned NOT NULL COMMENT '创建时间', `update_time` int(10) NOT NULL COMMENT '更新时间', `last_login_time` int(10) NOT NULL COMMENT '最后登录时间', `last_login_ip` varchar(100) NOT NULL COMMENT '最后登录ip', `operate_user` varchar(100) NOT NULL COMMENT '操作人', PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `mall_user`; CREATE TABLE `mall_user` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键id', `username` varchar(100) NOT NULL COMMENT '用户名', `phone_number` varchar(20) NOT NULL COMMENT '手机号', `password` char(32) NOT NULL COMMENT '密码', `ltype` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '登录方式 默认0手机号码登录 1用户密码登录', `type` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '会话保存天数', `sex` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '性别', `create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间', `update_time` int(10) NOT NULL DEFAULT '0' COMMENT '更新时间', `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1正常,0待审,99删除', `operate_user` varchar(100) NOT NULL COMMENT '操作人', PRIMARY KEY (`id`) USING BTREE, KEY `username` (`username`), KEY `phone_number` (`phone_number`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;