Create docs/DATABASE_SCHEMA.md #79

Closed
opened 2026-01-17 21:53:43 +00:00 by lmiranda · 0 comments
Owner

Overview

Create comprehensive database schema documentation with Mermaid ERD diagrams showing all tables, relationships, and schema organization.

Acceptance Criteria

  • Create docs/DATABASE_SCHEMA.md
  • Include Mermaid ERD diagram with all tables from toronto/models/
  • Show primary keys (PK) and foreign keys (FK) for each table
  • Document relationships between tables
  • Organize by schema layers:
    • Raw schema (source data)
    • Staging schema (cleaned/typed)
    • Marts schema (analytical tables)
  • Add table descriptions and column documentation
  • Link from README.md Architecture section

Technical Notes

Tables to document (from toronto/models/):

  • dim_neighbourhood
  • dim_cmhc_zone
  • dim_time
  • dim_policy_event
  • fact_rentals
  • Any staging/intermediate tables

Labels

  • Type/Documentation
  • Priority/Medium
  • Complexity/Medium
  • Component/Docs
  • Component/Database

Phase: 1 - Architecture Documentation

## Overview Create comprehensive database schema documentation with Mermaid ERD diagrams showing all tables, relationships, and schema organization. ## Acceptance Criteria - [ ] Create `docs/DATABASE_SCHEMA.md` - [ ] Include Mermaid ERD diagram with all tables from `toronto/models/` - [ ] Show primary keys (PK) and foreign keys (FK) for each table - [ ] Document relationships between tables - [ ] Organize by schema layers: - Raw schema (source data) - Staging schema (cleaned/typed) - Marts schema (analytical tables) - [ ] Add table descriptions and column documentation - [ ] Link from README.md Architecture section ## Technical Notes Tables to document (from toronto/models/): - dim_neighbourhood - dim_cmhc_zone - dim_time - dim_policy_event - fact_rentals - Any staging/intermediate tables ## Labels - Type/Documentation - Priority/Medium - Complexity/Medium - Component/Docs - Component/Database ## Phase: 1 - Architecture Documentation
Sign in to join this conversation.