feat: migrate cross review to v3 leaudit flow

This commit is contained in:
wren
2026-05-07 18:18:59 +08:00
parent 35e0c45c42
commit 1c84209f38
23 changed files with 5172 additions and 39 deletions
@@ -0,0 +1,19 @@
"""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")