gendesign/tradein-mvp/backend/app/schemas
lekss361 3b8e7d826d feat(tradein): enrich /estimate response for web map, distribution, exposure & trend
Additive + optional fields for upcoming web features:
- analogs[]/actual_deals[] now carry lat/lon (radius comps ~100% covered, deals
  100%) — were projected in SQL but discarded at the AnalogLot step.
- price_trend: monthly ₽/m² series (houses_price_dynamics → house_placement_history
  fallback; 2347 houses covered, houses_price_dynamics empty in prod).
- last_scraped_at (absolute companion to data_freshness_minutes).
All nullable/graceful → zero risk to existing consumers. 237 estimator tests pass.
NOTE: price_trend/last_scraped_at computed on POST only (GET/{id} returns None) —
small follow-up if trend-on-reopen needed.

Refs #647 #667
2026-05-30 10:19:00 +03:00
..
__init__.py feat: add tradein-mvp subproject (Trade-In Estimator под /trade-in) 2026-05-21 00:25:39 +03:00
search.py feat(tradein): Phase 3.2 — /api/v1/search endpoint + Redis cache (#479) 2026-05-23 14:44:22 +00:00
search_response.py feat(tradein): Phase 3.2 — /api/v1/search endpoint + Redis cache (#479) 2026-05-23 14:44:22 +00:00
trade_in.py feat(tradein): enrich /estimate response for web map, distribution, exposure & trend 2026-05-30 10:19:00 +03:00