Model/backend/app/db/models
Khalim Conn-Kowlessar 0ffda529ec slice 15a: add wall/floor/roof + demand scalar features for retrofit simulation
15 new features wired through schema -> domain -> mapper -> transform:

Main Dwelling fabric (11):
  - wall_insulation_type, wall_insulation_thickness_mm, wall_dry_lined,
    wall_thickness_mm, party_wall_construction
  - roof_insulation_location, roof_insulation_thickness_mm
  - floor_construction, floor_insulation, floor_insulation_thickness_mm,
    floor_heat_loss

Dwelling-level scalars (4):
  - multiple_glazed_proportion, number_baths, number_baths_wwhrs,
    extract_fans_count

Thickness strings like '50mm'/'NI'/'ND' parsed via _parse_thickness_mm; NI
(no insulation) lands as 0mm so the model sees the physical zero rather than
a missing value. Categorical sentinels ('NA'/'NI'/'ND') become None.

Also fixed long-standing typo `multiple_glazed_propertion` -> `_proportion`
in domain dataclass + its lone DB-model usage.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-16 22:08:27 +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 slice 15a: add wall/floor/roof + demand scalar features for retrofit simulation 2026-05-16 22:08:27 +00:00
funding.py working on integration test 2026-02-23 12:13:59 +00:00
hubspot_deal_data.py added additional columns to db 2026-04-30 17:10:00 +01: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 typing and renaming 🟪 2026-05-07 13:26:49 +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 address fields are not optional 2026-04-24 10:22:41 +00:00
postcode_search.py lambda code works locally 2026-03-06 12:51:08 +00:00
recommendations.py define new domain object 2026-04-13 16:18:17 +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 Upload gzip-compressed MagicPlan JSON to S3 🟥 2026-05-08 14:14:42 +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