Model/backend/app/db/models
Khalim Conn-Kowlessar c18968ba3c refactor(modelling): consolidate scenario + installed_measure into the subpackage
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>
2026-06-03 22:52:35 +00:00
..
tests typing and renaming 🟪 2026-05-07 13:26:49 +00:00
addresses.py working on integration test 2026-02-23 12:13:59 +00:00
bulk_address_uploads.py added backend funciton to functions 2026-04-22 14:21:39 +00:00
condition.py working on integration test 2026-02-23 12:13:59 +00:00
energy_assessments.py removed create_type from enum (only created if it doesn't exist) 2026-02-26 18:21:37 +00:00
epc.py working on integration test 2026-02-23 12:13:59 +00:00
epc_property.py feat(epc): EPC persistence round-trip fidelity + JSONB code columns (Slice 1 #1129) 2026-05-30 19:26:18 +00:00
funding.py working on integration test 2026-02-23 12:13:59 +00:00
hubspot_deal_data.py booking status 2026-05-28 12:15:37 +00:00
hubspot_project_data.py hubspot projects data is scraped 2026-05-28 10:54:15 +00:00
hubspot_user.py Adding use model for storage of users 2026-04-30 18:53:15 +00:00
inspections.py working on integration test 2026-02-23 12:13:59 +00:00
magic_plan.py Store uploaded_file_id on magic_plan_plan row 🟥 2026-05-13 10:50:28 +00:00
materials.py working on integration test 2026-02-23 12:13:59 +00:00
non_intrusive_surveys.py working on integration test 2026-02-23 12:13:59 +00:00
organisation.py move HubspotDealData object to dedicated file 2026-04-09 10:46:52 +00:00
portfolio.py refactor(modelling): move PortfolioGoal to domain/modelling/ 2026-06-03 22:44:48 +00:00
postcode_search.py lambda code works locally 2026-03-06 12:51:08 +00:00
recommendations.py refactor(modelling): consolidate scenario + installed_measure into the subpackage 2026-06-03 22:52:35 +00:00
solar.py working on integration test 2026-02-23 12:13:59 +00:00
tasks.py task and sub tasks imrpvoed 2026-05-12 16:24:11 +00:00
uploaded_file.py Coordination Hub fallback stores correct file_source in DB 🟥 2026-05-19 11:07:41 +00:00
users.py working on integration test 2026-02-23 12:13:59 +00:00
whlg.py working on integration test 2026-02-23 12:13:59 +00:00