新增前测模型

This commit is contained in:
18610128193
2026-06-16 17:37:01 +08:00
parent f35707aaa8
commit 4a6235f716
+16 -1
View File
@@ -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"
)