How njk8/snowdbt works
Project type and purpose
• This is a dbt (data build tool) analytics engineering project. Its purpose is to extract and transform raw data into clean, tested, consumable data marts (fact tables) for downstream reporting or BI tools.
File structure
• Top-level files:
• dbt_project.yml – configuration for the entire dbt project
• packages.yml / package-lock.yml – external dbt packages and versions
• README.md – usage instructions
• Key directories:
• seeds/ – CSV files loaded as raw reference data (manual_book1.csv, manual_book2.csv)
• macros/ – reusable SQL snippets or Jinja macros (e.g., call_me_anything_you_want.sql)
• models/ – the heart of the transformations, subdivided into:
– example/ – sample starter models
– l10_staging/ – level 10 staging models (raw data ingestion and cleaning)
– l20_transform/ – level 20 business transformations (join, enrich, calculate)
– l30_mart/ – level 30 data marts (final fact tables and views)
– tests/ – YAML definitions for data quality tests
• snapshots/ – configurations for time-travel tables
• analyses/ – ad-hoc SQL for one-off analyses
• tests/ – generic test configurations (currently empty placeholder)
README for additional insights
• This is a standard starter project with instructions to run dbt and test.
Elements
• Clear labels for each component (e.g., “l10_staging: base_fe_fx_rates.sql”)
• Blue rectangles = source systems & seeds
• Orange rectangles = staging models
• Green rectangles = transformation models
• Purple rectangles = data marts / fact tables
• Gray ovals = macros & tests