feat: 多功能更新

This commit is contained in:
2026-04-26 00:39:28 +08:00
parent abd1b03529
commit e26e2f5491
26 changed files with 992 additions and 330 deletions
@@ -0,0 +1,4 @@
ALTER TABLE `image_generations`
DROP COLUMN `image_base64`,
ADD COLUMN `hosted_image_url` VARCHAR(2048) NULL COMMENT 'Lsky 图床归档后的图片 URL' AFTER `image_url`,
ADD COLUMN `hosted_response` JSON NULL COMMENT '完整 Lsky 图床上传接口响应' AFTER `upstream_response`;
+2 -1
View File
@@ -44,10 +44,11 @@ model ImageGeneration {
endedAt DateTime? @map("ended_at")
durationMs Int? @map("duration_ms")
imageUrl String? @map("image_url") @db.VarChar(2048)
imageBase64 String? @map("image_base64") @db.LongText
hostedImageUrl String? @map("hosted_image_url") @db.VarChar(2048)
imageMimeType String? @map("image_mime_type") @db.VarChar(191)
revisedPrompt String? @map("revised_prompt") @db.Text
upstreamResponse Json? @map("upstream_response")
hostedResponse Json? @map("hosted_response")
errorMessage String? @map("error_message") @db.Text
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")