Skip to content

Commit

Permalink
nullable field
Browse files Browse the repository at this point in the history
  • Loading branch information
r0fls committed Nov 27, 2024
1 parent d4a1b9c commit 0ec775e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ class Trade(Base):
__tablename__ = 'trades'

id = Column(Integer, primary_key=True)
broker_id = Column(String, nullable=False)
# TODO: make non-nullable
broker_id = Column(String, nullable=True)
symbol = Column(String, nullable=False)
quantity = Column(Integer, nullable=False)
price = Column(Float, nullable=False)
Expand Down

0 comments on commit 0ec775e

Please sign in to comment.