Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Minha Saúde MongoDB] Add Raw Models #229

Merged
merged 1 commit into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ models:
dado_publico: sim
dado_pessoal: nao
dado_sensivel: nao
minhasaude_mongodb:
+schema: brutos_minhasaude_mongodb
+tags: ["daily", "minhasaude"]
+labels:
dado_publico: nao
dado_pessoal: sim
dado_sensivel: sim
ergon:
+schema: brutos_ergon
+tags: ["daily", "ergon"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2

sources:
- name: brutos_minhasaude_mongodb_staging
database: rj-sms
schema: brutos_minhasaude_mongodb_staging
tables:
- name: modulos_perfil_acessos
- name: perfil_acessos
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{ config(alias="modulos_perfil_acessos") }}


with
source as (
select *
from
{{
source(
"brutos_minhasaude_mongodb_staging", "modulos_perfil_acessos"
)
}}
)
select *
from source
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{ config(alias="perfil_acessos") }}


with
source as (
select *
from
{{
source(
"brutos_minhasaude_mongodb_staging", "perfil_acessos"
)
}}
)
select *
from source
Loading