chore: add repr output for wallet_history

This commit is contained in:
Matthias
2026-01-05 09:48:32 +01:00
parent 0f9cab4231
commit c884fd20ea
+6
View File
@@ -25,3 +25,9 @@ class WalletHistory(ModelBase):
# Ensure one record per currency per day
UniqueConstraint("timestamp", "currency", name="unique_wallet_daily"),
)
def __repr__(self) -> str:
return (
f"WalletHistory(timestamp={self.timestamp}, currency={self.currency}, "
f"price={self.price}, balance={self.balance})"
)