refactor(serving): replace old models with location_profiles

Delete city_market_profile.sql and location_opportunity_profile.sql.
Update downstream models (planner_defaults, pseo_city_costs_de,
pseo_city_pricing) to read from location_profiles instead.

Subtask 2/5: delete old models + update downstream SQL.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-03-06 11:39:52 +01:00
parent cda94c9ee4
commit 81b556b205
5 changed files with 17 additions and 220 deletions

View File

@@ -76,11 +76,12 @@ city_profiles AS (
city_slug,
country_code,
city_name,
padel_venue_count,
city_padel_venue_count AS padel_venue_count,
population,
market_score,
venues_per_100k
FROM serving.city_market_profile
city_venues_per_100k AS venues_per_100k
FROM serving.location_profiles
WHERE city_slug IS NOT NULL
)
SELECT
cp.city_slug,