Skip to content

Commit

Permalink
Merge pull request #2 from Agilefreaks/add_models
Browse files Browse the repository at this point in the history
[Add Models] Add YML for stg_dosare
  • Loading branch information
Aciroh authored Apr 20, 2024
2 parents 7ff28eb + 6a4dcec commit 66a4295
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dbt/models/dosare/models/stg_dosare.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
with source as (
select *
from {{source('dosare_raw', 'dosare')}}
)

select *
from source
19 changes: 19 additions & 0 deletions dbt/models/dosare/schema/stg_dosare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2

models:
- name: stg_dosare
description: Informații despre dosarele din baza de date a instanțelor judecătorești
columns:
- name: obiect
description: Obiectul judecății, acuzațiile
tests:
- not_null
- name: datainitiala
description: Data de înregistrare a dosarului
- name: data
description: Data ultimei modificări
- name: parti
description: Numele părții din dosar
- name: numar
description: Numărul dosarului

19 changes: 19 additions & 0 deletions dbt/models/dosare/sources.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2

sources:
- name: dosare_raw
schema: public
tags: ["dosare_raw"]
tables:
- name: dosare
- name: dosare_caiatac
- name: dosare_februarie_2024
- name: dosare_februarie_2024_caiatac
- name: dosare_februarie_2024_parti
- name: dosare_ianuarie_2024
- name: dosare_ianuarie_2024_caiatac
- name: dosare_ianuarie_2024_parti
- name: dosare_martie_2024
- name: dosare_martie_2024_caiatac
- name: dosare_martie_2024_parti
- name: dosare_parti

0 comments on commit 66a4295

Please sign in to comment.