|
@@ -1,13 +1,13 @@
|
|
|
drop table if exists system_user_t;
|
|
|
create table system_user_t
|
|
|
(
|
|
|
- user_id varchar(20) not null comment '用户ID'
|
|
|
+ id varchar(20) not null comment '唯一标识'
|
|
|
primary key,
|
|
|
- dept_id varchar(20) not null comment '部门ID',
|
|
|
+ org_id varchar(20) not null comment '组织ID',
|
|
|
account varchar(50) null comment '用户账号',
|
|
|
user_name varchar(50) null comment '用户姓名',
|
|
|
nick_name varchar(50) null comment '用户昵称',
|
|
|
- user_type varchar(30) null comment '用户类型(sys_user系统用户)',
|
|
|
+ user_type varchar(30) null comment '用户类型(system系统用户)',
|
|
|
email varchar(50) null comment '用户邮箱',
|
|
|
phone_number varchar(11) null comment '手机号码',
|
|
|
gender varchar(20) null comment '用户性别(0男 1女 2未知)',
|
|
@@ -28,13 +28,15 @@ create table system_user_t
|
|
|
row_format = DYNAMIC;
|
|
|
|
|
|
|
|
|
-drop table if exists system_dept_t;
|
|
|
-create table system_dept_t
|
|
|
+drop table if exists system_org_t;
|
|
|
+create table system_org_t
|
|
|
(
|
|
|
- dept_id varchar(20) not null comment '部门ID'
|
|
|
+ id varchar(20) not null comment '唯一标识'
|
|
|
primary key,
|
|
|
- parent_id varchar(20) null comment '父部门ID',
|
|
|
- dept_name varchar(100) null comment '部门名称',
|
|
|
+ parent_id varchar(20) null comment '父组织ID',
|
|
|
+ name varchar(255) null comment '组织名称',
|
|
|
+ code varchar(255) null comment '组织编码',
|
|
|
+ category varchar(255) null comment '类别',
|
|
|
order_num int null comment '显示顺序',
|
|
|
leader_id varchar(20) null comment '负责人',
|
|
|
phone varchar(11) null comment '联系电话',
|