mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Move the scenario and installed_measure tables into
infrastructure/postgres/modelling/ as full-parity SQLModel definitions
(ScenarioModel, InstalledMeasureModel + MeasureType), completing the cluster
consolidation. backend/app/db/models/recommendations.py is now a pure
re-export shim.
ScenarioModel.goal is the PortfolioGoal enum (legacy planning branches on it),
sourced from domain/modelling/portfolio_goal.py; the repo's to_domain maps it to
its value string, so domain Scenario.goal is now the value ("Increasing EPC")
consistent with the orchestrator's check — fixing the latent name-vs-value
inconsistency the old str column masked (the scenario repo test stored the enum
*name*). Parity columns are nullable (mirror convention; live NOT-NULLs owned by
Drizzle).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| tests | ||
| addresses.py | ||
| bulk_address_uploads.py | ||
| condition.py | ||
| energy_assessments.py | ||
| epc.py | ||
| epc_property.py | ||
| funding.py | ||
| hubspot_deal_data.py | ||
| hubspot_project_data.py | ||
| hubspot_user.py | ||
| inspections.py | ||
| magic_plan.py | ||
| materials.py | ||
| non_intrusive_surveys.py | ||
| organisation.py | ||
| portfolio.py | ||
| postcode_search.py | ||
| recommendations.py | ||
| solar.py | ||
| tasks.py | ||
| uploaded_file.py | ||
| users.py | ||
| whlg.py | ||