Add bitcoin_transfer_method field to Exchange model with default value

This commit is contained in:
counterweight 2025-12-23 14:34:22 +01:00
parent 0669f951bf
commit e1c7c5209f
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 18 additions and 1 deletions

View file

@ -346,6 +346,11 @@ class Exchange(Base):
direction: Mapped[TradeDirection] = mapped_column(
Enum(TradeDirection), nullable=False
)
bitcoin_transfer_method: Mapped[BitcoinTransferMethod] = mapped_column(
Enum(BitcoinTransferMethod),
nullable=False,
default=BitcoinTransferMethod.ONCHAIN,
)
eur_amount: Mapped[int] = mapped_column(Integer, nullable=False) # EUR cents
sats_amount: Mapped[int] = mapped_column(Integer, nullable=False) # Satoshis