The included db/dbt/ project transforms the raw Northwind OLTP tables into a fully tested star schema. Here is what it builds.
The fact_sales table sits at the center. Each row is one line item from an order. The four dimension tables surround it, providing the "who, what, when, where" context for each sale.
| Type | Count | Objects |
|---|---|---|
| Staging Views | 5 | stg_orders, stg_order_details, stg_customers, stg_products, stg_employees |
| Dimension Tables | 4 | dim_customer, dim_product, dim_employee, dim_time |
| Fact Table | 1 | fact_sales (~8,000 rows) |
| Analytical Views | 2 | vw_sales_detail, vw_monthly_sales |
| Total | 12 | Created with one command: docker compose run dbt-transform run |
Tests run with docker compose run dbt-transform test and validate data quality on every build.
docker compose run dbt-transform run