"""LeAudit 交叉评查投票模型。""" from __future__ import annotations from sqlalchemy import BigInteger, String from sqlalchemy.orm import Mapped, mapped_column from fastapi_common.fastapi_common_web.models import BaseModel class LeauditCrossReviewVote(BaseModel): """交叉评查投票表。""" __tablename__ = "leaudit_cross_review_votes" Id: Mapped[int] = mapped_column("id", BigInteger, primary_key=True, autoincrement=True) proposalId: Mapped[int] = mapped_column("proposal_id", BigInteger, comment="提案ID") voterId: Mapped[int] = mapped_column("voter_id", BigInteger, comment="投票用户ID") voteType: Mapped[str] = mapped_column("vote_type", String(16), comment="agree/disagree/cancel")