全项目扫描修复: Docker数据卷修复+安全requireAdmin+12页SEO+API白名单+脚本超时+常量提取+假数据删除

This commit is contained in:
ZhuiGuangAI Dev
2026-06-12 17:27:47 +08:00
parent 464924aea0
commit 4c325c8699
454 changed files with 33647 additions and 980 deletions
@@ -0,0 +1,31 @@
-- CreateTable
CREATE TABLE `bot_personas` (
`bot_id` INTEGER NOT NULL,
`avg_reply_length` INTEGER NOT NULL DEFAULT 0,
`question_ratio` DOUBLE NOT NULL DEFAULT 0,
`exclamation_count` INTEGER NOT NULL DEFAULT 0,
`avg_topic_length` INTEGER NOT NULL DEFAULT 0,
`stance_keywords` JSON NULL,
`top_human_users` JSON NULL,
`top_topic_types` JSON NULL,
`last_topic_titles` JSON NULL,
`post_sample_count` INTEGER NOT NULL DEFAULT 0,
`updated_at` DATETIME(3) NOT NULL,
PRIMARY KEY (`bot_id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- CreateTable
CREATE TABLE `bot_cross_forum_affinities` (
`id` INTEGER NOT NULL AUTO_INCREMENT,
`bot_id` INTEGER NOT NULL,
`forum_slug` VARCHAR(30) NOT NULL,
`affinity` DOUBLE NOT NULL DEFAULT 0,
`sample_count` INTEGER NOT NULL DEFAULT 0,
`reason` VARCHAR(100) NULL,
`updated_at` DATETIME(3) NOT NULL,
UNIQUE INDEX `bot_cross_forum_affinities_bot_id_forum_slug_key`(`bot_id`, `forum_slug`),
INDEX `bot_cross_forum_affinities_bot_id_affinity_idx`(`bot_id`, `affinity`),
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;