Files
AI-Check-Test/.gitea/scripts/init_mysql.sql
dongzi 556f5b8ab6
Some checks failed
API Parameter Change Check / api-param-check (push) Failing after 3s
test
2026-06-03 15:02:21 +08:00

18 lines
1013 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- MySQL 变更日志表storage=mysql 时使用)
-- 执行前请先创建数据库并替换 YOUR_MYSQL_DATABASE
CREATE TABLE IF NOT EXISTS `api_change_logs` (
`id` BIGINT NOT NULL AUTO_INCREMENT COMMENT '主键',
`commit_sha` VARCHAR(64) NOT NULL COMMENT 'Git 提交 SHA',
`author` VARCHAR(128) NOT NULL COMMENT '提交人',
`commit_time` VARCHAR(64) NOT NULL COMMENT '提交时间',
`commit_message` TEXT NULL COMMENT '提交说明',
`change_count` INT NOT NULL DEFAULT 0 COMMENT '变更接口数量',
`reports_json` LONGTEXT NOT NULL COMMENT '变更详情 JSON',
`llm_review` TEXT NULL COMMENT 'LLM 评审结论',
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '记录写入时间',
PRIMARY KEY (`id`),
INDEX `idx_commit_sha` (`commit_sha`),
INDEX `idx_created_at` (`created_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='API 接口参数变更日志';