Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions db/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,15 @@ export const propertyClusters = pgTable(
councilTaxAuthorityCode: text("council_tax_authority_code"),
/** Human-readable billing-authority name, for display alongside the estimate. */
councilTaxAuthorityName: text("council_tax_authority_name"),
/**
* User-supplied full address for this building, entered manually when
* the portals only exposed a street ("Brownlow Road, N11"). The user
* reads the listing photos against Google Maps to pin the exact door,
* which lets `enrich-epc` resolve the precise certificate instead of a
* postcode-level estimate. NULL = no override; the scraped address +
* reverse-geocoded postcode are used. See `setClusterAddress`.
*/
userAddress: text("user_address"),
createdAt: timestamp("created_at").defaultNow().notNull(),
updatedAt: timestamp("updated_at")
.$onUpdate(() => new Date())
Expand Down
1 change: 1 addition & 0 deletions drizzle/0014_cuddly_lily_hollister.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "property_clusters" ADD COLUMN "user_address" text;
Loading
Loading