fix: reject idempotency key payload conflicts

This commit is contained in:
ik
2026-09-11 07:44:07 +07:00
parent 42bdec6c2f
commit 5b2db1cf48
4 changed files with 11 additions and 1 deletions
+1
View File
@@ -138,6 +138,7 @@ class SubmissionAttempt(Base):
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)
payload_hash: Mapped[str | None] = mapped_column(String(64), nullable=True)
created_at: Mapped[datetime] = mapped_column(DateTime(timezone=True), index=True)
catch_report: Mapped[CatchReport | None] = relationship()