Verified Commit 1ba7473e authored by Jakob Moser's avatar Jakob Moser
Browse files

Add MessageReceipt class

Which contains only the uuid of the message, nothing else (for data minimization reasons).

We use it to not doubly book something to an account.
parent 3259814c
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
from __future__ import annotations

from sqlalchemy.orm import Mapped

from poolpay.model.Base import Base


class MessageReceipt(Base):
    """
    A receipt (think “Quittung”, not “Empfang”) of a message transmitted via the wire.
    """

    __tablename__ = "message_receipt"

    successful: Mapped[bool]