# wilfredjeeva/dbt_snowflake architecture

> Architecture diagram of the GitHub repository wilfredjeeva/dbt_snowflake, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/wilfredjeeva/dbt_snowflake
- Repository: https://github.com/wilfredjeeva/dbt_snowflake

## Overview

This is a small dbt medallion demo intended to deploy and run natively in Snowflake, rather than through a local Python/dbt runner. Its documented workflow starts from a manual or cross-repository GitHub Action trigger, deploys a dbt Project with Snowflake CLI, and executes dbt commands inside Snowflake. The models represent bronze, silver, and gold stages, with a borough seed as input. The README documents the deployment workflow and medallion lineage, but no source excerpts were provided, so model-to-model and seed-to-model edges are shown as unverified.

Main entry points: [`.github/workflows/dbt-on-snowflake.yml`](https://github.com/wilfredjeeva/dbt_snowflake/blob/main/.github/workflows/dbt-on-snowflake.yml) (GitHub Action), [`models/bronze/bronze_boroughs.sql`](https://github.com/wilfredjeeva/dbt_snowflake/blob/main/models/bronze/bronze_boroughs.sql) (Bronze boroughs), [`models/silver/silver_boroughs.sql`](https://github.com/wilfredjeeva/dbt_snowflake/blob/main/models/silver/silver_boroughs.sql) (Silver boroughs), [`seeds/boroughs.csv`](https://github.com/wilfredjeeva/dbt_snowflake/blob/main/seeds/boroughs.csv) (Borough seed)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Execution"]
  node_github["GitHub Action"]
  node_snowcli["Snowflake CLI"]
  node_snowflake[("Snowflake")]
end

subgraph group_data["Data models"]
  node_seed["Borough seed<br/>[boroughs.csv]"]
  node_bronze["Bronze boroughs"]
  node_silver["Silver boroughs"]
  node_gold["Gold borough counts"]
end

subgraph group_config["Project configuration"]
  node_project["dbt Project<br/>[dbt_project.yml]"]
  node_profiles["Target profiles<br/>[profiles.yml]"]
end

node_user(("Workflow initiator"))

node_user -->|"triggers"| node_github
node_github -->|"deploys with"| node_snowcli
node_snowcli -->|"deploys project"| node_snowflake
node_snowflake -->|"executes dbt"| node_project
node_seed -.->|"feeds"| node_bronze
node_bronze -.->|"transforms"| node_silver
node_silver -.->|"aggregates"| node_gold
node_profiles -.->|"configures target"| node_snowflake

click node_github "https://github.com/wilfredjeeva/dbt_snowflake/blob/main/.github/workflows/dbt-on-snowflake.yml"
click node_project "https://github.com/wilfredjeeva/dbt_snowflake/blob/main/dbt_project.yml"
click node_profiles "https://github.com/wilfredjeeva/dbt_snowflake/blob/main/profiles.yml"
click node_seed "https://github.com/wilfredjeeva/dbt_snowflake/blob/main/seeds/boroughs.csv"
click node_bronze "https://github.com/wilfredjeeva/dbt_snowflake/blob/main/models/bronze/bronze_boroughs.sql"
click node_silver "https://github.com/wilfredjeeva/dbt_snowflake/blob/main/models/silver/silver_boroughs.sql"
click node_gold "https://github.com/wilfredjeeva/dbt_snowflake/blob/main/models/gold/gold_borough_counts.sql"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_github,node_snowcli,node_snowflake toneBlue
class node_seed,node_bronze,node_silver,node_gold toneAmber
class node_project,node_profiles toneMint
class node_user toneIndigo
```

## Components

### Execution

- [GitHub Action](https://github.com/wilfredjeeva/dbt_snowflake/blob/main/.github/workflows/dbt-on-snowflake.yml): `.github/workflows/dbt-on-snowflake.yml`
- **Snowflake CLI**
- **Snowflake**

### Data models

- [Borough seed](https://github.com/wilfredjeeva/dbt_snowflake/blob/main/seeds/boroughs.csv): `seeds/boroughs.csv`
- [Bronze boroughs](https://github.com/wilfredjeeva/dbt_snowflake/blob/main/models/bronze/bronze_boroughs.sql): `models/bronze/bronze_boroughs.sql`
- [Silver boroughs](https://github.com/wilfredjeeva/dbt_snowflake/blob/main/models/silver/silver_boroughs.sql): `models/silver/silver_boroughs.sql`
- [Gold borough counts](https://github.com/wilfredjeeva/dbt_snowflake/blob/main/models/gold/gold_borough_counts.sql): `models/gold/gold_borough_counts.sql`

### Project configuration

- [dbt Project](https://github.com/wilfredjeeva/dbt_snowflake/blob/main/dbt_project.yml): `dbt_project.yml`
- [Target profiles](https://github.com/wilfredjeeva/dbt_snowflake/blob/main/profiles.yml): `profiles.yml`

### Other components

- **Workflow initiator**

## Connections

- Workflow initiator → GitHub Action: triggers (evidence: `README.md`)
- GitHub Action → Snowflake CLI: deploys with (evidence: `README.md`)
- Snowflake CLI → Snowflake: deploys project (evidence: `README.md`)
- Snowflake → dbt Project: executes dbt (evidence: `README.md`)
- Borough seed → Bronze boroughs: feeds
- Bronze boroughs → Silver boroughs: transforms
- Silver boroughs → Gold borough counts: aggregates
- Target profiles → Snowflake: configures target
