From da8427645e968823a0be1595fd2e86b06a8fb121 Mon Sep 17 00:00:00 2001 From: hejieehe <904696180@qq.com> Date: Thu, 26 Dec 2024 14:22:29 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=B5=81=E6=B0=B4=E7=BA=BF?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=8F=98=E6=9B=B4=E8=AE=B0=E5=BD=95=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20AI=20=E7=94=9F=E6=88=90=E6=91=98=E8=A6=81?= =?UTF-8?q?=20#11228=20=E8=A1=A5=E5=85=85SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- support-files/sql/1001_ci_repository_ddl_mysql.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/support-files/sql/1001_ci_repository_ddl_mysql.sql b/support-files/sql/1001_ci_repository_ddl_mysql.sql index 3d994cb272a..775b86d5c25 100644 --- a/support-files/sql/1001_ci_repository_ddl_mysql.sql +++ b/support-files/sql/1001_ci_repository_ddl_mysql.sql @@ -263,4 +263,18 @@ CREATE TABLE IF NOT EXISTS `T_REPOSITORY_SCM_TOKEN` ( UNIQUE KEY `UNIQ_USER_SCM_CODE_APP_TYPE` (`USER_ID`,`SCM_CODE`,`APP_TYPE`) ) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COMMENT='代码仓库token表'; +CREATE TABLE `T_REPOSITORY_COPILOT_SUMMARY` ( + `PROJECT_ID` varchar(64) NOT NULL COMMENT '蓝盾项目ID', + `BUILD_ID` varchar(64) NOT NULL COMMENT '构建ID', + `ELEMENT_ID` varchar(64) NOT NULL COMMENT '插件ID', + `SCM_CODE` varchar(32) DEFAULT NULL COMMENT '代码库类型', + `PROJECT_NAME` varchar(255) DEFAULT NULL COMMENT '仓库唯一标识', + `SOURCE_COMMIT` varchar(64) DEFAULT NULL COMMENT '源提交点', + `TARGET_COMMIT` varchar(64) DEFAULT NULL COMMENT '目标提交点', + `STATUS` int(11) DEFAULT NULL COMMENT '生成状态,1-生成中,3-生成失败, 5-生成成功', + `SUMMARY` text COMMENT 'AI 摘要', + `CREATE_TIME` timestamp NULL DEFAULT NULL COMMENT '创建时间', + PRIMARY KEY (`PROJECT_ID`,`BUILD_ID`,`ELEMENT_ID`) +) ENGINE=INNODB DEFAULT CHARSET=utf8mb4 COMMENT='代码库copilot摘要表'; + SET FOREIGN_KEY_CHECKS = 1;