From 5a57ea4b1c58e2468fcf000f58e9425f9e1b9bba Mon Sep 17 00:00:00 2001 From: XiaoLFeng Date: Thu, 11 Apr 2024 23:53:16 +0800 Subject: [PATCH] =?UTF-8?q?patch:=20=E6=95=B0=E6=8D=AE=E8=A1=A8=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/oa_project_child.sql | 23 +++++++++++++++++++++++ mysql/oa_project_modules.sql | 21 +++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 mysql/oa_project_child.sql create mode 100644 mysql/oa_project_modules.sql diff --git a/mysql/oa_project_child.sql b/mysql/oa_project_child.sql new file mode 100644 index 0000000..dfb119e --- /dev/null +++ b/mysql/oa_project_child.sql @@ -0,0 +1,23 @@ +USE organize_oa; + +create table oa_project_child +( + id bigint unsigned auto_increment comment '项目id' + primary key, + project_id bigint unsigned not null comment '主要项目id', + name varchar(100) not null comment '项目名称', + principal_id bigint unsigned not null comment '项目负责人', + description json null comment '项目描述(技术选择,描述)', + cycle int unsigned not null comment '项目周期', + work_load int unsigned default '1' not null comment '工作量(人天)', + files json null comment '子项目文件', + complete_time date null comment '完成时间', + created_at timestamp default CURRENT_TIMESTAMP not null comment '创建时间', + updated_at timestamp null comment '更新时间', + is_delete tinyint(1) default 0 not null comment '项目是否删除', + constraint oa_project_child_oa_user_id_fk + foreign key (principal_id) references oa_user (id) + on update cascade +) + comment '项目表'; + diff --git a/mysql/oa_project_modules.sql b/mysql/oa_project_modules.sql new file mode 100644 index 0000000..98a0d73 --- /dev/null +++ b/mysql/oa_project_modules.sql @@ -0,0 +1,21 @@ +USE organize_oa; + +create table oa_project_modules +( + id bigint unsigned auto_increment comment '模块id' + primary key, + project_child_id bigint unsigned not null comment '子项目id', + name varchar(100) not null comment '模块名称', + principal_id bigint unsigned not null comment '模块负责人', + description json null comment '项目描述(技术选择,描述)', + work_load int unsigned default '1' not null comment '工作量(人天)', + complete_time datetime null comment '完成时间', + created_at timestamp default CURRENT_TIMESTAMP not null comment '创建时间', + updated_at timestamp null comment '更新时间', + is_delete tinyint(1) default 0 not null comment '项目是否删除', + constraint oa_project_modules_oa_user_id_fk + foreign key (principal_id) references oa_user (id) + on update cascade +) + comment '模块表'; +