From b26605a1d0cbf7931b6ab0afda6100f3f700dcb8 Mon Sep 17 00:00:00 2001 From: zhishi <1951671751@qq.com> Date: Tue, 31 Mar 2026 19:36:35 +0800 Subject: [PATCH] no message --- src/routes/script/delScript.ts | 3 +++ src/types/database.d.ts | 19 ++----------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/src/routes/script/delScript.ts b/src/routes/script/delScript.ts index 8eb3791..665b291 100644 --- a/src/routes/script/delScript.ts +++ b/src/routes/script/delScript.ts @@ -14,6 +14,9 @@ export default router.post( async (req, res) => { const { id } = req.body; await u.db("o_script").whereIn("id", id).delete(); + await u.db("o_assets2Script").whereIn("scriptId", id).delete(); + await u.db("o_storyboard").whereIn("scriptId", id).delete(); + await u.db("o_video").whereIn("scriptId", id).delete(); res.status(200).send(success({ message: "删除剧本成功" })); }, ); diff --git a/src/types/database.d.ts b/src/types/database.d.ts index 4d73b78..71424a0 100644 --- a/src/types/database.d.ts +++ b/src/types/database.d.ts @@ -1,20 +1,6 @@ -// @db-hash 125ad64f9dc929a01dd6bfb955f16031 +// @db-hash d1fbadf1691063f5a730337685fd85b1 //该文件由脚本自动生成,请勿手动修改 -export interface _o_project_old_20260331 { - 'artStyle'?: string | null; - 'createTime'?: number | null; - 'id'?: number | null; - 'imageModel'?: string | null; - 'imageQuality'?: string | null; - 'intro'?: string | null; - 'name'?: string | null; - 'projectType'?: string | null; - 'type'?: string | null; - 'userId'?: number | null; - 'videoModel'?: string | null; - 'videoRatio'?: string | null; -} export interface memories { 'content': string; 'createTime': number; @@ -87,6 +73,7 @@ export interface o_image { 'filePath'?: string | null; 'id'?: number; 'model'?: string | null; + 'reason'?: string | null; 'resolution'?: string | null; 'state'?: string | null; 'type'?: string | null; @@ -127,7 +114,6 @@ export interface o_project { 'imageModel'?: string | null; 'imageQuality'?: string | null; 'intro'?: string | null; - 'mode'?: string | null; 'name'?: string | null; 'projectType'?: string | null; 'type'?: string | null; @@ -249,7 +235,6 @@ export interface o_videoConfig { } export interface DB { - "_o_project_old_20260331": _o_project_old_20260331; "memories": memories; "o_agentDeploy": o_agentDeploy; "o_agentWorkData": o_agentWorkData;