Files
fad_oa/script/sql/20241120表结构备份/sys_dept.sql

21 lines
1.1 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

create table fad_oa.sys_dept
(
dept_id bigint not null comment '部门id'
primary key,
parent_id bigint default 0 null comment '父部门id',
ancestors varchar(500) default '' null comment '祖级列表',
dept_name varchar(30) default '' null comment '部门名称',
order_num int default 0 null comment '显示顺序',
leader varchar(20) null comment '负责人',
phone varchar(11) null comment '联系电话',
email varchar(50) null comment '邮箱',
status char default '0' null comment '部门状态0正常 1停用',
del_flag char default '0' null comment '删除标志0代表存在 2代表删除',
create_by varchar(64) default '' null comment '创建者',
create_time datetime null comment '创建时间',
update_by varchar(64) default '' null comment '更新者',
update_time datetime null comment '更新时间'
)
comment '部门表' charset = utf8mb4;