CREATE TABLE `m_user` (
user_id int(10) not null auto_increment comment '用户id',
username varchar(100) not null default '' comment '用户名',
password char(32) not null default '' comment '密码',
given_name varchar(50) not null default '' comment '姓名',
mobile char(13) not null default '' comment '手机号',
phone char(13) not null default '' comment '电话',
email varchar(50) not null default '' comment '邮箱',
department char(50) not null default comment '部门',
position char(50) not null default '' comment '职位',
`location` char(50) not null default '' comment '位置',
last_ip varchar(15) not null default '' comment '最后登录ip',
last_time int(11) not null default '0' comment '最后登录时间',
role_id tinyint(3) not null default '0' comment '角色id',
is_forbidden tinyint(3) not null default '0' comment '是否屏蔽, 0 否 1 是',
is_delete tinyint(3) not null default '0' comment '是否删除, 0 否 1 是',
create_time int(11) not null default '0' comment '创建时间',
update_time int(11) not null default '0' comment '更新时间',
primary key (`user_id`)
) ENGINE=INNODB auto_increment=26 default charset=utf8 comment '用户表'