diff --git a/backend/app/db/models/hubspot_deal_data.py b/backend/app/db/models/hubspot_deal_data.py index d2c8c8fe9..966966a4c 100644 --- a/backend/app/db/models/hubspot_deal_data.py +++ b/backend/app/db/models/hubspot_deal_data.py @@ -26,6 +26,10 @@ class HubspotDealData(SQLModel, table=True): number_of_attempts: Optional[str] = Field(default=None) outcome_notes: Optional[str] = Field(default=None) booking_status: Optional[str] = Field(default=None) + # The HubSpot deal property behind the "Extra booking information" + # label; the property ID is fixed externally and is what the scrape, + # the differ and the Abri void flag all key on. + notes_for_surveyor: Optional[str] = Field(default=None) major_condition_issue_description: Optional[str] = Field(default=None) major_condition_issue_photos: Optional[str] = Field(default=None) diff --git a/etl/hubspot/hubspotDataTodB.py b/etl/hubspot/hubspotDataTodB.py index d80019b74..cb3a2297e 100644 --- a/etl/hubspot/hubspotDataTodB.py +++ b/etl/hubspot/hubspotDataTodB.py @@ -214,6 +214,7 @@ class HubspotDataToDb: "number_of_attempts": deal_data.get("number_of_attempts"), "outcome_notes": deal_data.get("outcome_notes"), "booking_status": deal_data.get("booking_status"), + "notes_for_surveyor": deal_data.get("notes_for_surveyor"), "project_code": deal_data.get("project_code"), "company_id": company, "major_condition_issue_description": deal_data.get( @@ -340,6 +341,7 @@ class HubspotDataToDb: number_of_attempts=deal_data.get("number_of_attempts"), outcome_notes=deal_data.get("outcome_notes"), booking_status=deal_data.get("booking_status"), + notes_for_surveyor=deal_data.get("notes_for_surveyor"), project_code=deal_data.get("project_code"), company_id=company, major_condition_issue_description=deal_data.get(