From 6a4dcec235b887ba349271fc7a383644f9ad5942 Mon Sep 17 00:00:00 2001 From: Horatiu Bolovan <93126326+Aciroh@users.noreply.github.com> Date: Sat, 20 Apr 2024 16:31:30 +0300 Subject: [PATCH] [Add Models] Add YML for stg_dosare --- dbt/models/dosare/models/stg_dosare.sql | 7 +++++++ dbt/models/dosare/schema/stg_dosare.yml | 19 +++++++++++++++++++ dbt/models/dosare/sources.yml | 19 +++++++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 dbt/models/dosare/models/stg_dosare.sql create mode 100644 dbt/models/dosare/schema/stg_dosare.yml create mode 100644 dbt/models/dosare/sources.yml diff --git a/dbt/models/dosare/models/stg_dosare.sql b/dbt/models/dosare/models/stg_dosare.sql new file mode 100644 index 0000000..3ac4883 --- /dev/null +++ b/dbt/models/dosare/models/stg_dosare.sql @@ -0,0 +1,7 @@ +with source as ( + select * + from {{source('dosare_raw', 'dosare')}} +) + +select * +from source \ No newline at end of file diff --git a/dbt/models/dosare/schema/stg_dosare.yml b/dbt/models/dosare/schema/stg_dosare.yml new file mode 100644 index 0000000..1865913 --- /dev/null +++ b/dbt/models/dosare/schema/stg_dosare.yml @@ -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 + diff --git a/dbt/models/dosare/sources.yml b/dbt/models/dosare/sources.yml new file mode 100644 index 0000000..8f6a9a2 --- /dev/null +++ b/dbt/models/dosare/sources.yml @@ -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 \ No newline at end of file