assessment-model/src/app/db/schema
Khalim Conn-Kowlessar e4960db2c1 feat(epc): persist 7 calculator-read fields dropped on save
A recursive persistence-fidelity guard surfaced 7 fields the SAP calculator
reads but the epc_property projection had no column for, so they were silently
lost on save->reload (same bug class as the PV arrays / floor flags). All
additive, nullable except the PV-diverter bool; no backfill (defaults match
the domain defaults).

- epc_main_heating_detail: community_heating_boiler_fuel_type,
  community_heating_chp_fraction (community-heated CHP).
- epc_building_part: alt_wall_1_is_sheltered, alt_wall_2_is_sheltered, and
  wall_insulation_thermal_conductivity (jsonb to preserve Union[int,str]).
- epc_property: energy_pv_diverter_present (NOT NULL DEFAULT false),
  heating_cylinder_volume_measured_l, ventilation_air_permeability_ap50_m3_h_m2.

Includes generated migration 0246_minor_lady_bullseye.sql + snapshot/journal.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 18:34:45 +00:00
..
condition add type inference 2026-01-27 17:28:05 +00:00
crm delete col 2026-06-15 08:59:24 +00:00
magic_plan new tables for magicplan ventilation. move opening type from window table to window ventilation table 2026-06-08 09:25:16 +00:00
tasks add property_id task source 2026-06-22 13:02:36 +00:00
addresses.ts add last updated script to db 2026-03-04 15:23:30 +00:00
approvals.ts migrated db and building out upload doc ui and approval log 2026-04-17 00:01:08 +00:00
bulk_address_uploads.ts property override 2026-06-08 09:38:48 +00:00
energy_assessments.ts styling energy assessment page 2024-09-09 16:42:21 +01:00
epc.ts making uprn unique on epc store 2025-12-21 12:55:24 +00:00
files_from_surveyor.ts doc storage 2025-11-12 21:28:11 +00:00
funding.ts first implementation of funding into the app 2025-08-21 21:35:08 +00:00
inspections.ts added filtering + inspections to front end 2025-10-28 11:22:05 +00:00
landlord_overrides.ts db changes 2026-06-19 15:04:43 +00:00
materials.ts adding boiler upgrade enum 2025-11-29 07:59:37 +00:00
organisation.ts renaming organisation and team columns 2026-03-23 12:26:31 +00:00
pibi_requests.ts add schema files and migration 0198 for magic_plan_uid 2026-05-07 18:13:17 +00:00
portfolio.ts initial implementation for portfolio invitations. A user can send an invitation to a user and they will receive an invitation email 2026-05-27 16:18:21 +00:00
portfolio_organisation.ts add schema files and migration 0198 for magic_plan_uid 2026-05-07 18:13:17 +00:00
property.ts feat(epc): persist 7 calculator-read fields dropped on save 2026-06-26 18:34:45 +00:00
property_overrides.ts db changes 2026-06-19 15:04:43 +00:00
recommendations.ts migration for materials columns on recommendation table 2026-06-05 10:03:34 +00:00
relations.ts added filtering + inspections to front end 2025-10-28 11:22:05 +00:00
removal_requests.ts adding batch push up when removal requests are made 2026-04-20 12:21:00 +00:00
solar.ts addded changes to let build work 2025-08-21 11:30:51 +00:00
survey_requests.ts add schema files and migration 0198 for magic_plan_uid 2026-05-07 18:13:17 +00:00
team.ts renaming organisation and team columns 2026-03-23 12:26:31 +00:00
uploaded_files.ts add file type and file source 2026-06-09 13:56:52 +00:00
user_defined_deal_measures.ts add user_defined_deal_measures table migration and schema 2026-05-05 18:56:09 +00:00
users.ts Add 6-digit code sign-in as primary, magic link as fast-path fallback 2026-05-27 14:16:47 +00:00
whlg.ts added whlg 2025-11-14 11:28:28 +00:00