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;