优化爬取

This commit is contained in:
2025-10-21 14:40:27 +08:00
parent 9b45c4e3e8
commit 9d1598a5ab
7 changed files with 118 additions and 54 deletions
@@ -0,0 +1,6 @@
-- AlterTable
ALTER TABLE "ImagePost" ADD COLUMN "raw_json" JSONB;
-- AlterTable
ALTER TABLE "Video" ADD COLUMN "fps" INTEGER,
ADD COLUMN "raw_json" JSONB;
+9
View File
@@ -42,6 +42,9 @@ model Video {
width Int?
height Int?
// 视频帧率
fps Int?
// 视频封面(首帧提取后上传到 MinIO 的外链)
cover_url String?
@@ -53,6 +56,9 @@ model Video {
tags String[] // 视频标签列表
video_url String // 视频文件 URL
// 保存完整的接口原始 JSON 数据(用于备份和后续分析)
raw_json Json?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@ -117,6 +123,9 @@ model ImagePost {
images ImageFile[]
comments Comment[]
// 保存完整的接口原始 JSON 数据(用于备份和后续分析)
raw_json Json?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt