From 94bbbaf09cbd978ed67e7528c70642d3fa264e03 Mon Sep 17 00:00:00 2001 From: Anna Saiapina Date: Mon, 22 Jul 2024 13:52:58 +0000 Subject: [PATCH] Add mappings for board properties --- definitions/sources/MAPPING_PROPERTY_CALLS.sqlx | 6 ++++++ definitions/sources/MAPPING_PROPERTY_DIGITAL.sqlx | 6 ++++++ .../staging/stg_MAPPING_PROPERTY_CALLS.sqlx | 14 ++++++++++++++ .../staging/stg_MAPPING_PROPERTY_DIGITAL.sqlx | 14 ++++++++++++++ 4 files changed, 40 insertions(+) create mode 100644 definitions/sources/MAPPING_PROPERTY_CALLS.sqlx create mode 100644 definitions/sources/MAPPING_PROPERTY_DIGITAL.sqlx create mode 100644 definitions/staging/stg_MAPPING_PROPERTY_CALLS.sqlx create mode 100644 definitions/staging/stg_MAPPING_PROPERTY_DIGITAL.sqlx diff --git a/definitions/sources/MAPPING_PROPERTY_CALLS.sqlx b/definitions/sources/MAPPING_PROPERTY_CALLS.sqlx new file mode 100644 index 0000000..efe4ca9 --- /dev/null +++ b/definitions/sources/MAPPING_PROPERTY_CALLS.sqlx @@ -0,0 +1,6 @@ +config { + type: "declaration", + schema: "pphe_five9_raw", + name: "MAPPING_PROPERTY_CALLS", + description: "" + } \ No newline at end of file diff --git a/definitions/sources/MAPPING_PROPERTY_DIGITAL.sqlx b/definitions/sources/MAPPING_PROPERTY_DIGITAL.sqlx new file mode 100644 index 0000000..9e65db9 --- /dev/null +++ b/definitions/sources/MAPPING_PROPERTY_DIGITAL.sqlx @@ -0,0 +1,6 @@ +config { + type: "declaration", + schema: "pphe_five9_raw", + name: "MAPPING_PROPERTY_DIGITAL", + description: "" + } \ No newline at end of file diff --git a/definitions/staging/stg_MAPPING_PROPERTY_CALLS.sqlx b/definitions/staging/stg_MAPPING_PROPERTY_CALLS.sqlx new file mode 100644 index 0000000..bcbf400 --- /dev/null +++ b/definitions/staging/stg_MAPPING_PROPERTY_CALLS.sqlx @@ -0,0 +1,14 @@ +config { + type: "table", + schema: "pphe_five9_stg", + assertions: { + uniqueKey: ["BOARD_PROPERTY_GROUP"], + nonNull: ["BOARD_PROPERTY_GROUP"] + }, + tags: ["daily"], + description: "Daily load of MAPPING_PROPERTY_CALLS table from raw" +} + +select + * +from ${ref("MAPPING_PROPERTY_CALLS")} \ No newline at end of file diff --git a/definitions/staging/stg_MAPPING_PROPERTY_DIGITAL.sqlx b/definitions/staging/stg_MAPPING_PROPERTY_DIGITAL.sqlx new file mode 100644 index 0000000..b54f62e --- /dev/null +++ b/definitions/staging/stg_MAPPING_PROPERTY_DIGITAL.sqlx @@ -0,0 +1,14 @@ +config { + type: "table", + schema: "pphe_five9_stg", + assertions: { + uniqueKey: ["BOARD_PROPERTY_GROUP"], + nonNull: ["BOARD_PROPERTY_GROUP"] + }, + tags: ["daily"], + description: "Daily load of MAPPING_PROPERTY_DIGITAL table from raw" +} + +select + * +from ${ref("MAPPING_PROPERTY_DIGITAL")} \ No newline at end of file