优化动图

This commit is contained in:
2025-10-23 10:30:43 +08:00
parent 77bc2c5775
commit 590b26c420
10 changed files with 254 additions and 49 deletions
@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "ImageFile" ADD COLUMN "duration" INTEGER;
+1
View File
@@ -144,6 +144,7 @@ model ImageFile {
height Int?
animated String? // 如果是动图,存储 video 格式的 URL
duration Int? // 动图时长(毫秒),仅当 animated 不为 null 时有值
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt