diff --git a/definitions/intermediate/int_account_balances.sqlx b/definitions/intermediate/int_account_balances.sqlx index 69fa3198f..3a415e264 100644 --- a/definitions/intermediate/int_account_balances.sqlx +++ b/definitions/intermediate/int_account_balances.sqlx @@ -1,6 +1,7 @@ config { type: "operations", hasOutput: true, + tags : ["regulatory-report"], } CREATE OR REPLACE TABLE FUNCTION ${self()} (asof TIMESTAMP) AS ( diff --git a/definitions/intermediate/int_account_sets.sqlx b/definitions/intermediate/int_account_sets.sqlx index 11d3071ac..c208ff2f3 100644 --- a/definitions/intermediate/int_account_sets.sqlx +++ b/definitions/intermediate/int_account_sets.sqlx @@ -3,6 +3,7 @@ config { assertions: { uniqueKey: ["set_id"], }, + tags : ["regulatory-report"], } SELECT set_id, set_name, diff --git a/definitions/intermediate/int_account_sets_expanded.sqlx b/definitions/intermediate/int_account_sets_expanded.sqlx index a2fb46297..074edeec2 100644 --- a/definitions/intermediate/int_account_sets_expanded.sqlx +++ b/definitions/intermediate/int_account_sets_expanded.sqlx @@ -4,6 +4,7 @@ config { uniqueKey: ["set_id", "member_id"], rowConditions: ["member_type IN ('Account', 'AccountSet')"] }, + tags : ["regulatory-report"], } WITH RECURSIVE account_set_members AS ( diff --git a/definitions/intermediate/int_accounts.sqlx b/definitions/intermediate/int_accounts.sqlx index 5c7bed4a7..fb6e44565 100644 --- a/definitions/intermediate/int_accounts.sqlx +++ b/definitions/intermediate/int_accounts.sqlx @@ -3,6 +3,7 @@ config { assertions: { uniqueKey: ["account_id"], }, + tags : ["regulatory-report"], } SELECT account_id, account_name, normal_balance_type, account_code, is_account_set, diff --git a/definitions/intermediate/int_approved_loans.sqlx b/definitions/intermediate/int_approved_loans.sqlx index 244b74f14..264d30f1c 100644 --- a/definitions/intermediate/int_approved_loans.sqlx +++ b/definitions/intermediate/int_approved_loans.sqlx @@ -1,6 +1,7 @@ config { type: "operations", hasOutput: true, + tags : ["regulatory-report"], } CREATE OR REPLACE TABLE FUNCTION ${self()} (asof TIMESTAMP) AS ( diff --git a/definitions/intermediate/int_customers.sqlx b/definitions/intermediate/int_customers.sqlx index b40976d4f..e442483be 100644 --- a/definitions/intermediate/int_customers.sqlx +++ b/definitions/intermediate/int_customers.sqlx @@ -1,5 +1,6 @@ config { type: "table", + tags : ["regulatory-report"], } SELECT DISTINCT diff --git a/definitions/intermediate/int_transaction_entries.sqlx b/definitions/intermediate/int_transaction_entries.sqlx index c1e7f9e35..e63aa64d0 100644 --- a/definitions/intermediate/int_transaction_entries.sqlx +++ b/definitions/intermediate/int_transaction_entries.sqlx @@ -9,6 +9,7 @@ config { "units >= 0", ], }, + tags : ["regulatory-report"], } SELECT id AS transaction_entry_id, diff --git a/definitions/intermediate/int_transaction_types.sqlx b/definitions/intermediate/int_transaction_types.sqlx index 92b46ccb1..597ef0198 100644 --- a/definitions/intermediate/int_transaction_types.sqlx +++ b/definitions/intermediate/int_transaction_types.sqlx @@ -4,6 +4,7 @@ config { uniqueKey: ["transaction_type_id"], nonNull: ["transaction_type_id"], }, + tags : ["regulatory-report"], } SELECT diff --git a/definitions/intermediate/int_transactions.sqlx b/definitions/intermediate/int_transactions.sqlx index 32e65b924..df71f7dc2 100644 --- a/definitions/intermediate/int_transactions.sqlx +++ b/definitions/intermediate/int_transactions.sqlx @@ -7,6 +7,7 @@ config { "ARRAY_LENGTH(transaction_entry_ids) > 1" ], }, + tags : ["regulatory-report"], } SELECT id AS transaction_id, diff --git a/definitions/outputs/dim_account_sets.sqlx b/definitions/outputs/dim_account_sets.sqlx index 751041e17..bcf7fc5f3 100644 --- a/definitions/outputs/dim_account_sets.sqlx +++ b/definitions/outputs/dim_account_sets.sqlx @@ -4,6 +4,7 @@ config { assertions: { uniqueKey: ["set_key", "account_key"], }, + tags : ["regulatory-report"], } SELECT set_key, diff --git a/definitions/outputs/dim_accounts.sqlx b/definitions/outputs/dim_accounts.sqlx index 12bc8cef2..bf0fc4f07 100644 --- a/definitions/outputs/dim_accounts.sqlx +++ b/definitions/outputs/dim_accounts.sqlx @@ -8,6 +8,7 @@ config { "normal_balance_type IN ('debit', 'credit')" ], }, + tags : ["regulatory-report"], } SELECT * EXCEPT(account_id) diff --git a/definitions/outputs/dim_credit_facility_events_id.sqlx b/definitions/outputs/dim_credit_facility_events_id.sqlx index cb534702c..8de5410af 100644 --- a/definitions/outputs/dim_credit_facility_events_id.sqlx +++ b/definitions/outputs/dim_credit_facility_events_id.sqlx @@ -5,6 +5,7 @@ config { uniqueKey: ["event_key"], nonNull: ["event_id"], }, + tags : ["regulatory-report"], } WITH distinct_entries AS ( diff --git a/definitions/outputs/dim_credit_facility_events_type.sqlx b/definitions/outputs/dim_credit_facility_events_type.sqlx index 51019efe2..435abb3dc 100644 --- a/definitions/outputs/dim_credit_facility_events_type.sqlx +++ b/definitions/outputs/dim_credit_facility_events_type.sqlx @@ -5,6 +5,7 @@ config { uniqueKey: ["event_type_key"], nonNull: ["event_type"], }, + tags : ["regulatory-report"], } WITH distinct_entries AS ( diff --git a/definitions/outputs/dim_customers.sqlx b/definitions/outputs/dim_customers.sqlx index 46ceb0a10..18171604c 100644 --- a/definitions/outputs/dim_customers.sqlx +++ b/definitions/outputs/dim_customers.sqlx @@ -5,6 +5,7 @@ config { uniqueKey: ["customer_key"], nonNull: ["customer_key"], }, + tags : ["regulatory-report"], } SELECT * EXCEPT (customer_id) diff --git a/definitions/outputs/dim_loans.sqlx b/definitions/outputs/dim_loans.sqlx index c325ee6ce..7c77227d0 100644 --- a/definitions/outputs/dim_loans.sqlx +++ b/definitions/outputs/dim_loans.sqlx @@ -6,6 +6,7 @@ config { nonNull: ["loan_key", "initialized_at", "end_date", "annual_rate", "customer_key", "completed", "principal"], rowConditions: ["DATE(initialized_at) <= end_date"], }, + tags : ["regulatory-report"], } SELECT loans.* EXCEPT (loan_id, customer_id), diff --git a/definitions/outputs/dim_transaction_types.sqlx b/definitions/outputs/dim_transaction_types.sqlx index b588bb000..c61a44781 100644 --- a/definitions/outputs/dim_transaction_types.sqlx +++ b/definitions/outputs/dim_transaction_types.sqlx @@ -4,6 +4,7 @@ config { assertions: { uniqueKey: ["transaction_type_key"], }, + tags : ["regulatory-report"], } SELECT * EXCEPT (transaction_type_id) diff --git a/definitions/outputs/fct_credit_facility_disbursal_events.sqlx b/definitions/outputs/fct_credit_facility_disbursal_events.sqlx index 12500c95f..d62bbca97 100644 --- a/definitions/outputs/fct_credit_facility_disbursal_events.sqlx +++ b/definitions/outputs/fct_credit_facility_disbursal_events.sqlx @@ -11,6 +11,7 @@ config { "amount", ], }, + tags : ["regulatory-report"], } WITH disbursal_initiated AS ( diff --git a/definitions/outputs/fct_credit_facility_events.sqlx b/definitions/outputs/fct_credit_facility_events.sqlx index 17f0f4fda..3651db83d 100644 --- a/definitions/outputs/fct_credit_facility_events.sqlx +++ b/definitions/outputs/fct_credit_facility_events.sqlx @@ -24,7 +24,7 @@ config { "completed_at_date_key", "facility"], }, - tags: ["current-dev"] + tags : ["regulatory-report"], } WITH initialized AS ( diff --git a/definitions/outputs/fct_transaction_entries.sqlx b/definitions/outputs/fct_transaction_entries.sqlx index 1705f8e69..5e07828a9 100644 --- a/definitions/outputs/fct_transaction_entries.sqlx +++ b/definitions/outputs/fct_transaction_entries.sqlx @@ -4,6 +4,7 @@ config { assertions: { uniqueKey: ["transaction_entry_key"], }, + tags : ["regulatory-report"], } SELECT transaction_entries.* EXCEPT (transaction_entry_id, account_id, transaction_id), diff --git a/definitions/outputs/fct_transactions.sqlx b/definitions/outputs/fct_transactions.sqlx index eb7b25ab1..762226f56 100644 --- a/definitions/outputs/fct_transactions.sqlx +++ b/definitions/outputs/fct_transactions.sqlx @@ -5,6 +5,7 @@ config { uniqueKey: ["transaction_key"], nonNull: ["transaction_key", "transaction_type_key"], }, + tags : ["regulatory-report"], } SELECT transaction_key, transaction_type_key