From 71bd92d18e2b0ca1811d7f4139d0abf597448edd Mon Sep 17 00:00:00 2001 From: xiangZr-hhh <“2774915446@qq.com”> Date: Thu, 18 Apr 2024 10:18:35 +0800 Subject: [PATCH] =?UTF-8?q?patch:=E4=BF=AE=E6=AD=A3review=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E8=A1=A8=20=E5=88=A0=E9=99=A4=E9=83=A8?= =?UTF-8?q?=E5=88=86=E9=94=99=E8=AF=AF=E5=A4=96=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/mysql/oa_review.sql | 5 ---- src/main/resources/mysql/organize_oa.sql | 38 ++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/src/main/resources/mysql/oa_review.sql b/src/main/resources/mysql/oa_review.sql index c2bd1ff..e8bdd59 100644 --- a/src/main/resources/mysql/oa_review.sql +++ b/src/main/resources/mysql/oa_review.sql @@ -27,9 +27,4 @@ create table oa_review create index oa_review_project_id_oa_project_id_fk on oa_review (project_id); -create index oa_review_project_project_submodule_id_oa_project_work_id_fk - on oa_review (project_module_id); - -create index oa_review_project_subsystem_id_oa_project_work_id_fk - on oa_review (project_child_id); diff --git a/src/main/resources/mysql/organize_oa.sql b/src/main/resources/mysql/organize_oa.sql index 8d09fa0..253153a 100755 --- a/src/main/resources/mysql/organize_oa.sql +++ b/src/main/resources/mysql/organize_oa.sql @@ -203,6 +203,44 @@ CREATE TABLE `oa_user` DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT ='用户表'; +-- -------------------------------------------------------- + +-- +-- 表的结构 `oa_review` +-- + + +create table oa_review +( + id bigint unsigned auto_increment comment '主键' + primary key, + name varchar(255) not null comment '申请名称', + content longtext not null comment '申请理由', + sender_id bigint unsigned not null comment '申请者用户id', + recipient_id bigint unsigned null comment '审核者用户id', + category tinyint default 1 null comment '审核类别(0:子系统;1:子模块)', + project_id bigint unsigned not null comment '申请的项目id', + project_child_id bigint unsigned not null comment '申请的子系统id', + project_module_id bigint unsigned null comment '申请的子模块id', + application_time datetime default CURRENT_TIMESTAMP not null comment '申请时间', + review_time datetime null comment '审核时间', + review_result tinyint default 2 not null comment '审核结果(0:未通过;1:通过;2:未审批)', + is_delete tinyint default 0 not null comment '是否删除(0:未删除;1:已删除)', + created_time datetime default CURRENT_TIMESTAMP not null comment '创建时间', + updated_time datetime null comment '更新时间', + constraint oa_review_recipient_id_oa_user_id_fk + foreign key (recipient_id) references oa_user (id) + on update cascade on delete cascade, + constraint oa_review_sender_id_oa_user_id_fk + foreign key (sender_id) references oa_user (id) + on update cascade on delete cascade +); + +create index oa_review_project_id_oa_project_id_fk + on oa_review (project_id); + + + -- -- 转储表的索引 --