Add bitcoin_transfer_method field to Exchange model with default value
This commit is contained in:
parent
0669f951bf
commit
e1c7c5209f
2 changed files with 18 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue