diff --git a/dbt_project.yml b/dbt_project.yml index 71bd1d1..b8ea2e7 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -35,9 +35,9 @@ models: staging: +materialized: view +schema: staging - working: + intermediate: +materialized: view - +schema: working + +schema: intermediate reporting: +materialized: table +schema: reporting \ No newline at end of file diff --git a/models/intermediate/_int_models.yml b/models/intermediate/_int_models.yml new file mode 100644 index 0000000..b030777 --- /dev/null +++ b/models/intermediate/_int_models.yml @@ -0,0 +1,15 @@ + +version: 2 + +models: + - name: int_core__deal_id_master_list + description: "The distinct list of Deal Ids present in Core, along with the count of Accounts related to it." + columns: + - name: id_deal + description: "The Deal Id." + tests: + - unique + - not_null + - name: users_with_this_id_deal + description: "The count of Superhog accounts that have this Deal Id assigned." + diff --git a/models/sync/sync_core.yml b/models/staging/core/_core_sources.yml similarity index 100% rename from models/sync/sync_core.yml rename to models/staging/core/_core_sources.yml diff --git a/models/staging/schema.yml b/models/staging/core/schema.yml similarity index 100% rename from models/staging/schema.yml rename to models/staging/core/schema.yml diff --git a/models/staging/stg_core__superhog_user.sql b/models/staging/core/stg_core__superhog_user.sql similarity index 100% rename from models/staging/stg_core__superhog_user.sql rename to models/staging/core/stg_core__superhog_user.sql diff --git a/models/staging/stg_core__user.sql b/models/staging/core/stg_core__user.sql similarity index 100% rename from models/staging/stg_core__user.sql rename to models/staging/core/stg_core__user.sql