From 4a6235f716fd7ee1032031001d3d6a3626fe1cdd Mon Sep 17 00:00:00 2001 From: 18610128193 <10574456+chenweiqiang-123@user.noreply.gitee.com> Date: Tue, 16 Jun 2026 17:37:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=89=8D=E6=B5=8B=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- video-gen-api/app/models/resources_material.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/video-gen-api/app/models/resources_material.py b/video-gen-api/app/models/resources_material.py index a659e82a..f9f93eef 100644 --- a/video-gen-api/app/models/resources_material.py +++ b/video-gen-api/app/models/resources_material.py @@ -1,4 +1,4 @@ -from sqlalchemy import BigInteger, String +from sqlalchemy import BigInteger, String, Text from sqlalchemy.orm import Mapped, mapped_column from app.models.base import Base, TimestampMixin, SoftDeleteMixin @@ -33,4 +33,19 @@ class ResourcesMaterial(Base, TimestampMixin, SoftDeleteMixin): ) user_id: Mapped[str | None] = mapped_column( String(64), nullable=True, index=True, comment="用户登录id" + ) + task_id: Mapped[str | None] = mapped_column( + String(32), nullable=True, index=True, comment="前测任务id" + ) + note: Mapped[str | None] = mapped_column( + Text, nullable=True, comment="前测失败备注或者其他备注" + ) + status: Mapped[str | None] = mapped_column( + String(16), nullable=True, comment="前测状态(FAILED/PENDING/SUCCESS)" + ) + pre_result: Mapped[str | None] = mapped_column( + Text, nullable=True, comment="前测结果,JSON数组对象" + ) + pre_test_template_id: Mapped[str | None] = mapped_column( + String(32), nullable=True, comment="前测模板id" ) \ No newline at end of file