fix: align recovery schema idempotency and record counts

This commit is contained in:
ik
2026-09-11 07:40:58 +07:00
parent 13e04e6c66
commit bea3b9ccbb
3 changed files with 38 additions and 13 deletions
+2
View File
@@ -137,7 +137,9 @@ class SubmissionAttempt(Base):
id: Mapped[uuid.UUID] = mapped_column(primary_key=True, default=uuid.uuid4)
client_hash: Mapped[str] = mapped_column(String(64), index=True)
idempotency_key: Mapped[str | None] = mapped_column(String(128), index=True)
catch_report_id: Mapped[uuid.UUID | None] = mapped_column(ForeignKey("catch_report.id"), nullable=True)
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), index=True)
catch_report: Mapped[CatchReport | None] = relationship()
class DataSource(Base):