assessment-model/src/app/db/schema
Jun-te Kim 752ffe1935 feat(db): add property.marked_for_deletion soft-delete flag
Add a NOT NULL DEFAULT false `marked_for_deletion` boolean to the
`property` table. Hard deletes are expensive (cascading child rows,
indexes), so a row is flagged here and a separate cron job performs the
physical delete later; reads can filter on the flag in the interim.

A constant default makes this a metadata-only ALTER on Postgres 11+ (no
table rewrite); existing rows backfill to false.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 12:18:32 +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(db): add property.marked_for_deletion soft-delete flag 2026-06-25 12:18:32 +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