From 3751cebd7e798d240ae5a26044e392bba387e9ef Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Sun, 20 Sep 2020 12:17:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=94=A8=E4=BE=8B=E8=AF=84=E5=AE=A1fly?= =?UTF-8?q?way?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V23__test_case_review.sql | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 backend/src/main/resources/db/migration/V23__test_case_review.sql diff --git a/backend/src/main/resources/db/migration/V23__test_case_review.sql b/backend/src/main/resources/db/migration/V23__test_case_review.sql new file mode 100644 index 0000000000..da94c17066 --- /dev/null +++ b/backend/src/main/resources/db/migration/V23__test_case_review.sql @@ -0,0 +1,54 @@ +create table if not exists test_case_comment +( + id varchar(64) not null + primary key, + case_id varchar(64) null, + description text null, + author varchar(50) null, + create_time bigint(13) null, + update_time bigint(13) null +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +create table if not exists test_case_review +( + id varchar(50) not null + primary key, + name varchar(200) null, + creator varchar(50) null, + status varchar(50) null, + create_time bigint(13) null, + update_time bigint(13) null, + end_time bigint(13) null, + description text null +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +create table if not exists test_case_review_project +( + review_id varchar(50) null, + project_id varchar(50) null, + constraint test_case_review_project_pk + unique (review_id, project_id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +create table if not exists test_case_review_test_case +( + id varchar(64) not null + primary key, + review_id varchar(64) null, + case_id varchar(64) null, + status varchar(64) null, + result varchar(50) null, + reviewer varchar(64) null, + create_time bigint(13) null, + update_time bigint(13) null +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +create table if not exists test_case_review_users +( + review_id varchar(50) null, + user_id varchar(50) null, + constraint test_case_review_users_pk + unique (review_id, user_id) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +