diff --git a/src/app/db/migrations/0163_cultured_madripoor.sql b/src/app/db/migrations/0163_cultured_madripoor.sql new file mode 100644 index 00000000..7e5a3397 --- /dev/null +++ b/src/app/db/migrations/0163_cultured_madripoor.sql @@ -0,0 +1 @@ +ALTER TABLE "hubspot_deal_data" ADD COLUMN "damp_mould_and_repairs_comments" text; \ No newline at end of file diff --git a/src/app/db/migrations/0163_fat_mentallo.sql b/src/app/db/migrations/0163_fat_mentallo.sql deleted file mode 100644 index 3031759f..00000000 --- a/src/app/db/migrations/0163_fat_mentallo.sql +++ /dev/null @@ -1,11 +0,0 @@ -CREATE TABLE "portfolio_organisation" ( - "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, - "portfolio_id" bigint NOT NULL, - "organisation_id" uuid NOT NULL, - "created_at" timestamp (6) with time zone DEFAULT now() NOT NULL, - "updated_at" timestamp (6) with time zone DEFAULT now() NOT NULL, - CONSTRAINT "portfolio_organisation_portfolio_id_unique" UNIQUE("portfolio_id") -); ---> statement-breakpoint -ALTER TABLE "portfolio_organisation" ADD CONSTRAINT "portfolio_organisation_portfolio_id_portfolio_id_fk" FOREIGN KEY ("portfolio_id") REFERENCES "public"."portfolio"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint -ALTER TABLE "portfolio_organisation" ADD CONSTRAINT "portfolio_organisation_organisation_id_organisation_id_fk" FOREIGN KEY ("organisation_id") REFERENCES "public"."organisation"("id") ON DELETE cascade ON UPDATE no action; \ No newline at end of file diff --git a/src/app/db/migrations/meta/0163_snapshot.json b/src/app/db/migrations/meta/0163_snapshot.json index 33c2c689..e54a5347 100644 --- a/src/app/db/migrations/meta/0163_snapshot.json +++ b/src/app/db/migrations/meta/0163_snapshot.json @@ -1,5 +1,5 @@ { - "id": "57226b46-c2f5-478d-83ea-53b233df9925", + "id": "4d768d67-dc33-438a-b9a1-8fdb75008554", "prevId": "848b8a62-58f6-4c42-841a-3f9d2aff5b58", "version": "7", "dialect": "postgresql", @@ -48,9 +48,7 @@ "postcode_search_postcode_unique": { "name": "postcode_search_postcode_unique", "nullsNotDistinct": false, - "columns": [ - "postcode" - ] + "columns": ["postcode"] } }, "policies": {}, @@ -123,12 +121,8 @@ "name": "aspect_condition_element_id_element_id_fk", "tableFrom": "aspect_condition", "tableTo": "element", - "columnsFrom": [ - "element_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["element_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -175,12 +169,8 @@ "name": "element_survey_id_property_condition_survey_id_fk", "tableFrom": "element", "tableTo": "property_condition_survey", - "columnsFrom": [ - "survey_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["survey_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -507,6 +497,12 @@ "primaryKey": false, "notNull": false }, + "damp_mould_and_repairs_comments": { + "name": "damp_mould_and_repairs_comments", + "type": "text", + "primaryKey": false, + "notNull": false + }, "confirmed_survey_date": { "name": "confirmed_survey_date", "type": "timestamp (6) with time zone", @@ -598,12 +594,8 @@ "name": "property_status_tracker_property_id_property_id_fk", "tableFrom": "property_status_tracker", "tableTo": "property", - "columnsFrom": [ - "property_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["property_id"], + "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" }, @@ -611,12 +603,8 @@ "name": "property_status_tracker_portfolio_id_portfolio_id_fk", "tableFrom": "property_status_tracker", "tableTo": "portfolio", - "columnsFrom": [ - "portfolio_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["portfolio_id"], + "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" } @@ -1391,12 +1379,8 @@ "name": "energy_assessment_documents_energy_assessment_id_energy_assessments_id_fk", "tableFrom": "energy_assessment_documents", "tableTo": "energy_assessments", - "columnsFrom": [ - "energy_assessment_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["energy_assessment_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" }, @@ -1404,12 +1388,8 @@ "name": "energy_assessment_documents_scenario_id_energy_assessment_scenarios_id_fk", "tableFrom": "energy_assessment_documents", "tableTo": "energy_assessment_scenarios", - "columnsFrom": [ - "scenario_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["scenario_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -1449,12 +1429,8 @@ "name": "energy_assessment_scenarios_energy_assessment_id_energy_assessments_id_fk", "tableFrom": "energy_assessment_scenarios", "tableTo": "energy_assessments", - "columnsFrom": [ - "energy_assessment_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["energy_assessment_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -1579,12 +1555,8 @@ "name": "files_from_surveyor_portfolio_id_portfolio_id_fk", "tableFrom": "files_from_surveyor", "tableTo": "portfolio", - "columnsFrom": [ - "portfolio_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["portfolio_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" }, @@ -1592,12 +1564,8 @@ "name": "files_from_surveyor_property_id_property_id_fk", "tableFrom": "files_from_surveyor", "tableTo": "property", - "columnsFrom": [ - "property_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["property_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -1675,12 +1643,8 @@ "name": "funding_package_plan_id_plan_id_fk", "tableFrom": "funding_package", "tableTo": "plan", - "columnsFrom": [ - "plan_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["plan_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -1745,12 +1709,8 @@ "name": "funding_package_measures_funding_package_id_funding_package_id_fk", "tableFrom": "funding_package_measures", "tableTo": "funding_package", - "columnsFrom": [ - "funding_package_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["funding_package_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" }, @@ -1758,12 +1718,8 @@ "name": "funding_package_measures_material_id_material_id_fk", "tableFrom": "funding_package_measures", "tableTo": "material", - "columnsFrom": [ - "material_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["material_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -1899,12 +1855,8 @@ "name": "inspections_property_id_property_id_fk", "tableFrom": "inspections", "tableTo": "property", - "columnsFrom": [ - "property_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["property_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -2154,87 +2106,6 @@ "checkConstraints": {}, "isRLSEnabled": false }, - "public.portfolio_organisation": { - "name": "portfolio_organisation", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "uuid", - "primaryKey": true, - "notNull": true, - "default": "gen_random_uuid()" - }, - "portfolio_id": { - "name": "portfolio_id", - "type": "bigint", - "primaryKey": false, - "notNull": true - }, - "organisation_id": { - "name": "organisation_id", - "type": "uuid", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp (6) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp (6) with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": { - "portfolio_organisation_portfolio_id_portfolio_id_fk": { - "name": "portfolio_organisation_portfolio_id_portfolio_id_fk", - "tableFrom": "portfolio_organisation", - "tableTo": "portfolio", - "columnsFrom": [ - "portfolio_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - }, - "portfolio_organisation_organisation_id_organisation_id_fk": { - "name": "portfolio_organisation_organisation_id_organisation_id_fk", - "tableFrom": "portfolio_organisation", - "tableTo": "organisation", - "columnsFrom": [ - "organisation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": { - "portfolio_organisation_portfolio_id_unique": { - "name": "portfolio_organisation_portfolio_id_unique", - "nullsNotDistinct": false, - "columns": [ - "portfolio_id" - ] - } - }, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, "public.portfolio": { "name": "portfolio", "schema": "", @@ -2482,12 +2353,8 @@ "name": "portfolioUsers_user_id_user_id_fk", "tableFrom": "portfolioUsers", "tableTo": "user", - "columnsFrom": [ - "user_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["user_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" }, @@ -2495,12 +2362,8 @@ "name": "portfolioUsers_portfolio_id_portfolio_id_fk", "tableFrom": "portfolioUsers", "tableTo": "portfolio", - "columnsFrom": [ - "portfolio_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["portfolio_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -2583,12 +2446,8 @@ "name": "non_intrusive_survey_notes_survey_id_non_intrusive_survey_id_fk", "tableFrom": "non_intrusive_survey_notes", "tableTo": "non_intrusive_survey", - "columnsFrom": [ - "survey_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["survey_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -2808,12 +2667,8 @@ "name": "property_portfolio_id_portfolio_id_fk", "tableFrom": "property", "tableTo": "portfolio", - "columnsFrom": [ - "portfolio_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["portfolio_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -3240,12 +3095,8 @@ "name": "property_details_epc_property_id_property_id_fk", "tableFrom": "property_details_epc", "tableTo": "property", - "columnsFrom": [ - "property_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["property_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" }, @@ -3253,12 +3104,8 @@ "name": "property_details_epc_portfolio_id_portfolio_id_fk", "tableFrom": "property_details_epc", "tableTo": "portfolio", - "columnsFrom": [ - "portfolio_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["portfolio_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -3456,12 +3303,8 @@ "name": "property_targets_property_id_property_id_fk", "tableFrom": "property_targets", "tableTo": "property", - "columnsFrom": [ - "property_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["property_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" }, @@ -3469,12 +3312,8 @@ "name": "property_targets_portfolio_id_portfolio_id_fk", "tableFrom": "property_targets", "tableTo": "portfolio", - "columnsFrom": [ - "portfolio_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["portfolio_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -3843,12 +3682,8 @@ "name": "plan_portfolio_id_portfolio_id_fk", "tableFrom": "plan", "tableTo": "portfolio", - "columnsFrom": [ - "portfolio_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["portfolio_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" }, @@ -3856,12 +3691,8 @@ "name": "plan_property_id_property_id_fk", "tableFrom": "plan", "tableTo": "property", - "columnsFrom": [ - "property_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["property_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" }, @@ -3869,12 +3700,8 @@ "name": "plan_scenario_id_scenario_id_fk", "tableFrom": "plan", "tableTo": "scenario", - "columnsFrom": [ - "scenario_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["scenario_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -3951,12 +3778,8 @@ "name": "plan_recommendations_plan_id_plan_id_fk", "tableFrom": "plan_recommendations", "tableTo": "plan", - "columnsFrom": [ - "plan_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["plan_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" }, @@ -3964,12 +3787,8 @@ "name": "plan_recommendations_recommendation_id_recommendation_id_fk", "tableFrom": "plan_recommendations", "tableTo": "recommendation", - "columnsFrom": [ - "recommendation_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["recommendation_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -4179,12 +3998,8 @@ "name": "recommendation_property_id_property_id_fk", "tableFrom": "recommendation", "tableTo": "property", - "columnsFrom": [ - "property_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["property_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -4272,12 +4087,8 @@ "name": "recommendation_materials_recommendation_id_recommendation_id_fk", "tableFrom": "recommendation_materials", "tableTo": "recommendation", - "columnsFrom": [ - "recommendation_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["recommendation_id"], + "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" }, @@ -4285,12 +4096,8 @@ "name": "recommendation_materials_material_id_material_id_fk", "tableFrom": "recommendation_materials", "tableTo": "material", - "columnsFrom": [ - "material_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["material_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -4556,12 +4363,8 @@ "name": "scenario_portfolio_id_portfolio_id_fk", "tableFrom": "scenario", "tableTo": "portfolio", - "columnsFrom": [ - "portfolio_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["portfolio_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -4719,12 +4522,8 @@ "name": "solar_scenario_solar_id_solar_id_fk", "tableFrom": "solar_scenario", "tableTo": "solar", - "columnsFrom": [ - "solar_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["solar_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -4803,12 +4602,8 @@ "name": "sub_task_task_id_tasks_id_fk", "tableFrom": "sub_task", "tableTo": "tasks", - "columnsFrom": [ - "task_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["task_id"], + "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" } @@ -4934,12 +4729,8 @@ "name": "team_org_id_organisation_id_fk", "tableFrom": "team", "tableTo": "organisation", - "columnsFrom": [ - "org_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["org_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -4994,12 +4785,8 @@ "name": "team_members_user_id_user_id_fk", "tableFrom": "team_members", "tableTo": "user", - "columnsFrom": [ - "user_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["user_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" }, @@ -5007,12 +4794,8 @@ "name": "team_members_team_id_team_id_fk", "tableFrom": "team_members", "tableTo": "team", - "columnsFrom": [ - "team_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["team_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -5074,12 +4857,8 @@ "name": "team_portfolio_permissions_team_id_team_id_fk", "tableFrom": "team_portfolio_permissions", "tableTo": "team", - "columnsFrom": [ - "team_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["team_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" }, @@ -5087,12 +4866,8 @@ "name": "team_portfolio_permissions_portfolio_id_portfolio_id_fk", "tableFrom": "team_portfolio_permissions", "tableTo": "portfolio", - "columnsFrom": [ - "portfolio_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["portfolio_id"], + "columnsTo": ["id"], "onDelete": "no action", "onUpdate": "no action" } @@ -5249,12 +5024,8 @@ "name": "account_userId_user_id_fk", "tableFrom": "account", "tableTo": "user", - "columnsFrom": [ - "userId" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["userId"], + "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" } @@ -5262,10 +5033,7 @@ "compositePrimaryKeys": { "account_provider_providerAccountId_pk": { "name": "account_provider_providerAccountId_pk", - "columns": [ - "provider", - "providerAccountId" - ] + "columns": ["provider", "providerAccountId"] } }, "uniqueConstraints": {}, @@ -5302,12 +5070,8 @@ "name": "session_userId_user_id_fk", "tableFrom": "session", "tableTo": "user", - "columnsFrom": [ - "userId" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["userId"], + "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" } @@ -5399,9 +5163,7 @@ "user_email_unique": { "name": "user_email_unique", "nullsNotDistinct": false, - "columns": [ - "email" - ] + "columns": ["email"] } }, "policies": {}, @@ -5516,12 +5278,8 @@ "name": "user_profiles_user_id_user_id_fk", "tableFrom": "user_profiles", "tableTo": "user", - "columnsFrom": [ - "user_id" - ], - "columnsTo": [ - "id" - ], + "columnsFrom": ["user_id"], + "columnsTo": ["id"], "onDelete": "cascade", "onUpdate": "no action" } @@ -5560,10 +5318,7 @@ "compositePrimaryKeys": { "verificationToken_identifier_token_pk": { "name": "verificationToken_identifier_token_pk", - "columns": [ - "identifier", - "token" - ] + "columns": ["identifier", "token"] } }, "uniqueConstraints": {}, @@ -5857,12 +5612,7 @@ "public.scheme": { "name": "scheme", "schema": "public", - "values": [ - "eco4", - "gbis", - "whlg", - "none" - ] + "values": ["eco4", "gbis", "whlg", "none"] }, "public.inspection_archetype_2": { "name": "inspection_archetype_2", @@ -5879,22 +5629,12 @@ "public.inspection_archetype": { "name": "inspection_archetype", "schema": "public", - "values": [ - "Bungalow", - "Flat", - "Maisonette", - "House", - "non-domestic" - ] + "values": ["Bungalow", "Flat", "Maisonette", "House", "non-domestic"] }, "public.inspection_borescoped": { "name": "inspection_borescoped", "schema": "public", - "values": [ - "yes", - "no", - "refused" - ] + "values": ["yes", "no", "refused"] }, "public.inspections_access_issues": { "name": "inspections_access_issues", @@ -5976,11 +5716,7 @@ "public.inspections_tile_hung": { "name": "inspections_tile_hung", "schema": "public", - "values": [ - "yes", - "no", - "first floor flats are tile hung" - ] + "values": ["yes", "no", "first floor flats are tile hung"] }, "public.inspections_wall_construction": { "name": "inspections_wall_construction", @@ -6016,19 +5752,12 @@ "public.cost_unit": { "name": "cost_unit", "schema": "public", - "values": [ - "gbp_sq_meter", - "gbp_per_unit", - "gbp_per_m2", - "gbp_per_m" - ] + "values": ["gbp_sq_meter", "gbp_per_unit", "gbp_per_m2", "gbp_per_m"] }, "public.depth_unit": { "name": "depth_unit", "schema": "public", - "values": [ - "mm" - ] + "values": ["mm"] }, "public.type": { "name": "type", @@ -6081,26 +5810,17 @@ "public.r_value_unit": { "name": "r_value_unit", "schema": "public", - "values": [ - "square_meter_kelvin_per_watt" - ] + "values": ["square_meter_kelvin_per_watt"] }, "public.size_unit": { "name": "size_unit", "schema": "public", - "values": [ - "kWp", - "kW", - "watt", - "storey" - ] + "values": ["kWp", "kW", "watt", "storey"] }, "public.thermal_conductivity_unit": { "name": "thermal_conductivity_unit", "schema": "public", - "values": [ - "watt_per_meter_kelvin" - ] + "values": ["watt_per_meter_kelvin"] }, "public.goal": { "name": "goal", @@ -6116,12 +5836,7 @@ "public.role": { "name": "role", "schema": "public", - "values": [ - "creator", - "admin", - "read", - "write" - ] + "values": ["creator", "admin", "read", "write"] }, "public.status": { "name": "status", @@ -6142,32 +5857,17 @@ "public.epc": { "name": "epc", "schema": "public", - "values": [ - "A", - "B", - "C", - "D", - "E", - "F", - "G" - ] + "values": ["A", "B", "C", "D", "E", "F", "G"] }, "public.creation_status": { "name": "creation_status", "schema": "public", - "values": [ - "LOADING", - "READY", - "ERROR" - ] + "values": ["LOADING", "READY", "ERROR"] }, "public.housing_type": { "name": "housing_type", "schema": "public", - "values": [ - "Private", - "Social" - ] + "values": ["Private", "Social"] }, "public.measure_type": { "name": "measure_type", @@ -6213,35 +5913,22 @@ "public.unit_quantity": { "name": "unit_quantity", "schema": "public", - "values": [ - "m2", - "part", - "kwp" - ] + "values": ["m2", "part", "kwp"] }, "public.scenario_type": { "name": "scenario_type", "schema": "public", - "values": [ - "unit", - "building" - ] + "values": ["unit", "building"] }, "public.source": { "name": "source", "schema": "public", - "values": [ - "portfolio_id" - ] + "values": ["portfolio_id"] }, "public.file_source": { "name": "file_source", "schema": "public", - "values": [ - "pas hub", - "sharepoint", - "hubspot" - ] + "values": ["pas hub", "sharepoint", "hubspot"] }, "public.file_type": { "name": "file_type", @@ -6308,4 +5995,4 @@ "schemas": {}, "tables": {} } -} \ No newline at end of file +} diff --git a/src/app/db/migrations/meta/_journal.json b/src/app/db/migrations/meta/_journal.json index 4b628e3e..03f3aad0 100644 --- a/src/app/db/migrations/meta/_journal.json +++ b/src/app/db/migrations/meta/_journal.json @@ -1146,9 +1146,9 @@ { "idx": 163, "version": "7", - "when": 1775309608582, - "tag": "0163_fat_mentallo", + "when": 1775123235194, + "tag": "0163_cultured_madripoor", "breakpoints": true } ] -} \ No newline at end of file +} diff --git a/src/app/db/schema/crm/hubspot_deal_table.ts b/src/app/db/schema/crm/hubspot_deal_table.ts index f28e7f94..4d964760 100644 --- a/src/app/db/schema/crm/hubspot_deal_table.ts +++ b/src/app/db/schema/crm/hubspot_deal_table.ts @@ -44,6 +44,7 @@ export const hubspotDealData = pgTable("hubspot_deal_data", { lodgementDate: timestamp("lodgement_date", { precision: 6, withTimezone: true }), expectedCommencementDate: timestamp("expected_commencement_date", { precision: 6, withTimezone: true }), surveyor: text("surveyor"), + damnpMouldAndRepairComments: text("damp_mould_and_repairs_comments"), confirmedSurveyDate: timestamp("confirmed_survey_date", { precision: 6, withTimezone: true }), confirmedSurveyTime: text("confirmed_survey_time"), SurveyedDate: timestamp("surveyed_date", { precision: 6, withTimezone: true }),