mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 15:01:23 +08:00
Added table field enable into t_user
This commit is contained in:
@@ -49,6 +49,12 @@ public class User implements Serializable {
|
|||||||
@TableField("department_id")
|
@TableField("department_id")
|
||||||
private Long departmentId;
|
private Long departmentId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 启用
|
||||||
|
*/
|
||||||
|
@TableField("enable")
|
||||||
|
private Integer enable;
|
||||||
|
|
||||||
@TableField("deleted")
|
@TableField("deleted")
|
||||||
@TableLogic
|
@TableLogic
|
||||||
private Integer deleted;
|
private Integer deleted;
|
||||||
|
|||||||
@@ -113,6 +113,7 @@ create table `t_user`
|
|||||||
`username` varchar(20) not null comment '用户名',
|
`username` varchar(20) not null comment '用户名',
|
||||||
`passwd` char(70) not null comment '密码',
|
`passwd` char(70) not null comment '密码',
|
||||||
`department_id` bigint null comment '部门',
|
`department_id` bigint null comment '部门',
|
||||||
|
`enable` int not null comment '启用',
|
||||||
`deleted` int not null default 0,
|
`deleted` int not null default 0,
|
||||||
`version` int not null default 0,
|
`version` int not null default 0,
|
||||||
constraint t_user_department_id_fk foreign key (department_id) references t_department (id)
|
constraint t_user_department_id_fk foreign key (department_id) references t_department (id)
|
||||||
@@ -317,6 +318,6 @@ create table `t_attendance`
|
|||||||
`modify_time` datetime not null default CURRENT_TIMESTAMP comment '修改时间',
|
`modify_time` datetime not null default CURRENT_TIMESTAMP comment '修改时间',
|
||||||
`deleted` int not null default 0,
|
`deleted` int not null default 0,
|
||||||
`version` int not null default 0,
|
`version` int not null default 0,
|
||||||
constraint t_attendance_user_id_fk foreign key (user_id) references t_user(id),
|
constraint t_attendance_user_id_fk foreign key (user_id) references t_user (id),
|
||||||
constraint t_attendance_modify_id_fk foreign key (modify_id) references t_user(id)
|
constraint t_attendance_modify_id_fk foreign key (modify_id) references t_user (id)
|
||||||
) comment '考勤';
|
) comment '考勤';
|
||||||
Reference in New Issue
Block a user