Add Forecast model to ORM layer
- the model handles the caching of demand forecasting results - include the database migration script
This commit is contained in:
parent
54ff377579
commit
e8c97dd7da
5 changed files with 311 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ class Pixel(meta.Base):
|
|||
# Relationships
|
||||
grid = orm.relationship('Grid', back_populates='pixels')
|
||||
addresses = orm.relationship('AddressPixelAssociation', back_populates='pixel')
|
||||
forecasts = orm.relationship('Forecast', back_populates='pixel')
|
||||
|
||||
def __repr__(self) -> str:
|
||||
"""Non-literal text representation."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue