全栈: Task模型+remark字段 + 前端任务卡片初始说明展示区

This commit is contained in:
2026-08-05 15:22:50 +08:00
parent 3b02c87067
commit 22f7bb2f79
4 changed files with 42 additions and 0 deletions

View File

@ -69,6 +69,9 @@ class Task(Base):
is_rework: Mapped[bool] = mapped_column(
Boolean, default=False, comment="是否为返工任务",
)
remark: Mapped[str | None] = mapped_column(
String(2000), nullable=True, comment="任务初始描述/交接备注",
)
# ---- 关系 ----
product: Mapped["Product"] = relationship("Product", lazy="selectin")