Sprint 3: Schemas, models, and parser structure #13

Closed
opened 2026-01-11 19:51:43 +00:00 by lmiranda · 0 comments
Owner

Sprint 3 Deliverables

Pydantic Schemas

  • portfolio_app/toronto/schemas/trreb.py - TRREB record schema
  • portfolio_app/toronto/schemas/cmhc.py - CMHC rental record schema
  • portfolio_app/toronto/schemas/dimensions.py - Dimension schemas

SQLAlchemy Models (Star Schema)

  • portfolio_app/toronto/models/base.py - Base model setup
  • portfolio_app/toronto/models/facts.py - fact_purchases, fact_rentals
  • portfolio_app/toronto/models/dimensions.py - dim_time, dim_trreb_district, dim_cmhc_zone, dim_neighbourhood, dim_policy_event

Parser Structure

  • portfolio_app/toronto/parsers/trreb.py - TRREB PDF parser (structure)
  • portfolio_app/toronto/parsers/cmhc.py - CMHC CSV processor

Database Setup

  • Alembic or raw SQL migrations
  • PostGIS geometry columns for districts/zones

Acceptance Criteria

  • All schemas validate sample data
  • Models create tables in PostgreSQL
  • Parser structure ready for testing with real PDFs
## Sprint 3 Deliverables ### Pydantic Schemas - [x] `portfolio_app/toronto/schemas/trreb.py` - TRREB record schema - [x] `portfolio_app/toronto/schemas/cmhc.py` - CMHC rental record schema - [x] `portfolio_app/toronto/schemas/dimensions.py` - Dimension schemas ### SQLAlchemy Models (Star Schema) - [x] `portfolio_app/toronto/models/base.py` - Base model setup - [x] `portfolio_app/toronto/models/facts.py` - fact_purchases, fact_rentals - [x] `portfolio_app/toronto/models/dimensions.py` - dim_time, dim_trreb_district, dim_cmhc_zone, dim_neighbourhood, dim_policy_event ### Parser Structure - [x] `portfolio_app/toronto/parsers/trreb.py` - TRREB PDF parser (structure) - [x] `portfolio_app/toronto/parsers/cmhc.py` - CMHC CSV processor ### Database Setup - [x] Alembic or raw SQL migrations - [x] PostGIS geometry columns for districts/zones ### Acceptance Criteria - All schemas validate sample data - Models create tables in PostgreSQL - Parser structure ready for testing with real PDFs
lmiranda added this to the Launch: Host, Bio and Toronto House Market Analysis project 2026-01-12 15:00:47 +00:00
lmiranda self-assigned this 2026-01-12 15:00:54 +00:00
lmiranda moved this to Done in Launch: Host, Bio and Toronto House Market Analysis on 2026-01-14 19:34:00 +00:00
lmiranda removed their assignment 2026-01-14 19:34:46 +00:00
Sign in to join this conversation.