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