"""LeAudit 交叉评查任务文档模型。"""

from __future__ import annotations

from sqlalchemy import BigInteger, Integer
from sqlalchemy.orm import Mapped, mapped_column

from fastapi_common.fastapi_common_web.models import BaseModel


class LeauditCrossReviewTaskDocument(BaseModel):
    """交叉评查任务文档挂载表。"""

    __tablename__ = "leaudit_cross_review_task_documents"

    Id: Mapped[int] = mapped_column("id", BigInteger, primary_key=True, autoincrement=True)
    taskId: Mapped[int] = mapped_column("task_id", BigInteger, comment="任务ID")
    documentId: Mapped[int] = mapped_column("document_id", BigInteger, comment="文档ID")
    auditStatus: Mapped[int] = mapped_column("audit_status", Integer, default=0, comment="0=未完成,1=已完成")
