feat: ASW-113 新增 application MR 接口

This commit is contained in:
shizhendong
2024-10-28 11:01:29 +08:00
parent 890f5ccda9
commit 874c95fa9c
11 changed files with 378 additions and 0 deletions

View File

@@ -351,6 +351,27 @@ CREATE TABLE `application_href` (
KEY `idx_application_id` (`application_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/**
* 新增 application_merge 表
*/
DROP TABLE IF EXISTS `application_merge`;
CREATE TABLE `application_merge` (
`id` VARCHAR(64) NOT NULL COMMENT '主键',
`source_branch` VARCHAR(256) NOT NULL DEFAULT '' COMMENT '源分支',
`target_branch` VARCHAR(256) NOT NULL DEFAULT '' COMMENT '目标分支',
`commit_id` VARCHAR(256) NOT NULL DEFAULT '' COMMENT '提交ID',
`title` VARCHAR(4096) NOT NULL DEFAULT '' COMMENT '标题',
`remove_source_branch` int(1) NOT NULL DEFAULT 0 COMMENT '是否删除源分支, 1删除;0不删除 默认0',
`description` text NOT NULL DEFAULT '' COMMENT '描述信息',
`status` VARCHAR(64) NOT NULL DEFAULT '' COMMENT '合并状态,可选值success,failed',
`message` text NOT NULL DEFAULT '' COMMENT '操作信息',
`create_timestamp` BIGINT(20) NOT NULL COMMENT '创建时间戳',
`create_user_id` VARCHAR(64) NOT NULL COMMENT '创建人id',
`workspace_id` varchar(64) NOT NULL DEFAULT '' COMMENT '工作空间ID',
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_workspace_id` (`workspace_id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
/**
* 新增 package 表
*/