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:
Alexander Hess 2021-01-07 12:45:32 +01:00
commit e8c97dd7da
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
5 changed files with 311 additions and 0 deletions

View file

@ -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."""