From ea524580bbace038be43897fbe9e275dd9e984d8 Mon Sep 17 00:00:00 2001 From: Kevin Mugweru Date: Wed, 20 Aug 2025 10:05:35 +0000 Subject: [PATCH] Initialize dbt project structure for Flit data platform - Add dbt_project.yml with staging/marts configuration - Set up folder structure for data transformations - Configure BigQuery connection and datasets - Add .gitkeep files to maintain empty directories --- .gitignore | 7 +++++++ analyses/.gitkeep | 0 dbt_project.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ macros/.gitkeep | 0 seeds/.gitkeep | 0 snapshots/.gitkeep | 0 6 files changed, 49 insertions(+) create mode 100644 analyses/.gitkeep create mode 100644 dbt_project.yml create mode 100644 macros/.gitkeep create mode 100644 seeds/.gitkeep create mode 100644 snapshots/.gitkeep diff --git a/.gitignore b/.gitignore index 2250c28..866c101 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,10 @@ Thumbs.db target/ dbt_packages/ logs/ + +# Default .gitignore content added by dbt Cloud# you shouldn't commit these into source control +# these are the default directory names, adjust/add to fit your needs +target/ +dbt_packages/ +logs/ +# end dbt Cloud content diff --git a/analyses/.gitkeep b/analyses/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/dbt_project.yml b/dbt_project.yml new file mode 100644 index 0000000..4bf6901 --- /dev/null +++ b/dbt_project.yml @@ -0,0 +1,42 @@ + +# Name your project! Project names should contain only lowercase characters +# and underscores. A good package name should reflect your organization's +# name or the intended use of these models +name: 'my_new_project' +version: '1.0.0' +config-version: 2 + +# This setting configures which "profile" dbt uses for this project. +profile: 'default' + +# These configurations specify where dbt should look for different types of files. +# The `model-paths` config, for example, states that models in this project can be +# found in the "models/" directory. You probably won't need to change these! +model-paths: ["models"] +analysis-paths: ["analyses"] +test-paths: ["tests"] +seed-paths: ["seeds"] +macro-paths: ["macros"] +snapshot-paths: ["snapshots"] + +target-path: "target" # directory which will store compiled SQL files +clean-targets: # directories to be removed by `dbt clean` + - "target" + - "dbt_packages" + + +# Configuring models +# Full documentation: https://docs.getdbt.com/docs/configuring-models + +# In dbt, the default materialization for a model is a view. This means, when you run +# dbt run or dbt build, all of your models will be built as a view in your data platform. +# The configuration below will override this setting for models in the example folder to +# instead be materialized as tables. Any models you add to the root of the models folder will +# continue to be built as views. These settings can be overridden in the individual model files +# using the `{{ config(...) }}` macro. + +models: + my_new_project: + # Applies to all files under models/example/ + example: + +materialized: table diff --git a/macros/.gitkeep b/macros/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/seeds/.gitkeep b/seeds/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/snapshots/.gitkeep b/snapshots/.gitkeep new file mode 100644 index 0000000..e69de29