feat: add review_scope field to distinguish cross-review vs standard documents

This commit is contained in:
wren
2026-05-13 17:46:17 +08:00
parent 72bc24dfcd
commit ed60a1f8da
5 changed files with 11 additions and 6 deletions
@@ -31,6 +31,7 @@ class LeauditDocument(BaseModel):
rootVersionId: Mapped[int | None] = mapped_column("root_version_id", BigInteger, comment="首版本文档ID")
isLatestVersion: Mapped[bool] = mapped_column("is_latest_version", Boolean, default=True, comment="是否当前最新版本")
normalizedName: Mapped[str | None] = mapped_column("normalized_name", String(512), comment="归一化文件名(不含扩展名)")
reviewScope: Mapped[str] = mapped_column("review_scope", String(32), default="standard", comment="评查范围: standard=个人评查 cross_review=交叉评查")
@classmethod
async def create_new(cls, session: AsyncSession, **fields) -> "LeauditDocument":