Set up dbt in a separate repository and configure it with the staging database.
Define the raw table as a source inside sources.yml and create dbt models to add the "daily_weekly_attendance" table in the intermediate schema.
Apply prefix-based naming conventions for the schema during the initial ingestion of the model.
Steps:
- Create a new repository and initialize a dbt project.
- Configure profiles.yml with staging DB connection:
*Add Postgres connection details.
*Set schemas: raw (source), prefix_intermediate (output).
- Define raw source in schema.yml.
- Create the intermediate model: daily_weekly_attendance.sql
Run and test models (dbt run, dbt test).
Set up dbt in a separate repository and configure it with the staging database.
Define the raw table as a source inside sources.yml and create dbt models to add the "daily_weekly_attendance" table in the intermediate schema.
Apply prefix-based naming conventions for the schema during the initial ingestion of the model.
Steps:
*Add Postgres connection details.
*Set schemas: raw (source), prefix_intermediate (output).
Run and test models (dbt run, dbt test).