diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2025-04-27 22:41:14 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2025-04-27 22:41:14 -0600 |
commit | f32142947b853076889801913d47b8c2c0f4f456 (patch) | |
tree | 20981c0c2b79c2ba9cc58eece69591cfbe5b21ff /server/models/bid.py | |
parent | ba700c31fceb4554ccbb3181f0e5747fcf5c3259 (diff) |
format using black
Diffstat (limited to 'server/models/bid.py')
-rw-r--r-- | server/models/bid.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/models/bid.py b/server/models/bid.py index e717011..121020d 100644 --- a/server/models/bid.py +++ b/server/models/bid.py @@ -2,14 +2,15 @@ from sqlalchemy import Column, Integer, Float, String, DateTime, ForeignKey from sqlalchemy.orm import relationship from db import Base + class Bid(Base): __tablename__ = "bids" id = Column(Integer, primary_key=True, index=True) timestamp = Column(DateTime, index=True, nullable=False) # Bid target time quantity = Column(Float, nullable=False) # MWh - price = Column(Float, nullable=False) # $/MWh - market = Column(String, nullable=False) # Market name: ISONE / MISO / NYISO for now + price = Column(Float, nullable=False) # $/MWh + market = Column(String, nullable=False) # Market name: ISONE / MISO / NYISO for now status = Column(String, default="Submitted") # Submitted / Success / Fail pnl = Column(Float, nullable=True) # Profit/loss value, nullable initially |