How rajib-k-das/gtm-revenue-operations-mart works
This repository builds a dbt + DuckDB revenue-operations warehouse from a synthetic Salesforce-style CRM extract. The main workflow generates CSVs, loads raw tables, transforms CRM objects into typed staging and historical opportunity versions, then produces pipeline snapshot and waterfall marts. The README also describes account and rep dimensions and a findings summary. SQL model dependencies and the internals of unsampled models are not shown, so transformation links follow the documented architecture rather than asserting unverified calls.
Main entry points: int_opportunity_versions.sql Opportunity versions · summarize_findings.py Findings summary · load_crm.py CRM loader · staging Typed CRM staging
Components 13
CRM inputs
- CRM generator
generate/generate_crm.py - CRM CSV extract
- CRM loader
ingest/load_crm.py
Warehouse transformations
- Raw CRM tables
ingest/load_crm.py - Typed CRM staging
models/staging - Opportunity versions
models/intermediate/int_opportunity_versions.sql - Snapshot dates
models/intermediate/int_snapshot_dates.sql
Analytics marts
- Pipeline snapshots
models/marts/fct_pipeline_snapshots.sql - Pipeline waterfall
models/marts/fct_pipeline_waterfall.sql - Account dimension
models/marts/dim_account.sql - Rep dimension
models/marts/dim_rep.sql
Findings
- Findings summary
scripts/summarize_findings.py
Other components
- Revenue operations team
Connections 14
- CRM generator → CRM CSV extract: writes CSVs
README.md - CRM CSV extract → CRM loader: loads extract
ingest/load_crm.py - CRM loader → Raw CRM tables: writes tables
ingest/load_crm.py - Raw CRM tables → Typed CRM staging: types CRM data
README.md - Typed CRM staging → Opportunity versions: builds history
README.md - Opportunity versions → Pipeline snapshots: builds snapshots
README.md - Opportunity versions → Pipeline waterfall: builds waterfall
README.md - Snapshot dates → Pipeline snapshots: sets dates
- Opportunity versions → Account dimension: supplies entities
- Opportunity versions → Rep dimension: supplies entities
- Pipeline waterfall → Findings summary: queries results
scripts/summarize_findings.py - Opportunity versions → Findings summary: queries history
scripts/summarize_findings.py - Rep dimension → Findings summary: joins rep data
scripts/summarize_findings.py - Findings summary → Revenue operations team: prints findings
scripts/summarize_findings.py