---
title: dbt - Artifacts
description: "The artifacts of a Snowflake dbt or Databricks dbt project are a complete dbt project: models, model YAML files and macros."
---

[Skip to content](https://knowledge.bigenius-x.com/dbt-artifacts#main-content)

[Contact us](https://knowledge.bigenius-x.com/kb-tickets/new?hsLang=en) [Go to Customer Portal](https://knowledge.bigenius-x.com/customer-portal?hsLang=en)

[![TRI\_Logo\_biGENIUS\_2020\_RGB\_s](https://knowledge.bigenius-x.com/hs-fs/hubfs/Marketing/TRI_Logo_biGENIUS_2020_RGB_s.png?width=150&height=42&name=TRI_Logo_biGENIUS_2020_RGB_s.png)](https://www.bigenius-x.com/)

Open main navigation

Close main navigation

- [Contact us](https://knowledge.bigenius-x.com/kb-tickets/new)
- [Go to Customer Portal](https://knowledge.bigenius-x.com/customer-portal)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [biGENIUS-X Knowledge Base](https://knowledge.bigenius-x.com/?hsLang=en)
2. [Generators](https://knowledge.bigenius-x.com/generators?hsLang=en)
3. [Artifacts](https://knowledge.bigenius-x.com/generators?hsLang=en#artifacts)

# dbt - Artifacts

**Applies to**  
Platform: Snowflake dbt · Databricks dbt

The artifacts of a Snowflake dbt or Databricks dbt project are a complete dbt project: models, model YAML files and macros. This article explains its folders, the models of each model object and the file you edit. Use it to find the model of a model object and to see what `dbt run` builds.

The dbt artifacts contain no deployment scripts, no load control, no `replace_placeholders.ps1` and no `replacement_config.json`. You set the values as described in [dbt - Placeholder values](https://knowledge.bigenius-x.com/dbt-placeholder-values?hsLang=en), and dbt creates and loads the tables as described in [dbt - Deployment](https://knowledge.bigenius-x.com/dbt-deployment?hsLang=en).

### Files and folders

- `dbt_project.yml`: the project name, the schema of each layer, one pair of variables per source system and the name of the connection profile.
- `README.md`: generator version, project, branch and the number of model objects and validation warnings.
- `ParseError.log`: present when generation reported validation warnings, with the text of each warning.
- `models/<layer>/<model object type>/`: the models of a layer, one folder per model object type, for example `models/rawvault/hub`. Stage models are in `models/stage/<source system>/`.
- `models/<layer>/models_<layer>.yml`: the columns, data types and constraints of the models of the layer.
- `models/stage/sources_<source system>.yml`: the dbt source of a source system with its tables and columns. Its catalog and schema come from the variables in `dbt_project.yml`.
- `macros/`: the materializations, such as `bg_append`, and helper macros, such as `bg_close_validity_merge`.

The project contains no dbt tests, no `packages.yml` and no `selectors.yml`. You do not need `dbt deps`.

### Models of a model object

Model names are in lower case and start with the prefix of the model object type, for example `stg_`, `rdv_hub_`, `rdv_sat_` or `bdv_hub_`.

- Source: `<prefix><model object name>_source`, the view that prepares the rows to load.
- Storage: `<prefix><model object name>`, the table or view of the model object.
- Result: `<prefix><model object name>_result`, the result view, only with [Create Result Views](https://knowledge.bigenius-x.com/create-result-views-project?hsLang=en) on.
- Dataflow source: `<prefix><model object name>_<dataflow name>_source`, the view of one dataflow.
- Loader: `<prefix><model object name>_<dataflow name>_loader`, which inserts the rows of one dataflow.

Notes on these models:

- With more than one dataflow, the storage model only creates the table. Each loader inserts into it after the loader of the previous dataflow.
- The materialization follows the [Implementation Type](https://knowledge.bigenius-x.com/implementation-type-model-object?hsLang=en). `Permanent` uses `bg_append`: the first run creates the table, later runs insert new rows. `Cached` uses the dbt materialization `table`, which rebuilds the table on every run. `Virtual` gives a view.
- Historized satellite types, such as Satellite, Link Satellite and Effectivity Satellite, and PITs carry the post-hook `bg_close_validity_merge`. It sets `BG_ValidToTimestamp` of the previous version of a key, see [Persist Validity](https://knowledge.bigenius-x.com/persist-validity-project?hsLang=en).

### Constraints and contracts

`dbt_project.yml` sets `+contract: enforced: true`, so dbt checks the columns and data types of each model against the model YAML file. The YAML files declare `not_null` columns and the constraints `primary_key`, `unique` and `foreign_key`. [Use Unique Constraints](https://knowledge.bigenius-x.com/use-unique-constraints-project?hsLang=en) controls the unique constraints, and [Foreign Key Mode](https://knowledge.bigenius-x.com/foreign-key-mode-model-object?hsLang=en) the foreign keys. The `bg_` materializations apply the constraints to the tables.

With [Target Object Comment Type](https://knowledge.bigenius-x.com/target-object-comment-type-project?hsLang=en) set to `Tables and Views`, `dbt_project.yml` also sets `+persist_docs`. With [Apply Sensitivity Level Tags](https://knowledge.bigenius-x.com/apply-sensitivity-level-tags-project?hsLang=en) on, it adds the post-hook `apply_column_tags`.

### Data Mart projects on Databricks dbt

- [`Databricks Dbt DataMart`](https://knowledge.bigenius-x.com/databricks-dbt-datamart?hsLang=en): the models are in the layer folder `mart`, with one schema entry. The project reads the objects of its linked projects as dbt sources. Each linked source system gets a file `models/stage/sources_<source system>.yml` and the variables `<source system>_catalog` and `<source system>_schema`.
- [`Databricks Dbt DataVault & Mart`](https://knowledge.bigenius-x.com/databricks-dbt-datavault-and-mart?hsLang=en): one project with the layer folders `stage`, `rawvault`, `businessvault` and `mart` and four schema entries. Variables exist only for the source systems. The Mart models read the vault models with `ref()`.

### Example

Part of the artifacts of a Data Vault project with the source system `bfmmssql`. The Hub `common_customer` has one dataflow. The Satellite `load_customer_sat` has the dataflows `Dataflow1` and `Dataflow2`:

```
dbt_project.yml
README.md
macros/bg_close_validity_merge.sql
macros/materializations/bg_append.sql
models/stage/sources_bfmmssql.yml
models/stage/bfmmssql/stg_st_customer_source.sql
models/stage/bfmmssql/stg_st_customer.sql
models/rawvault/models_rawvault.yml
models/rawvault/hub/rdv_hub_common_customer_source.sql
models/rawvault/hub/rdv_hub_common_customer.sql
models/rawvault/satellite/rdv_sat_load_customer_sat.sql
models/rawvault/satellite/rdv_sat_load_customer_sat_dataflow1_source.sql
models/rawvault/satellite/rdv_sat_load_customer_sat_dataflow1_loader.sql
models/rawvault/satellite/rdv_sat_load_customer_sat_dataflow2_source.sql
models/rawvault/satellite/rdv_sat_load_customer_sat_dataflow2_loader.sql
```

The Hub has a source view and a table model. The Satellite has an owner model `rdv_sat_load_customer_sat` and a source view and a loader for each dataflow.

### Platform differences

- Snowflake dbt: the source variables are `<source system>_database` and `<source system>_schema`. Each layer also has `+snowflake_warehouse`. The macros include `bg_apply_tags` and no `process_config_changes`. Snowflake dbt is available since Generator 2.4 and offers only the configuration Snowflake Dbt DataVault.
- Databricks dbt: the macro `process_config_changes` applies changes of [Optimization Method](https://knowledge.bigenius-x.com/optimization-method-model-object?hsLang=en) to existing tables, see [dbt - Deployment](https://knowledge.bigenius-x.com/dbt-deployment?hsLang=en).

### Release differences

- Generator 2.3: the catalog and schema of each source system are variables in `dbt_project.yml`. Up to Generator 2.2, `sources_<source system>.yml` contained `catalog: <placeholder>`.
- Generator 2.4: the `bg_` materializations apply the constraints. Generator 2.2 and 2.3 applied them with separate post-hooks.

### Related articles

- Previous: [Generate artifacts](https://knowledge.bigenius-x.com/generate-artifacts?hsLang=en), [Download generated artifacts](https://knowledge.bigenius-x.com/download-generated-artifacts?hsLang=en)
- Next: [dbt - Placeholder values](https://knowledge.bigenius-x.com/dbt-placeholder-values?hsLang=en), [dbt - Deployment](https://knowledge.bigenius-x.com/dbt-deployment?hsLang=en)
- Reference: [Implementation Type (Model Object)](https://knowledge.bigenius-x.com/implementation-type-model-object?hsLang=en), [Create Result Views (Project)](https://knowledge.bigenius-x.com/create-result-views-project?hsLang=en), [Persist Validity (Project)](https://knowledge.bigenius-x.com/persist-validity-project?hsLang=en), [Use Unique Constraints (Project)](https://knowledge.bigenius-x.com/use-unique-constraints-project?hsLang=en), [Foreign Key Mode (Model Object)](https://knowledge.bigenius-x.com/foreign-key-mode-model-object?hsLang=en), [Target Object Comment Type (Project)](https://knowledge.bigenius-x.com/target-object-comment-type-project?hsLang=en) 
    - Snowflake dbt: no generator profile article available yet
    - Databricks dbt: [DataVault](https://knowledge.bigenius-x.com/databricks-dbt-datavault?hsLang=en), [Datamart](https://knowledge.bigenius-x.com/databricks-dbt-datamart?hsLang=en), [DataVault and Mart](https://knowledge.bigenius-x.com/databricks-dbt-datavault-and-mart?hsLang=en)
- See also: [Change detection and historization](https://knowledge.bigenius-x.com/change-detection-and-historization?hsLang=en), [Push the generated artifacts to repository](https://knowledge.bigenius-x.com/push-the-generated-artifacts-to-repository?hsLang=en)

- [Getting started](https://knowledge.bigenius-x.com/getting-started?hsLang=en#main-content)

    - [Guidelines](https://knowledge.bigenius-x.com/getting-started?hsLang=en#guidelines)
    - [Start working](https://knowledge.bigenius-x.com/getting-started?hsLang=en#start-working)
    - [Account](https://knowledge.bigenius-x.com/getting-started?hsLang=en#account)
- [General overview](https://knowledge.bigenius-x.com/general-overview?hsLang=en)
- [Artificial Intelligence](https://knowledge.bigenius-x.com/artificial-intelligence?hsLang=en)
- [Application Modules](https://knowledge.bigenius-x.com/application-modules?hsLang=en#main-content)

    - [Administration](https://knowledge.bigenius-x.com/application-modules?hsLang=en#administration)
    - [Solutions](https://knowledge.bigenius-x.com/application-modules?hsLang=en#solutions)
    - [Global Features](https://knowledge.bigenius-x.com/application-modules?hsLang=en#global-features)
    - [Projects](https://knowledge.bigenius-x.com/application-modules?hsLang=en#projects)
    - [Branches](https://knowledge.bigenius-x.com/application-modules?hsLang=en#branches)
    - [Data Connections](https://knowledge.bigenius-x.com/application-modules?hsLang=en#data-connections)
    - [Dataflow Modeling - Overview](https://knowledge.bigenius-x.com/application-modules?hsLang=en#dataflow-modeling-overview)
    - [Dataflow Modeling - Wizard Steps](https://knowledge.bigenius-x.com/application-modules?hsLang=en#dataflow-modeling-wizard-steps)
    - [Dataflow Modeling - Terms](https://knowledge.bigenius-x.com/application-modules?hsLang=en#dataflow-modeling-terms)
    - [Dataflow Modeling - Term Mapping](https://knowledge.bigenius-x.com/application-modules?hsLang=en#dataflow-modeling-term-mapping)
    - [Dataflow Modeling - Relationships](https://knowledge.bigenius-x.com/application-modules?hsLang=en#dataflow-modeling-relationships)
    - [Dataflow Modeling - Data Quality](https://knowledge.bigenius-x.com/application-modules?hsLang=en#dataflow-modeling-data-quality)
    - [Dataflow Modeling - Indexes](https://knowledge.bigenius-x.com/application-modules?hsLang=en#dataflow-modeling-indexes)
    - [Relationship Modeling](https://knowledge.bigenius-x.com/application-modules?hsLang=en#relationship-modeling)
    - [Generate Artifacts](https://knowledge.bigenius-x.com/application-modules?hsLang=en#generate-artifacts)
    - [Project Settings](https://knowledge.bigenius-x.com/application-modules?hsLang=en#project-settings)
    - [Data Marketplace](https://knowledge.bigenius-x.com/application-modules?hsLang=en#data-marketplace)
- [Generators](https://knowledge.bigenius-x.com/generators?hsLang=en#main-content)

    - [Fabric Warehouse](https://knowledge.bigenius-x.com/generators?hsLang=en#fabric-warehouse)
    - [Fabric Lakehouse](https://knowledge.bigenius-x.com/generators?hsLang=en#fabric-lakehouse)
    - [Databricks](https://knowledge.bigenius-x.com/generators?hsLang=en#databricks)
    - [Snowflake](https://knowledge.bigenius-x.com/generators?hsLang=en#snowflake)
    - [Microsoft SQL Server](https://knowledge.bigenius-x.com/generators?hsLang=en#microsoft-sql-server)
    - [Oracle](https://knowledge.bigenius-x.com/generators?hsLang=en#oracle)
    - [Artifacts](https://knowledge.bigenius-x.com/generators?hsLang=en#artifacts)
    - [Replace Placeholders](https://knowledge.bigenius-x.com/generators?hsLang=en#replace-placeholders)
    - [Target solution environment](https://knowledge.bigenius-x.com/generators?hsLang=en#target-solution-environment)
    - [Deployment](https://knowledge.bigenius-x.com/generators?hsLang=en#deployment)
    - [Deployment with an Azuze DevOps pipeline](https://knowledge.bigenius-x.com/generators?hsLang=en#deployment-with-an-azuze-devops-pipeline)
    - [Delta Deployment](https://knowledge.bigenius-x.com/generators?hsLang=en#delta-deployment)
    - [Load control environment](https://knowledge.bigenius-x.com/generators?hsLang=en#load-control-environment)
    - [Load data with a native load control](https://knowledge.bigenius-x.com/generators?hsLang=en#load-data-with-a-native-load-control)
    - [Load data with Apache Airflow](https://knowledge.bigenius-x.com/generators?hsLang=en#load-data-with-apache-airflow)
    - [Model Object Type](https://knowledge.bigenius-x.com/generators?hsLang=en#model-object-type)
    - [Properties](https://knowledge.bigenius-x.com/generators?hsLang=en#properties)
    - [Default Terms](https://knowledge.bigenius-x.com/generators?hsLang=en#default-terms)
- [Discovery application](https://knowledge.bigenius-x.com/discovery-application?hsLang=en#main-content)

    - [Discovery configurations](https://knowledge.bigenius-x.com/discovery-application?hsLang=en#discovery-configurations)
- [Best practices](https://knowledge.bigenius-x.com/best-practices?hsLang=en#main-content)

    - [Modeling Approaches](https://knowledge.bigenius-x.com/best-practices?hsLang=en#modeling-approaches)
    - [Use Cases](https://knowledge.bigenius-x.com/best-practices?hsLang=en#use-cases)
    - [Business Rules](https://knowledge.bigenius-x.com/best-practices?hsLang=en#business-rules)
    - [Data Quality Rules](https://knowledge.bigenius-x.com/best-practices?hsLang=en#data-quality-rules)
- [FAQs](https://knowledge.bigenius-x.com/faqs?hsLang=en)
- [Product Release Notes](https://knowledge.bigenius-x.com/product-release-notes?hsLang=en#main-content)

    - [SaaS Application](https://knowledge.bigenius-x.com/product-release-notes?hsLang=en#saas-application)
    - [Discovery application](https://knowledge.bigenius-x.com/product-release-notes?hsLang=en#discovery-application)
    - [Generators](https://knowledge.bigenius-x.com/product-release-notes?hsLang=en#generators)
- [Legal Documents](https://knowledge.bigenius-x.com/legal-documents?hsLang=en#main-content)

    - [Current legal docs](https://knowledge.bigenius-x.com/legal-documents?hsLang=en#current-legal-docs)
    - [Software Product and Limits](https://knowledge.bigenius-x.com/legal-documents?hsLang=en#software-product-and-limits)

- [Contact us](https://knowledge.bigenius-x.com/kb-tickets/new?hsLang=en)
- [Customer Portal](https://knowledge.bigenius-x.com/customer-portal)
- [Sign in](https://knowledge.bigenius-x.com/_hcms/mem/login)

[![biGENIUS logo](https://knowledge.bigenius-x.com/hubfs/TRI_Logo_biGENIUS_2020_RGB-1.svg "biGENIUS logo")](https://www.bigenius-x.com)

<https://www.linkedin.com/company/bigenius> <https://www.youtube.com/@biGENIUS_DWA>

All rights reserved © 2025, biGENIUS AG