Skip to content

Commit

Permalink
Merge pull request #229 from prefeitura-rio/feat/add-minhasaude-mongo…
Browse files Browse the repository at this point in the history
…db-models

[Minha Saúde MongoDB] Add Raw Models
  • Loading branch information
TanookiVerde authored Feb 19, 2025
2 parents 5bb8f65 + 880bb2b commit 75b4253
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
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

0 comments on commit 75b4253

Please sign in to comment.